Repository navigation
Keep floating-panel counts still when Close disappears - #3651
Merged
Merged
Conversation
# Conflicts: # dist/kernel/kernel.json
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
Since #3651 the floating panel's exit seat keeps Close's width even when it is empty, so a view closing on its own leaves the On me and Threads counts where they were. That room also stood while the user typed on the page, where the counts step aside and nothing else uses it, so the field stopped 34 px short of the row's end, leaving an empty stretch after Send. The seat now keeps its room only while the counts stand. Once a draft steps them aside, an empty seat collapses and the field runs to the row's end, as it did before #3651. With a view open, Close still stands in the seat and nothing changes. `leaf-dev probe alert-review --base`, with the caret in the field and one key typed: the field's right edge goes from 950 px to 982 px, against a row inner end at 984 px (the 2 px is the row's flex gap). The empty field and the Threads view with Close measure the same on both arms. `test_send_stands_in_the_counts_place_while_the_field_holds_a_draft` now asserts the field reaches the row's end; it fails at 34 px with the new rule removed from the served sheet. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
The Leaf panel's row used to end in an On me mark, a Threads mark, and a seat kept empty for the ✕ (#3651). That left a gap at the row's end and cut the status words short. Now the row ends in one seat holding one button. At rest it is the On me mark, with its count and a dot while a thread holds an unread reply. While a view, stance or search is open, it is the way out (Close, Exit Draw mode, Close search…), in exactly the mark's place. The press that opens a view leaves the user on what closes it, and nothing needs room kept. A draft with no way out standing still lets the field reach the row's end (#4105). Threads is now a tab of the On view (On me · On ‹agent› · Threads · Plan), since On me already lists a thread message that waits on the user (#3666). Its Open/Unread/Drafts/Resolved filters are gone. Open threads come first, each saying New or Draft, then resolved ones under a Resolved heading, as Done items stand under On me. With nothing on the user but an unread reply, the mark opens Threads directly. `g T` and `g M` are unchanged. The user chose this design from three candidates on a Leaf exploration page: today's row, the two marks tidied with the ✕ before them, and this one. What users lose: the open-thread count moves from the row to the Threads tab; Threads by pointer is the mark, then its tab; the On me count is out of sight while a view or stance stands. Navigating the diff: - `browser/runtime/floating-panel.js`: the seat (`quick`, `seatHeld`, the one button in `paintNow`), `onTabs`/`onTab`, `threadsView` and `pressMark`. The header records the decision and the rejected alternatives. - `browser/styles/floating-panel.css`: the seat's fixed width; the exit seat and the second mark's rules are removed. - `lf-sample`'s `showThread` drops `status: "resolved"`, which only chose a filter. - Tests open Threads through one pointer helper (`dev/leaf_dev/browser.py`, `open_threads`, re-exported by `tests/render_harness.py`); tools that run one checkout's driver against another's runtime (`stills`, `bench-latency`, thread snapshots, `verify-site`) use `go_to_threads` (`g T`), which both runtimes share. Tests read the open count through the runtime's `threadCounts`, now on the check API. About 70 test files move to the new selectors; tests whose subject was a filter or the second mark were rewritten for the new behaviour, none deleted. - Prose: the glossary's Leaf panel entry, `docs/how-it-works.html`, `docs/threads.html`, the two developer galleries and `live-samples.md`. Checked: `pnpm run test:runtime`, `pnpm run check:browser`, ruff and pre-commit, and about 40 selected browser tests (opening Threads, the Resolved section, unread news, focus and rings, Draw-mode exit, the drafted field reaching the row's end). A probe on `review-a-plan` showed the seat's position and width unchanged at rest, in On me, in Threads, after Close and in Draw mode. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
When the floating panel's Close control disappeared after a refused send, a sample reload or a delayed reader, its seat collapsed and moved the On me and Threads chips by 34 px without input. The empty exit seat now keeps the control's width, so those chips and the comment field stay put as the panel view changes.
Six browser cases that failed in main run 39869500958 pass locally against the rebuilt runtime.
pnpm run checkalso passes, including 518 runtime and 85 Worker tests.