Repository navigation
Start page threads only from the banner's card, not Threads' foot - #2139
Merged
Merged
Conversation
Threads loses its general box. The page comment card under the banner's Comment on the page control is now the one place a page thread starts: the control, `c` with nothing targeted, and Resume writing all open it, whether Threads is open or shut, and Threads is where a thread lives once started. With one box, page-comment.js drops the second root editor, the mirrored draft and every branch on whether Threads is open; the card's composer takes `lf-general` and the CSS copies made for it go. Behavior that changed: - With Threads open, `c` and the control open the card, which hangs over the panel's top. A send from it puts the card away, flashes Threads, and reveals the new thread in the open list, as an anchored comment's send does; focus stays on the control. - Threads' empty text points at the banner instead of "the box below". - An executable revision arriving while the user writes in the card opens the card again with the caret where it was: editing continuity shows a hidden root editor through its owner's Resume writing route (drafts.js). It used to restore only a visible box, so the card came back shut and the caret was lost. - On a phone the card keeps inside the side safe areas. Tests: every test that wrote into Threads' box now opens the card (`page_comment` in render_harness.py). Tests of the panel box's own layout, focus-after-send and Escape-to-list are rewritten for the card or deleted where no equivalent exists. The words watch now credits the closes the browser makes of open popovers (light dismissal, an invoker's toggle, Escape) to the gesture that caused them, as it does a native <details> close; a timer's close still fails. The thread snapshot journey's general case writes in the card beside open Threads. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The general case now writes in the page comment card beside open Threads, and panel-narrow's list runs to the panel's foot. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- On a narrow desk, where the control stands too near the window's left for the card's width, the card slides right to stay in the window; it hung off the left edge at 500px. Both postures keep inside the side safe areas. - Revision continuity opens a hidden root editor only through a Resume writing route that offers an `open`; a seat's route has none and an unavailable lf-draft's is null, which threw a continuity error. - The words watch retains only the popovers a press lands outside, since a press inside one never light-dismisses it; a timer's close during such a press is reported again. - The startup replay test again checks the page's box takes words while the first state answer is held; stale prose about the panel's composer goes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
With the general box gone, Threads' list runs to the panel's floor: - An empty list's focus ring now reaches the panel's floor rather than a footer divider that no longer exists; the test asserts that no strip is left under it. - The list is taller by the box's height, so the two summary tests that scroll a card wholly out of view need more threads after it to scroll that far. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # tests/input_work_watch.js
# Conflicts: # leaf-assets.json
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…foot box Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # .claude/skills/developing-leaf/references/glossary.md # leaf-assets.json # skills/leaf/assets/runtime/chrome.css # skills/leaf/assets/runtime/thread-panel.js # skills/leaf/assets/runtime/thread/landing.js # skills/leaf/assets/runtime/thread/page-comment.js # skills/leaf/assets/runtime/thread/panel-elements.js # tests/test_render_controls.py # tests/test_render_widgets.py # tests/test_site.py
Both tests need Threads' list to overflow: one holds an opened card taller than the list, the other scrolls the list before clicking a shadow input. Without the foot box the list is taller, so their fixtures grow until it overflows again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The bar yields a panel standing beside the page its width, so a reply pinned at the foot of Threads' list stands beside the bar, not under it. The helpers read any node below the bar's top as covered; with no foot box the pinned reply now sits that low. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- The composer growth test types in the page comment card, whose editor caps at the card's room beneath the banner rather than half the window; it asserts the card stays in the window instead. - The card test asserts its editor gives way before the card scrolls. - The phone card measures against the viewport as the desk card does (100%). - Threads' foot holds no composer, so its reading region and reading-regions.js' `apparatusFor`, which only that region used, go; the panel's comments and how-it-works stop describing the box. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # leaf-assets.json
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A z-index orders its box only inside its stacking context. The walk ended at the first z-index it met, so with no foot box a thread's sticky title, lifted inside the list and no further, read as standing over the panel grip's ring. The ring's run was all the ring's own colour. The walk now resumes at the stacking context around that box. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # leaf-assets.json # skills/leaf/assets/runtime/thread/page-comment.js # skills/leaf/assets/runtime/version.js
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # .claude/skills/developing-leaf/references/glossary.md # docs/how-it-works.html # leaf-assets.json # skills/leaf/assets/runtime/keyboard/AGENTS.md # skills/leaf/assets/runtime/thread/page-comment.js # skills/leaf/assets/runtime/thread/panel.js # tests/test_render_threads.py
…eads too Main now keeps the card open and focused after a send (#2116). With Threads open the card is where a page thread starts too, so the tests that followed the old close to the control now stand on the card, and `c` writes in it again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A send now leaves the card open with focus on it, so the helper presses the box of a card already open, as the user would. The refused-comment test keeps its point, that the refusal does not take the user's keys back into the box, without expecting the card shut. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Main keeps the page comment card open after a send (#2116). Its box empties at once and shrank, so Send moved under the press; a refusal then handed the words back and the box grew again, moving Send with no gesture. The thread snapshot journey's general case, now the card, failed the shift watch on that refusal. The box keeps the room its words took until the user writes in it again or the card goes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- The ring cover walk now marks the stacking context it resumes at as hoisted, so a static holder above it answers through `clears`. Resetting it let a band lifted inside a static stacking context (opacity) hide behind its holder's rank while the page painted it over the ring. - The page comment box holds a sent draft's room as its flex basis instead of a floor, so a window that later shrinks still shrinks the editor before the card scrolls and Send stays in reach. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- The walk resumes at the stacking context around a z-indexed box and ranks it by its own place, since it paints as one unit; only static boxes above a static stacking context answer through `clears`. Hoisting the context itself read a band inside a context the control paints over as a cover. - The page comment card holds the whole composer's room after a send, attachments included, with the field filling what they leave, so a refusal that hands back words and an image leaves Send where the send left it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A refusal held back while delivery retries showed the field still moving: it grew into the room an emptied attachment shelf left and gave it back on the refusal. The field now keeps its own height at the foot of the composer's held room, so the attachments' room stands empty above it while the send is out. The held-room test holds the refused request and checks the field and Send while it is pending as well as after the refusal. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 9, 2026
The first keystroke after an accepted send released the whole held room, so with an attachment the emptied shelf's room collapsed and the field's top jumped 64px under the key. The field's height is still released on input, shrinking it at its foot; the room the attachments took stays above it while the shelf is empty, until the card closes. The held-room test types again after an accepted send with an image and checks the field's top. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 9, 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 no longer has a comment box at its foot. The page comment card under the banner's Comment on the page control (#1930) becomes the one place a page thread starts, with Threads open or shut: the control,
cwith nothing to comment on, and Resume writing all open it, and Threads is where a thread lives once started.Behavior that changed
cand the control open the card, which hangs over the panel's top. A send leaves the user on the open card (main's Keep focus on conversation cards after sending #2116), flashes Threads, and scrolls the new thread into view in the open list, as an anchored comment's send does.drafts.js). It used to restore only a visible box, so the card came back shut and the caret was lost.Code
thread/page-comment.jsowns the only general box. The panel's second editor, the draft mirroring between the two, and every branch on whether Threads is open are gone;panel-elements.js,thread-panel.jsandleaf.jsstop building and wiring it. The panel foot stays as page annotations' response-bar home.lf-generalwith main's column composer rules; the separate.lf-page-composercopy is gone.reading-regions.jsdropsapparatusFor, whose one caller was the foot composer's reading region.Tests
page_commentinrender_harness.py). Tests of the panel box's own layout, focus-after-send and Escape-to-list are rewritten for the card, or reduced to what the panel still owns (main's short-panel test keeps its grip and body-scroll checks; the card's short-window fit is the card test's).clear_of_the_barcounts the shortcut bar as covering only the columns it spans: it yields a beside-panel its width, so a reply pinned at the list's foot stands beside it.