Repository navigation
fix(mobile): a folded burst's children can fetch their own commands - #867
Merged
Merged
Conversation
A burst ("运行 2 次") folds consecutive completed shell calls into one row. On a
lean history page none of those calls carries its command, and the folded row
has no call identity of its own — so its children rendered as bare labels and
there was no way at all to find out what ran. A reader saw "已运行" twice and a
dead end.
Each child now fetches its own command on tap, the same way a single tool row
does: one tap, one command, and only for the calls actually opened, so the byte
story is unchanged (the page still drops them all). A child that already carries
a command stays a plain line, and one without call identity is not tappable.
The render fixture gains a real burst (two adjacent successful shell calls) and
`lean-render-history` now asserts it: the pair folds, opening one child reveals
its command, and the sibling stays a label.
Verified end to end in the harness (real UI + real projection): all five
lean/full scenarios pass, and forcing the child affordance off makes
`lean-render-history` fail with "the burst must list its two calls, got 0".
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.
What a phone showed
A burst folds consecutive completed shell calls into one row. On a lean history page none of those calls carries its command (the trim drops every shell
arguments), and the folded row has no call identity of its own — so its children rendered as bare labels with no press handler. The command was unreachable: not by opening the parent, not by tapping a child.The single-row path had already solved this (
ToolRowfetches its own command when opened); the folded path simply never got the same affordance, so "点击后再取" had a hole exactly where a burst is.The fix
Each child that still has a call identity fetches its own command on tap — one tap, one command, and only for the calls the reader opens, so the byte story is unchanged (the page still drops them all):
Verification
lean-render-historyasserts the pair folds, opening one child revealsdiff notes/frank-summary.md notes/dreher-summary.md, and the sibling stays a label. Falsified: with the affordance off the scenario fails withthe burst must list its two calls, got 0(exit 1).gen-lean-render-fixtures.mjsre-run leavesgit statusunchanged).npx jest --runInBand— 2074 passed, exits cleanly;tsc --noEmitandeslintclean.