Skip to content

fix: preserve IME input in iTerm2 - #20

Merged
zhanghanduo merged 2 commits into
mainfrom
fix/iterm-ime-keyboard
Aug 27, 2026
Merged

fix: preserve IME input in iTerm2#20
zhanghanduo merged 2 commits into
mainfrom
fix/iterm-ime-keyboard

Conversation

@dq-ai-dev

@dq-ai-dev dq-ai-dev commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Background

Textual enables Kitty keyboard reporting for the full-screen TUI. In iTerm2, ordinary keys continue to work, but committed CJK input-method text is dropped while that mode is active. Disabling Kitty reporting restores IME input in native Textual.

FrontierAgent also defaults to Docker on macOS, but its container launcher only forwarded TERM and COLORTERM. As a result, neither the iTerm2 identity nor TEXTUAL_DISABLE_KITTY_KEY reached the TUI inside the container.

In this PR

  • disable Textual Kitty keyboard negotiation by default in iTerm2 while preserving explicit overrides
  • forward terminal identity and keyboard settings into Docker on macOS and Linux
  • cover native configuration and Docker forwarding with regression tests

Related to #16

@dq-ai-dev
dq-ai-dev requested a review from zhanghanduo August 27, 2026 08:57

@zhanghanduo zhanghanduo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested.

@zhanghanduo
zhanghanduo merged commit 76ac16b into main Aug 27, 2026
5 checks passed
@zhanghanduo
zhanghanduo deleted the fix/iterm-ime-keyboard branch August 27, 2026 09:12
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.

2 participants