Skip to content

Record stalled calls; stop what a model call started (0.15.3) - #15

Merged
bryanwieg merged 2 commits into
mainfrom
stall-cleanup
Nov 24, 2026
Merged

bryanwieg merged 2 commits into
mainfrom
stall-cleanup

Conversation

@bryanwieg

Copy link
Copy Markdown
Owner

Two follow-ups to the stall watchdog (0.15.3):

  • Stalled calls are recorded. After a stalled call's edits are undone, it is recorded with exit 7: a stage's as an error attempt (not a try of the pair), a revise or review as a run. A stall's cost is unknown, so the premium spend counts its cap. A stalled revise no longer counts as the phase's revise, so a rerun after two stalls revises again. The record is written after the undo, and the retried call's guard takes its baseline afterwards, so the record isn't flagged as a model's edit.
  • Nothing a call starts outlives it. claude runs under setsid -w in its own process group, and claude-build.sh stops the group when the call stalls or finishes, so no test run or shell a builder started is left behind. Without setsid (macOS), it works as before.

Tests: 150 passed. New tests cover a stall recorded at its cap, a twice-stalled revise redone on the rerun, and a process left by the call stopped on a stall and on a normal finish. Both cleanup tests fail when the process group is removed. Stalled attempts are not listed in the work report.

🤖 Generated with Claude Code

bryanwieg and others added 2 commits November 24, 2026 15:29
Each stalled call is recorded with exit 7 after its edits are undone: a
stage's as an error attempt (not a try of the pair), a revise or review
as a run. A stalled revise does not count as the phase's revise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude runs in its own process group (setsid), and the group is stopped
when the call stalls or finishes, so no test run or shell it started is
left behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg
bryanwieg merged commit 4148fb4 into main Nov 24, 2026
1 check passed
@bryanwieg
bryanwieg deleted the stall-cleanup branch November 24, 2026 15:31
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