feat(workspaces): add workspace management to the command palette#21
Merged
Merged
Conversation
Phase 3 kick: a new Workspaces palette group lists every workspace (Default included, active check-marked, repo-count meta) and switches via openWorkspace; shown once a named workspace exists and included in the empty-query set, so switching is Ctrl/Cmd+K -> pick. Actions gain "New workspace..." and "Manage workspaces...". Create routes into WorkspaceManagerDialog in a new create mode (initialCreate): the manager grew its own "+ New workspace" row (creating was switcher-menu-only before) that spawns the workspace with a placeholder name and autofocuses the name field with the text selected. Ref-guarded against StrictMode double-mount (caught live: it created two workspaces in dev). Verified: tsc, vitest (158), vite build, and a live Playwright pass in browser mode (gating without named workspaces, palette create -> rename -> switch -> fuzzy round trip back to Default).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workspaces Phase 3 kick — closes the keyboard-first gap for workspace management:
openWorkspacepath as the switcher menu. The group appears once a named workspace exists and is part of the empty-query set, so switching is Ctrl/Cmd+K -> pick.WorkspaceManagerDialogin a new create mode (initialCreate), and the manager grew its own "+ New workspace" row (creating was switcher-menu-only before): the workspace spawns with a placeholder name and the name field autofocuses with the text selected — type to replace, Enter to commit. Ref-guarded against StrictMode double-mount (caught live in dev: it created two).Docs: TASKS.md Phase 3 flipped to in-progress with the palette sub-item done, ROADMAP.md dated changelog paragraph, README workspaces line mentions the palette.
Test plan
pnpm --filter ./ui exec tsc --noEmit— cleanpnpm --filter ./ui test— 158/158 passpnpm --filter ./ui exec vite build— green🤖 Generated with Claude Code