Repository navigation
Chat tabs get the terminal's right-click actions - #37442
Conversation
Quick Commands and the provider Copy Session ID now read their data from components that mount only inside the open chat menu, so closed menus in retained chats do no work on repo, project or agent-status writes. The add-command editor reuses the terminal's editor dialog and outlives the menu. Chat menus also stop showing the Insert hint, since they run every quick command in a new tab the way the tab bar's Quick Commands menu does.
|
No actionable comments were generated in the recent review.
|
Review loop status: doneProblem. A chat tab's right-click menu lacked actions the terminal's menu has (Quick Commands, Fork, Copy Context, Continue with Terminal Agent, the agent's own session ID, Close tab without a split), so users lost them when working in chat tabs. User-facing change. Those rows now appear in a chat tab's right-click menu in the terminal's order, each running the existing command (Quick Commands open a new tab like the tab bar's button). The terminal menu is unchanged. Fixed during review
Verified
Not verified: remote/SSH chats in a running app (covered by code review and tests only). For Brennan: existing behavior on main the chat rows now inherit (not changed here)
For Brennan's review Chat right-click menu: Chat Quick Commands (no Insert hint): Terminal Quick Commands (unchanged, Insert hint kept): Spots worth a look:
Head f508fcb includes a merge of main (51cb2f1) after review; CI and the screenshot run are on this head. |
Problem. Right-clicking inside a chat tab offered only Find, Hand Off, Split and Copy Orca Session ID, while right-clicking a terminal running the same agent offered Quick Commands, Fork, Copy Context, a way to continue elsewhere, the agent's own session ID and Close tab. Users moving between terminals and chat tabs lost those actions in chats.
What users get. A chat tab's right-click menu now offers, in the terminal menu's order (rows hide while they can't apply):
Find in chat, Hand Off to Another Agent and Split Chat Right/Down are unchanged. The terminal menu and the chat-inside-a-terminal-pane menu are unchanged.
How it works. Each row reuses the existing command: the terminal's Quick Commands submenu and editor with the tab bar's new-tab runner, the terminal's fork dialog and launcher (now taking a focus callback instead of a terminal pane), the terminal's Copy Context bounding and toasts (moved into a shared helper), and the tab bar's continue-in-terminal component. A chat's transcript comes from the host's saved continuation context, falling back to the loaded messages on older hosts. Menu data (quick commands, repos, the provider session ID) is read only while the menu is open, so chats with closed menus do no extra work; a contract test checks this at 6 and 60 open chats.
Intended differences from the terminal menu. Quick Commands open a new tab and show no "Insert" hint, matching the tab bar's Quick Commands for a chat, which has no terminal to type into. A chat has no terminal, so it offers no Set Title, Copy Terminal ID, Copy Pane ID, Clear Screen or Reset Terminal rows. The two copy-ID rows distinguish the provider's session from Orca's session ID.
Existing behavior the chat rows inherit from the terminal menu (not changed here). In a folder workspace without git, Fork Agent Session… → Create fork reports that the workspace can't be forked (Copy fork context still works), as the terminal does today. When two hosts publish the same workspace, Fork can pick the other host's branch, tracked in STA-13471. A clipboard failure in Copy Context shows the raw error text, as the terminal does today.