Skip to content

Detect unfinished Claude Code background turns - #188

Merged
Qian-Cheng-nju merged 1 commit into
mainfrom
fix/claude-truncated-background-termination
Oct 9, 2026
Merged

Qian-Cheng-nju merged 1 commit into
mainfrom
fix/claude-truncated-background-termination

Conversation

@Qian-Cheng-nju

Copy link
Copy Markdown
Member

An early successful Claude Code result can be followed by background activity that is cut off, including an OOM exit. The classifier currently reuses that earlier result and reports OK. Require a result after the last conversation activity and reject malformed event streams so unfinished follow-up turns are classified as INFRA_ERROR.

Completed result sequences, error_max_turns, runner timeout precedence, and trailing rate-limit telemetry retain their existing behavior. This independently fixes the termination issue found while reviewing #186; it can merge before or after that PR.

Validation: 1,446 evaluator tests passed; Ruff lint, format, and diff checks passed. Twelve new regression cases fail on the base revision. Compatibility checks with #186 distinguish completed and truncated background sequences, and all ten stored experiment-stream snapshots retain their previous termination classification.

@Qian-Cheng-nju
Qian-Cheng-nju marked this pull request as ready for review October 9, 2026 05:56
@Qian-Cheng-nju
Qian-Cheng-nju merged commit 3de8501 into main Oct 9, 2026
1 check 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