Skip to content

Keep active foreground turns out of the start timeout - #8517

Open
bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-8516
Open

bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-8516

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

A completed delegate whose start lacks a parent link can mask a still-open foreground turn. The deadline recheck used that ambiguous history to stop the thread even when the foreground turn had accepted the latest request and was still producing output.

Reproduction and root-cause report: https://get-bb.github.io/reports/issues/8516.html

What changed

The final deadline check now looks for matching acceptance and recent foreground output on the same open turn before allowing a stop. Unrelated acceptance, stale output, and output from a delegate do not suppress the timeout. The candidate scan and wire protocol are unchanged.

Changed lines: 167 across two files (43 production, 124 test).

How you verified

  • The focused matrix fails on main with one false deadline error; its three timeout controls pass. All four cases pass with the fix.
  • Deadline sweep and lifecycle suites: 60 passed. Full database suite: 819 passed. Type checks and type-aware lint pass for both packages. git diff --check passes.
  • The optional events query-cost sweep reports zero CPU calibration and unrelated timing failures both before and after the change; it did not flag the changed deadline lookup.

Fixes #8516

AGENT GENERATED

This branch has not been deployed

No deployments
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.

Codex: BB stops a working parent after it accepts a follow-up and a helper has finished

1 participant