Skip to content

Start page threads only from the banner's card, not Threads' foot - #2139

Merged
max-sixty merged 29 commits into
mainfrom
top-bar-new-thread
Oct 9, 2026
Merged

max-sixty merged 29 commits into
mainfrom
top-bar-new-thread

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

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, c with nothing to comment on, and Resume writing all open it, and Threads is where a thread lives once started.

Behavior that changed

  • With Threads open, c and 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.
  • After a send, the card's field keeps its height until the user writes again, and the room its attachments took stays empty above the field until the user puts the card away. Send stays under the press, a refusal that hands back the words and images returns them to the room they left, and typing again leaves the field's top where it was. The field's height is a basis, not a floor, so a window that later shrinks still shrinks the editor before the card scrolls.
  • An executable revision arriving while the user writes in the card opens it 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.
  • The card stays inside the window and both side safe areas at every width, combining main's Keep comment controls reachable and refresh comparison measurements #2016 clamp with the safe-area insets.
  • Threads' empty text points at the banner instead of "the box below".

Code

  • thread/page-comment.js owns 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.js and leaf.js stop building and wiring it. The panel foot stays as page annotations' response-bar home.
  • The card's composer takes lf-general with main's column composer rules; the separate .lf-page-composer copy is gone.
  • reading-regions.js drops apparatusFor, whose one caller was the foot composer's reading region.

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 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).
  • Fixtures that needed Threads' list to overflow grow, since the list now runs to the panel's foot.
  • clear_of_the_bar counts 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.
  • The words watch credits the closes the browser makes of open popovers (light dismissal, an invoker's toggle, Escape) to the gesture that caused them; a timer's close still fails.
  • The focus-ring cover walk carries past a z-index to the stacking context that holds it and ranks that context by its own place, hoisting only static boxes above a static stacking context. It read the comments panel's touch grip ring as under a thread's sticky title, whose z-index lifts it inside the list and no further, while every pixel of the ring was the ring's. New cases check a band lifted inside a static stacking context on both sides of the control against the page's pixels.
  • Thread appearance snapshots are accepted again from the tree merged with main.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 28 commits October 6, 2026 17:17
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:
#	.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]>
- 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
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
# 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
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]>
@max-sixty
max-sixty merged commit d5189cd into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the top-bar-new-thread branch October 9, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants