Files
pipelines/app/notes/chat-terminal-focus-shortcut.md
T
alan 4668deeaf7 Focus floating chat from terminal shortcut
Raise the most recently used chat when Ctrl+Y is invoked from another window, then rely on the existing host lifecycle to focus its composer. Preserve toggle behavior while chat is active and retain the Apple shortcut aliases.
2026-11-11 19:40:30 +00:00

1.2 KiB

Chat terminal shortcut focus

Implemented the macOS Ctrl+Y floating-chat handoff. A chat shortcut now hides the chat group only when chat is already the active window; from another window it raises the most recently used chat. The existing window-host post-frame lifecycle then focuses that chat's composer. Ctrl+Y now joins the existing Option+Y and Cmd+Y aliases on Apple platforms; plain Y and repeat events remain untouched.

Evidence:

  • tool/memwatch/full.sh 'test/features/chat/windows/chat_windows_test.dart test/features/chat/workspace/chat_float_shortcut_test.dart test/features/chat/chat_floating_pane_test.dart test/shell/windows/window_manager_test.dart' — PASS: 33 passed, 0 failed, 0 skipped; peak 1236 MB; 14s.
  • tool/analyze.sh — clean; exit 0.
  • The floating-pane regression uses a terminal-like TypingSurface, presses macOS Ctrl+Y, verifies the chat composer has primary focus, types from terminal without a click, and verifies the terminal did not receive Y. The manager regression covers visible-behind-terminal, hidden, multiple chats, and repeated toggles.

No browser fixture was run in this implementation stage; browser terminal fixture support and full-app rendered evidence remain for the appropriate review stage.