Repository navigation
Paint resolved thread cards continuously and reopen from status - #1787
Merged
Merged
Conversation
leaf-agent
reviewed
Oct 5, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The PR description says the appearance expectations are still being refreshed from the reviewed captures and CI artifacts before merge. I’m withholding approval until that work is complete.
leaf-agent
approved these changes
Oct 5, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
#1787 lets the agent's reply on the inline diff thread be read before the user's two replies arrive, so its seat holds two of them behind its notice rather than three. The lifecycle journey keeps that: it waits for the read reply and opens the "2 new replies" notice. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
…ply row (#1797) Two problems in the Threads list: text from a long open thread showed below its pinned Reply box, and the thread's title scrolled away while reading inside it. **Title.** An open thread's title is now a sticky header in the glossary's sense (`chrome.css`): it sticks at `--lf-top`, and the rows under it read `--lf-top` plus its height and carry `scroll-margin-top`, so a landing arrives clear of it while the list's own scroll-padding stays the focus-ring room. `thread/landing.js` subtracts that margin from the band a long thread lands in. The title stands at z-index 6, above every layer a row raises (1–5 in `shadow.css`), so an open reaction list scrolled up to it goes under it; rows stay unisolated so those lists still reach over the Reply row. The anchored Resolved/Reopen action sits one above the title. **Below Reply.** The card paints its own surface (from #1787), and the sticky Reply row paints a ground from itself down to the scrollport's edge, which the card clips to itself (`overflow-y: clip`). Whatever scrolls past the Reply row is now behind paint. `tests/test_chrome_contracts.py` sweeps a long thread under the title at wide and narrow widths, with and without the walk status, and checks that nothing hit-tests through the title and that an open reaction list goes under it. **Snapshots.** Thread appearance is now compared on macOS only: Mac and Linux never render the same pixels, and a Linux baseline could only be produced on CI's own runner. On Linux the delivery journey and its assertions still run. `TODO.md` ("Development velocity") holds finding a way to guard appearance on CI again. The macOS images for this branch are accepted and pinned in `leaf-assets.json`, and AGENTS.md now says publishing to leaf-assets belongs to the change that needs the images. Still open: over a covering panel, the walk status ("Thread 2 of 2") still reserves a 65px band at the list's foot (`--lf-threads-foot`); this change paints it but doesn't remove it. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 5, 2026
#1787 made the resolved thread status show its agent attribution and turned that status into the Reopen thread action. Two older browser assertions still expected the generic `Resolved` text and an exact `Reopen` button name, causing five failures in [the main run](https://github.com/max-sixty/leaf/actions/runs/37260003321). Read the current status text and find the reopening control by its stable action suffix. The affected gallery assertion and all 12 destination cases pass locally (`13 passed`). This updates test expectations for the shipped control; it does not change the control itself. Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
…#1835) A thread resolved or reopened from another tab, or by the agent, moved an open card with nothing to say why. Resolving removed a short card's reply box and reaction strips, so the card's words rose 17px and the next card rose 54px. Reopening put them back. On a diff line, resolving folded the outlet and lifted the paragraph below it by 155px. `HeldNews` (thread/held-news.js) now holds a settlement behind the thread's existing notice, the way it already held new replies and reactions. The card stays as drawn and the notice reads "Resolved" or "Reopened". This is a restructure of `HeldNews`, not one more kind of news: - **One baseline.** Each reading is compared only with the reading the seat drew last. `difference(was, now)` says what would draw differently: new or edited messages, reactions added or removed, and the settlement. The notice's label is that difference, and a reading that returns to what is drawn holds nothing. The three snapshots the old code kept are gone (`#known`, `#turns`, `#reopened`). - **Holding at the source.** Each reading carries its thread (`source`) and a `reread`. A held thread is the current thread with the log's news withheld: its settlement, its messages and reactions as drawn, and each message's words as drawn (only an edit changes them). It is read like any other thread, so what is derived from it (its title, reaction strips and controls) agrees with what the card draws. Whose turn it is and each message's delivery read as the server has them now; they change the title's status and a message's head row in place. - **One own-gesture rule.** `gesturedOn(thread)` reads the ledger to decide whether the user is acting in a thread. It counts: - one of its messages; - a reply, reaction or settlement naming one of its messages; - a move on a widget one of its messages holds; - a refusal; - an undo, which counts in the thread of the gesture it takes back. `HeldNews`, `HeldArrivals` and the panel list's `keeping` all use it. The list had its own copy, and `HeldNews` had a narrower one that missed settlements, refusals and undos. - **Holding only what would be seen.** A change is held when growth would be seen after a changed message, after the thread's foot, or at the row a settlement swaps (the reply box, or a page thread's row holding Reopen). A folded panel card holds nothing, because its title row draws at one size. In a long thread whose reply box is pinned, new replies still grow above the box, but a settlement is held, because it would take the box away. - **Presses mean what they drew.** Pressing Resolve on a card whose resolution is held shows the resolution and sends nothing, because `settle` already refuses a thread that is already in that state. If the reveal removes the pressed control, focus lands on the card's title. - **Cards off screen.** A card the reading hides, or one folding out, holds nothing. - **The panel's view.** Changing the filter or Find shows what every card holds, since it moves the cards anyway. A card the view stops admitting is put away at once rather than folded out. - **Kept cards.** A card another actor resolves under the Open filter holds the resolution behind its notice. Once the user shows it, the card keeps the shape it stood in until it leaves, as before. - **Resolved panel cards.** Since #1787 a resolved panel card's Reopen stands in its title and the card draws no row below its messages. Its notice stands in Reopen's place there, in the same face, so a held reopening grows nothing. The title holds one control: the notice is a node of its own, and takes the focus of a Reopen it replaces, so `r` and Enter still press it. Behaviour changes, each with its test updated: - An agent's or another tab's resolve now waits behind the notice on an open card it would move, including while the user writes a reply there: - `test_an_external_resolution_keeps_a_panel_reply_until_it_is_sent` - the panel cases of three reply-lifetime tests in `test_render_drafts.py` - `test_a_remote_resolve_disarms_the_open_reply_list_it_takes_away` - `test_the_thread_follows_the_decision_that_still_stands` - `test_a_thread_says_what_the_agent_is_doing_about_it`, whose title loses its "Working" status while the resolution waits - the two kept-card contracts in `test_chrome_contracts.py` - `test_a_website_turn_posts_its_answer_when_the_move_is_settled_first`, whose `r` and Enter routes become one arrival, a click on the title: arriving at the thread already shows the held answer, after which `r` resolves the thread and Enter goes to the reply box. Its `elsewhere` case folds the card, which then holds nothing - A folded panel card takes news in at once: - `test_an_arriving_reply_cannot_move_resolve_out_from_under_a_press` - `test_walking_to_a_thread_shows_the_replies_it_held` - A held thread's delivery status draws as it stands, so a receipt clears with the turn that takes it in: `test_a_card_moved_on_a_board_in_a_reply_reports_delivery_on_that_reply`. New tests: - `test_a_settlement_from_elsewhere_moves_nothing_in_a_short_panel_thread` and `test_a_resolution_from_elsewhere_moves_nothing_after_a_diff_thread` fail on main through the shift watch. - `test_taking_back_a_resolve_is_the_users_own_gesture` covers `z` after the user's own Resolve. Not covered here: an agent's progress summary still moves an open card, on main as here. > _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.
Resolved thread cards painted the title, transcript, and footer separately, exposing the panel background between them. The card now paints one continuous surface, and its underlined Resolved status reopens the expanded conversation. Status and age share font metrics and a baseline.
The reopening button remains a separate native control beside the disclosure, with keyboard and touch targets, full accessible attribution, and ellipsis for long agent names. Thread shortcuts find settlement controls by their owning thread rather than their footer position, preserving reopening and undo after the move.
Validation includes 22 focused browser regressions, 205 runtime tests, rendered desktop and phone comparisons, browser-framework and Worker checks, repository lint, and no additional startup requests. All 42 Mac and 42 Linux appearance checkpoints were reviewed against the prior pin with unchanged geometry. The Linux captures come from the completed Ubuntu CI journeys, and both profiles are published together under the updated asset pin. The inline lifecycle assertion now counts the two replies still held after the earlier reply has been read; Reopen selectors exclude Reopened notices.