Repository navigation
Show a thread's summary as a tinted region under one quiet count, and stand a card's opening summary under its actions - #6379
Merged
Merged
Conversation
… stand a card's opening summary under its actions
A summary of earlier messages now stands in the tint Leaf gives settled
things, under one quiet press saying what it folds ("› 5 earlier
messages", set as a message's time is), with no Show or Hide. Opened, the
tint takes in the messages it folds. A name the agent gave the range
leads the summary's words in bold, and the default "Earlier discussion"
label is gone: a summary without `--label` shows no name. Max chose this
in a playground of four designs and seven independent choices, over
today's label beside an accent "Show 5 earlier messages", which named the
fold twice and, beside a margin card's actions, wrapped the label and cut
the press to "Show 5 e…".
A summary that opens a margin card now stands under the card's actions,
a finger's height under touch, and takes the card's width. Before, it
stood 24px below them yet kept to the narrow track beside them, as did a
summary further down the card, and the first checkpoint kept the
message gap above it on every surface. With nothing beside the actions,
no face has to give way to fit there, which settles #5672, and
`test_a_root_summary_keeps_thread_actions_outside_its_fold`, one of the
tests #6139 lists, passes again.
The summary reading leaves `label` out where the agent gave none, so the
served state's and the delivery's summaries make it optional, and the
delivery record's shape moves to protocol 50.
Tests: the summary tests now expect the count as the press's name, the
label as the run-in, and the opening summary under the actions with its
press whole, by mouse and touch. Two stills states, `summary-card` and
`summary-card-opened`, capture a card a summary opens; `run_leaf` takes
an environment so a state can run a command in an agent's voice.
…ross a card's heads' line A summary arriving open over the message the reader is on reflowed that message, since a folded message took the region's narrower box. Each keeps its box now, and the region reaches past the words as far as an open progress fold's frame does. A margin card's heads' line held paper only under the actions, which notched the summary's tint while it scrolled beneath them; the paper now spans the line, and a head's cell beside the actions covers the room above it in the message's ground. A forced summary keeps its head line, which an in-page thread's controls stand beside; a name with no words after it takes no stop; folded messages give the control fade their tint; and the delivery's summary drops a `trigger` nothing writes.
# Conflicts: # dev/leaf_dev/arms.py
Main moved the page protocol to 51 while this branch was open, so the delivery record's new shape (a summary's optional label, no trigger) takes 51 as its since, and the fixtures' format strings follow.
leaf-agent
approved these changes
Nov 18, 2026
This was referenced Nov 18, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
In Claude Code, the fork that writes a long thread's summary folded
exactly the range `summary_hint` picks, a cutoff on message count and
length that ends before the last two turns and starts at the opening
message unless an earlier summary left it out. Now the fork gets that
range as a suggestion and answers with its own `from` and `through`, or
`{"fold": false}`, by the agent's guidance for what to fold, which
`threads.md` now states as a goal ("Fold what compresses most") and the
fork quotes. Leaf takes a range that runs forward over spoken messages
and ends before the user's newest messages; admission still applies the
rule from #5531. Root `AGENTS.md`, "Leaf's role", extends "a reasonable
choice is the agent's to make" to choices Leaf's code makes in the
agent's place.
Worth weighing: the `AGENTS.md` sentence is maintainer direction. The
fold-without-prose example in `threads.md` drops `--label 'Previous
progress messages'`, which under #6379's summary named the fold twice,
and says `--label` is optional.
Max asked for this. Codex reviewed it twice; its three findings are
fixed.
Tests: fork model tests and the Claude Code module test pass. Evals,
base → head, 3 trials each: the summary fork kept the question its kept
answer replies to in 3/3 (base folded it in 3/3; both passed the summary
rubric), and in a new case where the newest message asks about the
earlier claims, it folded nothing in 3/3 (base folded them in 3/3). The
agent's own summary cases passed 12/12 on both arms.
> _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
…6424) A picked option now stands on a neutral grey, the card mixed 18% toward the settled colour, instead of the chips' beige ground it took after #6098. On the reading theme that beige has three times the paper's chroma (OKLCH 0.937 / 0.017 against the card's 0.997 / 0.005), so across a whole card it reads as khaki, and as olive under the pointer right after the click. It also sat level with the pointer's grey wash, so a picked card differed from a hovered one only in hue, and a plain chip on the picked card lost its ground. Just picked, pointer still on the card, before → after (light, then dark): <img src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-light-before.png" width="380"> <img src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-light-after.png" width="380"> <img src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-dark-before.png" width="380"> <img src="https://gist.githubusercontent.com/max-sixty/d9a0a9cafabfb36461ed5e4de524ecdc/raw/1cb714e936ce0b393496951be6aa04fa1a9e785b/picked-dark-after.png" width="380"> Worth weighing: the fill stays, rather than a ring alone, because with the keyboard on a group the blue focus ring covers the pick's ring and a digit replaces its check, so the fill is the only thing left saying which card is picked. The grey is a step deeper than the pointer's wash for that reason, which makes the picked card under the pointer the heaviest block on the page. An opened settled group now washes a hovered option in the same grey as a live one, and a picked card standing alone takes the picked ground too, so the pick is never the one card without a fill. The settled tint stays on answers, Done and the thread summary region (#6379). Max asked whether the brownish pick was intended; it came from reusing the chip token. The grey follows his lean away from it and is his to reverse. Tests: the picked-cell ring test now measures the ring against the cell's own ground, and still fails with the ring removed; `leaf-dev stills` shows only option picks and the settled hover changing. The `test` job's browser type check fails on the undefined `placement` and `reads` in `browser/runtime/anchor-placement.js`, inherited from main, which #6420 and #6422 fix. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 27, 2026
A summary's fold stands where the messages it folds were said, so it
sits below every message said before them. Its press said "› 1 earlier
message" wherever it stood. Under a question whose follow-up reply the
agent had folded away, after editing the question to carry the reply's
news, the card read as if the folded reply came before the question,
and Max asked why an earlier message stood below. The press now says
only the count ("› 1 message", "› 5 messages"), which holds at a
thread's head, middle or foot, open or closed.
This drops a word from the label Max picked in #6379; the
transcript.ts header records the change and its reason. The summary
and card tests assert the new name, and how-it-works.html quotes it.
> _This was written by Claude Code on behalf of max-sixty_
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.
A thread's summary of earlier messages now stands in the tint Leaf gives settled things, under one quiet press that says what it folds ("› 5 earlier messages", set as a message's time is). Opened, the tint takes in the folded messages. A name the agent gave the range (
--label) leads the summary's words in bold, and the default "Earlier discussion" label is gone. A summary that opens a margin card stands under the card's actions at the card's width, so on a narrow card nothing has to give way beside them. Closes #5672.Max picked this in a playground of four designs and seven independent choices. Before → after, a summary opening a slim card, the same under a finger, a range the agent named, and opened:
Worth checking: the opened tint is the checkpoint's
::beforepainted under the folded messages (z-index: -1, with the transcript isolated while a summary is open), and each folded message keeps its box, so a summary arriving open over the message being read moves none of its words, and takes the tint as its ground, so a head stuck at a card's top keeps it. A margin card's heads' line now holds paper across the card rather than only under the actions, so a summary scrolling beneath it passes under whole instead of showing the tint notched around the actions. In a thread a widget seats in the page, Resolve stands at the end of an opening summary's press line, inside the tint, as it stands beside an opening message's name. The summary reading now leaveslabelout where the agent gave none, which makes it optional in the served state and the delivery, and moves the delivery record's shape to protocol 51 (the eval fixtures'leaf-delivery/46strings follow). Progress folds are unchanged.test_a_root_summary_keeps_thread_actions_outside_its_fold, which #6139 lists as failing, now asserts the summary stands under the actions and passes, by mouse and touch.Tests: the summary, panel-fold, stuck-head and card tests touching summaries pass;
pnpm run test:runtimeandpnpm run checkpass. Two new stills states,summary-cardandsummary-card-opened, capture a card a summary opens.