You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
⌘T opens a new tab where the keyboard is: the focused View area or the Agent area #239
Working in a Workspace with the side panel open: a View area in the panel holds the keyboard (a document, a diff or a browser display was just clicked), while the Agent column has its own active area.
What hide does today
⌘T (⌥T in a browser tab) always runs actions.createTab() (web/src/keyboard.ts, case "new_tab"), which creates an agent tab in the Agent column's active area.
So with the keyboard in a View area, ⌘T opens a terminal tab in the Agent column instead of a new tab where the operator is working.
docs/UI_BEHAVIOR.md already says chords such as ⌘F and ⌥W act where the keyboard is, the panel's View area or the pane, and ⌥W does so through keyboardOwner() and closeShortcutPolicy (actions.closeFocused).
⌘T does not follow that rule.
What it should do instead
⌘T/⌥T acts where the keyboard is:
Keyboard in a panel View area: the same as that area's + in the View strip, a new browser display in that area with no address and the address field focused.
Keyboard in an Agent pane: a new agent tab at the end of the Agent area that holds that pane (today's behavior, unchanged).
Anywhere else (sidebar, Overview, a closed panel): today's behavior, the Agent column's active area.
The Files View and Agent active areas are independent, so the choice follows the keyboard, not whichever tree's active area changed last. docs/UI_BEHAVIOR.md line 36 still calls the View area's New tab "the file palette"; line 195 describes the browser display the code opens. Make the two agree with the shipped behavior.
Where the authority for it lives
web/src/keyboard.ts (new_tab), web/src/actions.ts (createTab, closeFocused, openBrowser, keyboardOwner), web/src/ViewAreas.tsx (newTab), and docs/UI_BEHAVIOR.md (Agent areas and the side panel sections).
Activity