Repository navigation
Stand one marker for the threads a closed box hides, badged with their count - #7481
Merged
Merged
Conversation
…r count A thread whose words a closed box hides, a tab not chosen or a closed disclosure, stands its marker by what the page shows for the box (#7477). Several threads in one such box stood a marker each by that face, and a part's name in the column of parts is too narrow for more than one or two: on Max's page, four threads in a part not shown put one marker a line up, beside the part above's name. Max chose, on his page, one marker for each hidden part or tab, counting its threads. The projection now gathers, at each render, the thread entries one closed box hides (`gatherFaces`, keyed by the box `closedOver` names, not by its face, since boxes apart can show one face, as a deck's cards do). The first entry's row, in reading order, draws every thread of the box, so its badge counts them, its preview lists them and a press opens the box on the first. The others keep their rows and entries, so every route to a thread, its card, Page Map and the thread walk included, still finds the thread's own row; a new row option, `gathered`, has the layout withhold them, joins what `registerMarginRow` compares, and keeps them out of the rows a scroll reads again. A card open on a gathered thread withholds itself with its row until the box opens, focus on a marker that joins a group moves to the marker counting it, and spoken positions count only the markers the walk reaches. A pass that reads another box for a row than the render gathered it by draws the margin again (`afterScript`, as a fold already did), which gathers or parts the threads as the box closes or opens. What a user sees differently: - Threads on several passages of a part, tab or disclosure not shown stand one marker by its name, badged with how many; hovering it lists them. - A press on it opens the box on its first thread, where each thread then stands by its own words; reaching another takes a second press. - A gathered thread's other readings, such as a change, show once the box opens. Tests: `test_the_threads_a_part_not_shown_holds_stand_one_marker_counting_them` covers the badge and place by the part's name, the press that parts them, and choosing another part, which gathers them again; it fails before this change, which draws a marker for each thread. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 28, 2026
This was referenced Nov 28, 2026
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.
Threads on several passages that one closed box hides (a part or tab not shown, a closed disclosure) now stand one marker by the box's face, badged with their count, instead of a marker each crowding a face as narrow as a part's name. The projection gathers them at each render by the box
closedOvernames (gatherFaces); the first entry's row draws every thread, and the others keep their rows and entries but stand nowhere through a new row option,gathered, which the layout withholds andregisterMarginRowcompares. A pass that reads another box than the render gathered by draws the margin again, so the threads part as the box opens and gather as it closes.To weigh: gathering is a render-time read of each thread entry's closed box (an ancestor walk;
closedFaceOver's layout read only for hidden ones); a box opening or closing costs one more render; a gathered thread's non-thread readings wait for the box to open; a card open on a gathered thread hides with its row until the box opens, as a card on any withheld row does.Max picked "one marker per hidden part or tab" on his page after #7477. Codex reviewed four rounds.
test_the_threads_a_part_not_shown_holds_stand_one_marker_counting_themfails before the change; the neighbouring face tests,pnpm run test:runtimeandcheck:browserpass.