claude-code - 💡(How to fix) Fix [Bug] Agent tool worktree isolation fails with concurrent agents using stale commits

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

I fanned out four fix-agents, but the Agent tool's worktree isolation misbehaved: two agents forked from a stale commit (b177c45, 8 commits behind HEAD — before the table array-part work), and two silently committed onto main. I detected this from contradictory agent reports, stopped, inspected the real git state, preserved everything as patches, and recovered the work cleanly rather than merging the tangle.

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description

What happened

I fanned out four fix-agents, but the Agent tool's worktree isolation misbehaved: two agents forked from a stale commit (b177c45, 8 commits behind HEAD — before the table array-part work), and two silently committed onto main. I detected this from contradictory agent reports, stopped, inspected the real git state, preserved everything as patches, and recovered the work cleanly rather than merging the tangle.

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.1.146
  • Feedback ID: 0b19e760-ffe0-4b11-9d8e-c821ae60ed11

Errors

[]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Agent tool worktree isolation fails with concurrent agents using stale commits