Skip to content

Keep agent-switch word-motion keys out of draft editing#14376

Merged
joshka-oai merged 1 commit intomainfrom
joshka/agent-switch-empty-composer
Mar 11, 2026
Merged

Keep agent-switch word-motion keys out of draft editing#14376
joshka-oai merged 1 commit intomainfrom
joshka/agent-switch-empty-composer

Conversation

@joshka-oai
Copy link
Copy Markdown
Contributor

Summary

  • only trigger multi-agent fast-switch shortcuts when the composer is empty
  • keep the Option+b/f fallback for terminals that encode Option+arrow that way
  • document why the empty-composer gate preserves expected word-wise editing behavior

Testing

  • just fmt
  • cargo test -p codex-tui
@joshka-oai joshka-oai requested a review from gabec-openai March 11, 2026 19:39
Only let the Alt+Left/Right agent-switch shortcuts fire when the
composer is empty, and keep the Option+b/f fallback for terminals that
encode Option+arrow that way without enhanced keyboard reporting.
Document the reason for the empty-composer gate so we preserve expected
word-wise cursor motion while a draft has text.

Co-authored-by: Codex <noreply@openai.com>
@joshka-oai joshka-oai force-pushed the joshka/agent-switch-empty-composer branch from a199fd5 to e88e0e9 Compare March 11, 2026 19:53
@joshka-oai joshka-oai enabled auto-merge (squash) March 11, 2026 19:54
@joshka-oai joshka-oai disabled auto-merge March 11, 2026 21:52
@joshka-oai joshka-oai merged commit f548309 into main Mar 11, 2026
31 checks passed
@joshka-oai joshka-oai deleted the joshka/agent-switch-empty-composer branch March 11, 2026 21:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants