Repository navigation
P5 O7 M10 follow-up: a thinking block measured from its own start, no figure under a second - #482
Merged
Merged
Conversation
…ght", no figure, by the turn divider's threshold (SHORTEST_FIGURE_MS); "Thought for 0s" said nothing (P5 O7 M10's follow-up, C at the re-check, part 2) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts content_block_start, so MAWS draws and measures it from the block's own start; on claude-opus-5-5 the text arrives in one burst just before the block's end, seconds later, and a row measured from its first delta read "Thought for 0s" (P5 O7 M10's follow-up, C at the re-check, part 1; proved on the recorded opus-5-5 frames through the normaliser, reducer and derive) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he proofs in the spec's Decision Log Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the agents and panel-child event fixtures regenerated (thinking rows start at their block's start, a few ms earlier; "Thought for 0s" reads "Thought"; one empty thinking delta per streamed thinking block); the digest's proof moves to the node project (static: the renderer project can't import services); the journal-paging case reads each row at most once, its ring boundary moving with the events a row yields Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the review Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ture (times and ids shift with the inserted thinking starts) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 5, 2026
…s start) landed (DL 222); O7's Outcomes addendum, two tracker rows Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P5 O7 M10's follow-up, C at the re-check: the owner's MAWS-run session showed "Thought for 0s" under Internal activity, after the swap to master 01c0b23. A thinking block is now measured from its own start, and no figure is shown under a second.
The cause
On claude-opus-5-5, a thinking block's
content_block_startarrives 0.2 to 2.9 s before its text. The text then comes as one delta, or a burst of them, just beforecontent_block_stop. In 10 of the 15 opus-5-5 thinking blocks inspikes/protocol-probe/fixtures/, the burst falls within 1 to 23 ms of the stop.The engine host's normaliser emitted nothing at
content_block_start, so a thinking row's marker andatwere its first delta.derive.ts(completedAt - at) therefore measured only the burst, andduration()floored it to "0s". The live row appeared only at that first delta.Two other explanations were ruled out:
atunchanged. Disk and reseeded history have no deltas, so their rows read "Thought".CellLinealways draws its chevron.The fix (the architect's ruling)
streamEvent,content_block_start) emits a thinking block's start as anassistant.block.deltawiththinkingDelta: ''. That is the existing shape, so the wire and RL2 are unchanged.redacted_thinkingblock, and every other kind, starts silently.thinkingLabelreads "Thought" under 1 s. It uses one threshold,SHORTEST_FIGURE_MS, shared with the turn divider's "Working". This covers peers on older engine hosts, and lane A.The re-check rides on a later swap, since the MacBook's and the mini's engine hosts get part 1 only from a new build.
Validation Evidence
src/renderer/src/transcript/model/thinking-duration.test.tsruns the recorded opus-5-5 frames (MAWS-run, lane B) through the normaliser (journalToEvents), the reducer and derive. Run alone withnpx vitest run --project renderer <file>.p4-tool-summaries-thinking-editsreadThought for 0swhereThought for 2sis expected;p4-r7-loss-stagesreadThought for 0swhereThoughtis expected; the textless block's live row was missing.Tests 4 passed (4). This adds the case that the block keeps its place before the answer.src/engine-host/normalizer.test.ts(--project node): red with 2 failed (the new case, and the existing pairing case's delta count); green withTests 71 passed (71).src/services/sessions/digest.test.ts(--project node), onp4-r7-loss-stages: against master's normaliser, Thinking wasn't read at seq 194 (1 failed | 45 passed). With the fix,Tests 46 passed (46).src/renderer/src/transcript/model/copy.test.ts: red with1 failed | 45 passed (46); green with46 passed (46). The divider's "Working" is unchanged.snapshots.test.ts -u, 16 files).MAWS_WRITE_AGENTS_FIXTURES=1,MAWS_WRITE_PANEL_CHILD=1).session-stream.test.tsnow asserts that each row is read at most once. Its old exact count assumed where the ring boundary falls, and that boundary moves with the events a row yields.--gates allon 7091212: run 42013363487. 53 jobs succeeded with no flaky passes,e2e:remote,e2e:transcriptande2e:lane-aamong them. Two failed:presentations-comments.spec.ts:248(the pin popover's reply focus).--gates static,unit,packagedon f25855c: run 42022352182. Static and all four unit shards succeeded, as did packaged 1/2. Packaged 2/2 failed on a different spec,render-host.spec.ts:442(a drag's held button), which had passed in the run before.Neither packaged spec touches the transcript or thinking. Each failed in one run and passed in the other.
--gates packagedon f25855c: run 42026197040, success: both packaged shards green.Residue
content_block_startto a hook as an opaque engine chunk with no block type (sminos's TurnStepEngineChunk), so the bridge first sees a thinking block at its firstthinking_delta. Lane A gets part 2 only.presentations-comments.spec.ts:248(the reply field not focused) andrender-host.spec.ts:442(a drag's moves without the held left button). They belong with the hosted-Mac flake row (docs/tech-debt-tracker.md, 2026-10-28, CI-opt).Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)