Skip to content

Give the panel's field back to the agent's status after a walk's step - #6421

Merged
max-sixty merged 4 commits into
mainfrom
box-status-handback
Nov 18, 2026
Merged

max-sixty merged 4 commits into
mainfrom
box-status-handback

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

After t or m, the panel's empty field said the walk's position ("Thread 4 of 7") for as long as the user stayed at the stop, so the agent's status line and its updates stayed hidden while they read there. A walk's step now holds the field for a notice's moment (4 s from the latest step), then the status comes back; the walk itself still stands where it landed (On Me's ring, the position before an open thread's Reply, where no status shows).

Max asked for that, and for the rule behind it. The rule, in floating-panel.js's header and the guide's "What the panel's line says": something of the user's replaces the agent's status only while it answers or directs what they are doing (an error, selected words, held keys, the Go-to filter, a notice, a walk's step); a choice that lasts (an older version, a comparison, hidden annotations) leads the status instead.

By the same rule, a mode (Draw, Design, the picker) now leads the status instead of replacing it; Max chose this over the mode's name standing alone.

Before After
5 s after the second t, agent working (status line injected into the page's state)
Draw mode (no session, so Away)

News arriving during a step's moment now waits for it (4 s) rather than 900 ms. Reviewed by Codex and a fresh look at the captures. Tests: a fake-clock browser test that fails on main, the touched browser and journey tests, pnpm run test:runtime and check:browser pass, and CI is green.

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

After `t` or `m`, the panel's empty field said the walk's position
("Thread 4 of 7") for as long as the user stayed at the stop it reached,
so the agent's status line, and every update to it, stayed hidden while
the user read there. Max asked for the position to show for a few
seconds and the status to come back, and for the rule behind when the
field says the user's own state ("page status") instead of the agent's.

The rule, now in the floating panel's header: the agent's status is the
field's own words. Something of the user's replaces it only while it
answers or directs what the user is doing: an error until their first
edit, selected words, held keys, the Go-to filter while it waits for a
key, and a notice or a walk's position for a notice's moment. Where the
user stands by a choice that lasts (a mode, an older version, a
comparison, hidden annotations) leads the status instead.

Behavior that changed:
- A walk's step holds the panel's seat for NOTICE_MS (4 s) from the
  latest step (`answerStep`, replacing `holdStatus(900)`), then the
  status returns while the walk itself stays where it landed (On Me's
  ring, the thread view's lead). News arriving meanwhile now waits for
  that moment, as it waits for a notice, rather than 900 ms.
- A thread open in the panel keeps the position before its reply, since
  the field there says no status.
- A mode (Draw, Design, the picker) now leads the status, "In Draw mode
  · <status>", with Close at the field's end, instead of replacing it;
  the `stance` reading of `data-lf-says` is gone. This extends Max's
  request to the general rule and is the call he may reverse.

Tests: a fake-clock browser test that the status returns after the
moment and a step renews it (fails on main); the Draw-mode tests read
the status after the mode's name; the semantic-selection journey no
longer depends on the match position outliving its moment.

> _This was written by Claude Code on behalf of max-sixty_
…e field's rule and the guide

> _This was written by Claude Code on behalf of max-sixty_
# Conflicts:
#	browser/runtime/floating-panel.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 red test job is inherited, not caused by this change: check:browser fails on browser/runtime/anchor-placement.js (savedAt calls the undefined placement() / reads(placement)), which this PR doesn't touch and which reads the same on current main (667b6c7). #6420 fixes it.

@max-sixty
max-sixty merged commit 193d008 into main Nov 18, 2026
4 checks passed
@max-sixty
max-sixty deleted the box-status-handback branch November 18, 2026 23:18
max-sixty added a commit that referenced this pull request Nov 18, 2026
The panel's seat for passing words now says only what the screen
doesn't. #6403 dropped "Options" from the On Me walk's position because
it named the kind of item the user was already looking at; this puts the
same question to every walk position and notice the seat shows.

A walk's position names its list only when the walk carries the user
across the page and the panel doesn't already name it ("Thread 2 of 5",
"Match 3 of 9"). A walk inside a list on screen that may run past the
window says only its place: tabs, the Page Map, the command reference
and visual review's cases read "2 of 14", and the change walk reads "5
changes since v2 · 1 of 5". A walk over a list always wholly in view
declares no walk: a question's options, the reaction bar, response
options, a margin cluster's entries, the visible margin markers, Go-to
hints and chart points. The field keeps the agent's status there, or the
walk the user came by: On Me's "1 of 4 waiting on me" now stands while
they arrow through that item's options. The Go-to filter's count is
announced to screen readers only, as arming Go-to already is.

<img
src="https://gist.githubusercontent.com/max-sixty/ef48dcaccbd775c782c7aa87d0f3002f/raw/aa74d1eea1bba14c502081edc865089e8f7c78a8/panel-before-after.png"
alt="The panel's field before and after five presses" width="900">

Where to look: the rule is stated at `beginWalk` in
`walk-declaration.js`. `rowWalk` takes `position: null` for a list
always wholly in view, which leaves the walk the user came by standing,
where a reader returning null, as the panel's own rows pass, ends it.
The portable API now exports `walkPositionLabel`, so an owner whose
panel position names no list still announces one ("Change 1 of 5 since
v2", a chart's "Point 3 of 8"); `module-input.md` states what a null
noun shows. One gap: with a thread open in the panel, whose field shows
no standing words, the change walk's lead reads a bare "1 of 5".

Kept as notices, though they repeat the field: starting or ending a
comparison, and the annotation toggle. Making them announce-only left an
earlier notice standing over its opposite ("Annotations hidden — o shows
them" after showing them), because a notice isn't tied to the condition
its words state. That is a follow-up once #6421's rework of
`notifications.js` lands.

Max asked for this. A fresh reviewer used the captures, read the diff
and checked the fixes for its findings. The touched browser and journey
tests, the runtime tests and the browser type check pass.

> _This was written by Claude Code on behalf of max-sixty_
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