Repository navigation
Open
Labels
Description
Problem
An audit of every view/item/context and view/title menu entry contributed by the Codev VS Code extension surfaced three concrete UX gaps in the sidebar:
- The Builders row context menu has accumulated 10+ entries across four groups (
inline,1_primary,2_worktree,3_dev). Right-clicking a busy row produces a long, scrolling menu that's hard to scan. - The most destructive builder action — Cleanup Builder — is palette-only (
commands/cleanup.ts), asymmetric with every other builder action which lives on the row context menu. - Two worktree-open commands sit next to each other in the Builders menu (
Open Worktree in New WindowandOpen Worktree Folder) with titles that don't convey the actual difference — one opens VS Code on the worktree, the other reveals it in the OS file manager.
Scope (single PR consolidating P1, P3, P4)
These three sub-refactors are all sidebar UX polish, share package.json plumbing, and naturally land in one PR.
P1 — Reduce Builders context-menu density
- Inventory: the Builders row context menu currently contains (per audit):
inline@1: Approve Gate (icon button)1_primary@1: Open Builder Terminal1_primary@2: Approve Gate (duplicate of inline)1_primary@3: View Plan File (PIR-only today; see vscode: generalize viewPlanFile to siblings (viewSpecFile, viewReviewFile) with protocol-aware menu visibility #793 for generalization)2_worktree@0: View Diff2_worktree@1: Open Worktree in New Window2_worktree@2: Open Worktree Folder3_dev@1: Run Worktree Setup3_dev@2: Run Dev Server3_dev@3: Stop Dev Server
- Goal: move infrequently-used actions to a submenu ("More Actions ▸") or to palette-only. Keep the top-level menu focused on the actions a reviewer takes >50% of the time on a row: Open Terminal, View Diff, Run Dev Server, Approve Gate (when blocked).
- Specifically:
Run Worktree Setup,Stop Dev Server(often redundant with the status-bar item from vscode: surface the running dev server's identity (status-bar item + interpolated Stop command label) #788), and one of the two worktree-open commands should move into the submenu.
P3 — Add Cleanup Builder to the Builders context menu
- Add a
codev.cleanupBuilderentry to theview/item/contextmenu for Builders, in a new9_destructive@1group (bottom-most, visually separated). - Add a confirmation modal:
Cleanup builder #<id> "<title>"? This deletes the worktree branch.withCleanup/Cancel. The destructiveness ofgit worktree removewarrants explicit confirmation. - Keep the palette entry; the row menu is an additional surface, not a replacement.
P4 — Rename ambiguous worktree-open commands
- Current titles:
Codev: Open Worktree in New WindowandCodev: Open Worktree Folder. - Proposed titles:
codev.openWorktreeWindow→Codev: Open Worktree in VS Code(it opens a new VS Code window on the worktree)codev.openWorktreeFolder→Codev: Reveal Worktree in Finder(orExploreron Windows /Fileson Linux — usevscode.workspace.isUntitled-style platform detection or a genericReveal Worktree in File Manager).
- Update both
contributes.commandstitles and the correspondingview/item/contextmenu entries.
Acceptance criteria
P1
- Builders row context menu reduced to ≤6 visible entries by default (excluding the inline approve icon).
- A "More Actions ▸" submenu (or equivalent) houses the demoted entries.
- Submenu groups preserve the existing logical grouping (worktree-open variants, setup, stop).
P3
-
codev.cleanupBuilderappears on every builder row in the Builders view, bottom group. - Invoking it shows a confirmation modal naming the builder; declining the modal does nothing.
- Palette entry remains unchanged.
P4
-
codev.openWorktreeWindowtitle says explicitly "in VS Code" (not "in New Window"). -
codev.openWorktreeFoldertitle says "Reveal" (not "Open") and names the OS file manager when feasible. - All menu locations referencing these commands pick up the new titles.
Out of scope
- Restructuring the Builders view's tree shape itself (separate concern, partly handled by vscode: focusing a builder PTY tab silently reveals/expands the matching builder row in the tree #790 / vscode: builder row → expandable phase children, each phase reveals its artifact (spec / plan / diff / review) #792).
- Removing the
inline@1Approve Gate icon (it duplicates1_primary@2, but the icon is the most discoverable surface for the most common gated action — intentionally kept). - Adding new sidebar views.
Source
Derived from the popup-actions audit run on 2026-05-21 across packages/vscode/package.json (contributes.menus) and underlying command handlers. ~30 menu entries inventoried; this issue covers the three concrete UX gaps that audit identified (P1, P3, P4 in the audit synthesis).
Activity