fix(ui): after a budget respawn the step pane reads the live session and names the session in use (#57) #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/step-pane-respawn-57"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #57.
After a budget respawn, the step pane went on describing the attempt as it was before the hand-off. On production run
run_01M3FS9FFXEHTY5WTHX36V4Z5Y,fix.implementpeaked at 196k and respawned onto a fresh session carrying 28k. The graph row read 28k. The step pane read "Attempt 1 · context 196k of 252k" in alarm colour and named the retired session5pj0YKlr.What changes
contextfield read the same live digest frame as the graph row, so the two cannot disagree. The attempt's high-water mark stays beside it as its ownpeakfield (with an ⓘ). A finished attempt that respawned labels its figurepeakrather thancontext.GET /api/steps/{id}gainscurrent_session_idon each attempt. It is the latestosf.budget.respawnedto_session, read with the digest's own_RESPAWNED_TO_SQL, andnullwhen the attempt never respawned. The change is additive, andattempt.session_idis unchanged because recovery asks about it.OpenSpec change:
openspec/changes/step-pane-follows-respawn/. It modifies twostep-detailsrequirements.Verification
pytest tests/unit: 1741 passed and 1 failed. The failure istest_liveness.py::test_a_real_server_that_stops_answering_is_gone_even_with_no_pid_to_ask_about, in a file this PR does not touch, and it passes when run alone. It is a timing flake under full-suite load.main:tsc -b, 397 vitest tests andvite buildall pass.ui-polish.spec.ts(the meter matches the graph row,peakis shown, and the chip names the current session). The 2follow-the-tailspecs fail the same way onmain: they need a real osfd with a streaming transcript.38k, the card reads38k of 144k, the fields showpeak 113k, and the chip readssession 4e8a17f2.🤖 Generated with Claude Code