Make the command center stable and workspace-aware (#2749)

* feat(app): expand command center actions

Keep command center navigation stable by revealing only clipped rows without smooth centering. Prioritize a concise default list while making workspace, Git, pane, and creation actions searchable through the existing contribution and action-policy paths.

* test(app): search for query-only command action

Add project is intentionally absent from the unfiltered command center. Exercise the overlay flow through search before selecting it.
This commit is contained in:
Mohamed Boudra
2026-08-01 15:38:07 +02:00
committed by GitHub
parent 47dcb64ac7
commit fb9f7fb98a
21 changed files with 1178 additions and 247 deletions
@@ -3048,6 +3048,9 @@ function WorkspaceScreenContent({
case "workspace.terminal.new":
handleCreateTerminal();
return true;
case "workspace.browser.new":
handleCreateBrowserTab();
return true;
case "workspace.tab.close-current":
if (activeTabId) {
void handleCloseTabById(activeTabId);
@@ -3080,6 +3083,7 @@ function WorkspaceScreenContent({
activeTabId,
handleCloseTabById,
handleCreateDraftTab,
handleCreateBrowserTab,
handleCreateTerminal,
navigateToTabId,
tabs,
@@ -3194,6 +3198,7 @@ function WorkspaceScreenContent({
"workspace.tab.navigate-index",
"workspace.tab.navigate-relative",
"workspace.terminal.new",
"workspace.browser.new",
] as const,
enabled: Boolean(isRouteFocused && normalizedServerId && normalizedWorkspaceId),
priority: 100,