Skip to content

fix(coding-agent): revive tombstoned workers on retry - #836

Merged
snimu merged 1 commit into
mainfrom
snimu/retry-worker-tombstone
Aug 7, 2026
Merged

fix(coding-agent): revive tombstoned workers on retry#836
snimu merged 1 commit into
mainfrom
snimu/retry-worker-tombstone

Conversation

@snimu

@snimu snimu commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What broke

A stopped session worker can leave a saved stop marker behind. Running retry_worker cleared the in-memory stop flag, but not the saved marker, so recovery immediately cancelled itself. The session then stayed unavailable with:

Session worker is not connected

Fix

When the user explicitly retries a worker, clear its saved stop markers before starting recovery. This matches the existing recovery behavior for client-owned workers.

Scope

This only changes the explicit retry_worker path. Automatic recovery and normal stop behavior are unchanged. There is no daemon protocol change.

Validation

  • Added a regression test that recreates a tombstoned worker and verifies the stop markers are cleared and saved before recovery starts.
  • daemon-supervisor-monitor.test.ts: 43 tests passed.
  • npm run check passed.

@snimu
snimu merged commit 0859d06 into main Aug 7, 2026
25 of 27 checks passed
@snimu
snimu deleted the snimu/retry-worker-tombstone branch August 7, 2026 16:05
@snimu snimu mentioned this pull request Aug 7, 2026
9 tasks
snimu added a commit that referenced this pull request Aug 7, 2026
Patch release. Bug fixes only, no breaking changes, per the no-major-releases
policy.

Contents since v0.7.0:
- #836 retry_worker clears saved stop markers so retried workers recover
- #809 websearch skill documents the /login -> MCP Connections Serper step
- #699 dropped Nemotron 3 Ultra from the Prime Inference catalog
- #658/#661/#700/#787 test, comment, and README maintenance (no user-facing
  behavior)

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
Patch release. Bug fixes only, no breaking changes, per the no-major-releases
policy.

Contents since v0.7.0:
- PrimeIntellect-ai#836 retry_worker clears saved stop markers so retried workers recover
- PrimeIntellect-ai#809 websearch skill documents the /login -> MCP Connections Serper step
- PrimeIntellect-ai#699 dropped Nemotron 3 Ultra from the Prime Inference catalog
- PrimeIntellect-ai#658/PrimeIntellect-ai#661/PrimeIntellect-ai#700/PrimeIntellect-ai#787 test, comment, and README maintenance (no user-facing
  behavior)

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
okwilkins pushed a commit to okwilkins/prime-agent that referenced this pull request Aug 10, 2026
okwilkins pushed a commit to okwilkins/prime-agent that referenced this pull request Aug 10, 2026
okwilkins pushed a commit to okwilkins/prime-agent that referenced this pull request Aug 10, 2026
@snimu snimu mentioned this pull request Aug 11, 2026
9 tasks
okwilkins pushed a commit to okwilkins/prime-agent that referenced this pull request Aug 12, 2026
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.

2 participants