Skip to content

fix(workspace): running-agent click — no duplicate spawn, no dead-click#255

Merged
vakovalskii merged 1 commit into
mainfrom
fix/running-agent-click
Jul 20, 2026
Merged

fix(workspace): running-agent click — no duplicate spawn, no dead-click#255
vakovalskii merged 1 commit into
mainfrom
fix/running-agent-click

Conversation

@vakovalskii

Copy link
Copy Markdown
Owner

Two bugs in the v7.14.4 sidebar "Running agents" tree, found while it was in use.

  1. Duplicate-spawn / dead-click (jumpToRunningAgent): clicking a running-agent row called openSessionInWorkspace, which prefills a resume command. But the agent is already running → that starts a second instance. And if the session isn't indexed in the dashboard, openSessionInWorkspace returns silently → the click does nothing. Fix: jump to the live pane if one exists; otherwise open a plain terminal in the project folder (no resume, no no-op).

  2. Stale change-detection (_wsRenderRunningTree): the _wsRunTreeSig signature keyed on the folder basename instead of the full cwd, so two same-named projects (or one stopping while another same-named starts with the same agents) could reuse a stale tree and jump to the wrong folder. Now keyed on full cwd.

No version bump — batching into the next patch release.

🤖 Generated with Claude Code

- jumpToRunningAgent: the agent is already running, so clicking a row
  must not prefill a resume command (that started a 2nd instance) and
  must not dead-click when the session isn't indexed. Now: jump to the
  live pane if one exists, else open a plain terminal in the project
  folder — no resume, no silent no-op.
- _wsRenderRunningTree: change-detection signature now keys on the full
  cwd, not the folder basename, so two same-named projects (or a swap)
  can't reuse a stale tree / wrong jump target.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vakovalskii
vakovalskii merged commit 6d129c2 into main Jul 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant