Skip to content

Have On me's cards name their kind, lead to their asks and follow the m walk - #3291

Merged
max-sixty merged 9 commits into
mainfrom
fp-on-me-cards
Oct 20, 2026
Merged

max-sixty merged 9 commits into
mainfrom
fp-on-me-cards

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

On me's cards say what each item is and lead to it, picked as gain-on on the floating-panel review page. Five commits:

  • Kind. Each card names its kind (Options, Rewrite, Insertion, Deletion, To-do) from queueStop(item) in queue-walk.js, the reading the m walk already says in the field, so there's one classifier.
  • Show. Every card that leads somewhere has Show, which runs the walk's own arrival (queueActions.open → arriveAtItem); the panel's second route through obligationActions.open is gone. The approval and threads with no place on the page get no Show.
  • Walk outline. With On me open, m scrolls the list to the walk's card and rings it as a focused card is ringed; the list scrolls only when the walk reaches a different card.
  • Agent's step. The agent's card says its latest start or progress line (workflowStep, the text the page status shows) in place of "Working", falling back to the stage word before a step or once work stalls.
  • One order. On me, On and Done list cards in the order m visits them (inWalkOrder, which the walk now builds its stops from), as Threads uses the t walk's order, live additions included: a card that joins while On me is open takes its walk place, and the browser's scroll anchoring keeps the card being read where it was. A card whose item leaves the page moves to the end, as the walk takes it last.

Tests in tests/browser/widgets/test_on_panel.py (kind, Show, walk outline, list order), each failing without its change; two existing assertions updated as their commits say. Checked in Firefox on feature-gallery.

The approval card's dead prompt.target: "lf-approve" (#117) is left for the next protocol bump, since fixing it changes the served state.

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

max-sixty and others added 6 commits October 20, 2026 01:12
An On me card now says what its item is over its question, in the word
the field says after `m`: a suggestion says Insertion, Deletion or
Rewrite by its shape, a widget's question its widget's word (Options,
Question), and an approval, a to-do or a thread their own. Before, the
field could say "4 of 16 waiting on me · Insertion" while no card said
Insertion.

The word comes from the walk itself: queue-walk.js exports `queueStop`,
the stop an item is arrived at with its key and noun, which the walk's
stops and the card both read, so there is one classifier. The plan's
place, which already stood over a card it names, now follows the kind on
the same line (`.lf-fp-on-kind`, formerly `.lf-fp-plan-place`), and
stays once the card is answered, so an answer moves nothing.

Behavior a test changed for: in
test_the_plan_has_its_own_tab_and_an_item_says_its_place_in_it, the
planned card's line reads "Options · Ship the migration · step 2 of 3"
and the unplanned card's says "Options" where it had no line.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…rival

Every On me card whose item has somewhere to go now offers Show, and
Show puts the user where `m` puts them. Before, a card offered Show only
for a to-do or an item with nothing else to press, so a question with
choices, a suggestion and an answered obligation had no way to their ask
on the page.

Show is the walk's own arrival (`queueActions.open`, which runs
queue-walk.js's `arriveAtItem`) for every item. A widget obligation's
card used `obligationActions.open` instead, a second route whose
in-words branch opened the thread in the panel where `m` goes to its
passage; the panel no longer takes that route. queue-walk.js decides
where Show is offered (`arrivesAt`): where the item has a place on the
page, or is a widget in a thread the page draws no passage for, which
the panel opens with the user on the widget. A thread with no place
would open as the card's Discuss does, and the version's approval is
answered on its own card, so those cards offer none.

Show stands at the end of the answers' line, so an answer replacing the
choices before it, or the agent's line changing, moves it nowhere.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
While On me is open, `m` and Shift+`m` now scroll the list to the card
of the item they reach and give that card the ring a focused card
wears, while focus stands at the item on the page. Before, the list
stood where it was and no card said which one the field's "4 of 16
waiting on me" was about.

A walk's position now names the stop it stands on (`target` in
walk-position.js's reading, carried by keyboard/status-context.js), and
the panel compares it with each card's `queueStop` key, so the ring
lasts exactly as long as the field says the position. The list scrolls
only when the walk reaches another card (`landWalked`), so it never
pulls against the reader's own scrolling.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A card on the agent's list now says the line of the agent's last step on
its item, the text of the start or progress reply that holds it, where
it said "Working". It is the same line the page's status says of the
newest item the agent holds (`activity.detail`), read per item from the
workflow the server serves (`detail`). Before the agent says one, and
once its work stalls, the card still says the workflow's word, such as
Picked up or Turn ended; a to-do still says its running start's line.

thread/workflow.js owns the reading as `workflowStep`, beside
`workflowLabel`.

Behavior a test changed for: in
test_pending_progress_is_the_threads_working_message_and_never_unread,
the agent's card says "Trying a lighter weight.", its newest progress
step, instead of "Working".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
On me, On <agent> and each list's Done now list their cards in the `m`
walk's order: by where each item is arrived at on the page, with items
that have no place there after, in the server's order. Before, the lists
kept the server's order, which puts what the page asks before to-dos and
updates, so successive presses of `m` outlined cards that jumped about
the list.

queue-walk.js owns the order as `inWalkOrder`, which its own stops now
derive from, and the panel sorts each list with it, as Threads sorts by
the `t` walk's `inPageOrder`. A card the open view already seats keeps
its seat, so a reading arriving moves no card under the pointer.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/kernel/kernel.json
#	skills/leaf/kernel/leaf.js

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new page order applies when On me first seats its cards, but is lost when an ask arrives while the view stays open. queueLists() sorts the fresh reading with inWalkOrder, then onView() keeps every key already in seated ahead of every new key. If a new to-do is added near the top of the page while a later ask is already shown, m reaches the to-do first but its card appears after that ask. The claimed agreement between card order and walk order breaks during a normal live update. This needs a rule for live additions that preserves the card under the reader while keeping the walk and list in the same order.

max-sixty and others added 2 commits October 20, 2026 01:44
A card that joins On me while the view is open now takes its place in
the `m` walk's order, so a to-do arriving at the page's head is the first
card, as `m` reaches it first. Before, the open view kept every card it
had already shown ahead of any that joined, so the list and the walk
disagreed until the view was reopened.

The view sorts the cards it holds with `inWalkOrder` on every paint.
`seated` now decides only which cards the open view holds: those it
showed, an answered one included, and any that joined since. A card
joining above the one being read moves nothing on screen, because the
view's scroll anchoring holds the card in view where it was; a list too
short to scroll simply shows the new card. Checked in Chromium and
Firefox.

Behavior a test changed for:
test_obligation_cards_keep_identity_and_publisher_order_when_the_live_dom_moves
is now ..._walk_order_..., and asserts that a card whose element leaves
the page moves after the cards still on it, as the walk takes it last,
keeping its node and focus. It asserted the order stayed as first
published.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 20, 2026
With a view open in the floating panel, an arrival now lands above the
whole box rather than above its row alone. Before, the root's
scroll-padding-bottom reserved only the row's room, so `m` with On me
open could land what it reached under the view: on the feature gallery
at 1440x900, the suggestion "A pencil is useful too." stood at 145-194
under a view whose top was at 132.

The panel now states how far its box reaches up from the window's foot
as `--lf-panel-reach` on the root, written in `followBox` only when the
box changes, and the root's scroll-padding-bottom takes the larger of
that and the row's room. Every landing (landing-scroll.js reads the
padding through `landingBand`) and the browser's own reveals read the
same padding, so `m`, `t`, Go-to, an On me row's Show and a caret reveal
all clear the view. The property is registered non-inheriting, so a
change restyles only the root.

The view still takes no room from the page's layout; only where landings
stand changes. With the panel at rest the padding is unchanged (84px).




Found while building On me's cards (#3291) on the floating-panel review
page.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit 02b2b0d into main Oct 20, 2026
2 checks passed
@max-sixty
max-sixty deleted the fp-on-me-cards branch October 20, 2026 09:02
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