Skip to content

fix: keep Gmail distinct from Mail in APP_CANONICAL_MAP#7460

Merged
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/fb-7409
Feb 24, 2026
Merged

fix: keep Gmail distinct from Mail in APP_CANONICAL_MAP#7460
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/fb-7409

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

Summary

  • Changes the APP_CANONICAL_MAP entry for 'gmail' from mapping to 'mail' to mapping to 'gmail', so Gmail and Mail retain distinct canonical keys.
  • This fixes cross-app detection in taskExplicitlyRequestsCrossApp() for workflows involving both Gmail and Mail (e.g., "copy from Gmail into Mail").

Context

Addresses review feedback from #7409 where both Codex and Devin flagged that ['gmail', 'mail'] incorrectly collapses two genuinely different apps into one canonical key, preventing the cross-app escape path from activating.

Test plan

  • Verify that a task mentioning both "Gmail" and "Mail" triggers taskExplicitlyRequestsCrossApp() to return true
  • Verify that existing canonical mappings (e.g., "google chrome" -> "chrome") still work correctly

🤖 Generated with Claude Code

The canonical mapping ['gmail', 'mail'] incorrectly collapsed Gmail and
Mail into the same canonical key. This caused taskExplicitlyRequestsCrossApp()
to record only one app mention for tasks involving both Gmail and Mail,
preventing the cross-app escape path from activating.

Change the mapping to ['gmail', 'gmail'] so Gmail retains its own
canonical identity, allowing cross-app workflows like "copy from Gmail
into Mail" to be detected correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant