Repository navigation
Description
Problem
Today the running dev PTY is invisible to the user except as a regular terminal tab. The two stop commands — codev.stopWorktreeDev (Builders context) and codev.stopWorkspaceDev (Workspace view) — render as a generic "Codev: Stop Dev Server" in the command palette with no indication of which builder owns the dev that would be killed. The dev PTY can also be left running across sessions; nothing in the UI passively reminds the user it's up.
Current state
-
commands/dev-shared.tsalready names targets in toasts after state changes (e.g. line 143 "Dev server started for ${target.name}", 165 "stopped for ${name}", 104 "already running for ${target.name}"). -
commands/stop-worktree-dev.ts:39andcommands/run-workspace-dev.tsname the target in their completion toasts. - But there is no persistent, ambient indicator of what is currently running, and no pre-action surface that tells the user what they're about to stop.
Proposed behavior
Two complementary surfaces, both fed from the same source-of-truth (the active dev PTY tracked by Tower / dev-shared.ts):
1. Status-bar item
- Visible iff a dev PTY is currently running.
- Label:
$(play) Dev: <builder-or-workspace-name>(port appended if available, e.g.:3000). - Tooltip: full target name + the configured
worktree.devCommand. - Click: invokes the stop command for that target.
- Hidden the moment the PTY dies (graceful exit, crash, or explicit stop).
2. Interpolated Stop command label
When a dev PTY is running, the palette entry for the corresponding Stop command reads:
Codev: Stop Dev Server (<builder>)forcodev.stopWorktreeDevCodev: Stop Dev Server — <workspace>forcodev.stopWorkspaceDev
When no dev PTY is running, the entries either show their plain title or hide from the palette (implementer's call; hiding is preferred since the action is a no-op).
3. No confirmation modal
Stop kills the PTY immediately. The status-bar item + interpolated label already provide enough pre-action naming; an extra modal would just be friction.
Acceptance criteria
- A status-bar item appears when (and only when) a Codev-managed dev PTY is running.
- Status-bar label includes the target builder/workspace name; click stops it.
- Status-bar item disappears within ~1s of the PTY dying (for any reason).
- Command palette title for the relevant Stop command interpolates the running target's name when one is up.
- No confirmation modal on stop.
- Works for both builder-scoped (
stopWorktreeDev) and workspace-scoped (stopWorkspaceDev) dev PTYs.
Out of scope
- Confirmation modals (intentionally rejected — see above).
- Auto-restarting / supervising the dev PTY.
- Multi-dev support (one dev PTY at a time is still by design).
Activity