Repository navigation
to-human: unfolded working record draws as the transcript does, fold button at its end - #178
Merged
Merged
Conversation
…ld button at its end Unfolding a run of working record drew every call of a tool group as its own row with its whole output inline: the mod rewrote the group's isExpanded to true, and an expanded group is the ctrl+o form, verbose and transcript mode both hard-coded in the engine. The group now draws as the transcript draws it, its count line, and under --verbose the engine's own per-call rows. [ fold to report ] moves from the run's first row to its last, where the person is when they finish reading. A call's row and its result's share an id, so the result row carries the button once the call has resolved and the call's row only until then; a row that joins an open run, or a streaming message that turns from record into a mark closing it, moves the end, and see() asks for the rows again since the row that drew the button is cached as it was. see() is a top-level function now: the engine's static check lets $ reach only those.
…the order The engine expands a group itself in the ctrl+o transcript (isExpanded is verbose || isTranscriptMode), and the mod's hooks draw there too. Adding an expanded group's calls to the run order put them after rows that had drawn since, so a historical group opened by ctrl+o drew its calls as a new folded run; and once the group collapsed again the calls stayed in the order with no row to draw, so a run ending at the group lost its fold button. A call's row now finds its group's run by groupOf, and the group's last call draws the run's end in the group's place. From the independent review of PR #178; both cases reproduced live before the change and pass a ctrl+o round trip after it.
9 of 12 tasks
SSFSKIM
added a commit
that referenced
this pull request
Nov 7, 2026
sminos 1.40.2: the uplink code RL10 cannot reach goes (board #178)
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.
Summary
isExpandedto true, and an expanded group is the ctrl+o form (the engine hard-codes verbose and transcript mode for those rows). The group now draws its count line as the transcript does.[ fold to report ]moves from the first row of the run to its last, and moves down as the run grows. A call's row and its result's share an id: the result row carries the button once the call has resolved, the call's row until then.see()invalidates the render cache when a new row joins an open run (or a streaming message turns from record into a mark), since the row that drew the button is cached as it was. It is a top-level function now, the only place the engine's static check lets$reach.isExpandedisverbose || isTranscriptMode, and the hooks draw in the ctrl+o view too), each call's row finds its group's run throughgroupOfand is never added to the run order, and the group's last call draws the run's end in the group's place. Adding the calls to the order had split a historical group from its calls after a ctrl+o visit, and left a run that ends at a group with no row to draw its button once the group collapsed again.Verification
tsc -p hooks/mods/tsconfig.jsonclean,claude plugin validate .clean,tests/mods/run-mods-tests.sh37/37 (three newrunEndtests).--plugin-dir, haiku): a run of reads and shell commands unfolded mid-run shows the engine's live group row with the button under it, then the count lineRead 3 files, ran 2 shell commandswith the button under it once the run ends; an Agent call joining the run moves the button from the group row to the Agent's result row;[ fold to report ]folds the run back; under--verboseeach call draws as its own row with the button under the last.recordRowpath as the group row, withclosestrue.