Skip to content

Say "Nothing waiting on me" when m finds nothing on the user - #5594

Merged
max-sixty merged 2 commits into
mainfrom
on-me-all-done
Nov 6, 2026
Merged

max-sixty merged 2 commits into
mainfrom
on-me-all-done

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Once every On me item was answered, m and Shift+m did nothing, so a finished list looked the same as a key that missed. The press now says "Nothing waiting on me" in the floating panel, where passing words already go (notifications.js, notice): it holds for four seconds, the status comes back, and the live region announces it. The wording is the On me view's own empty text. Words only for now, rather than a colour flash.

The walk's when gated m on a non-empty list. That gate was there for the old bottom key line, and today it reaches only the command reference and aria-keyshortcuts. Dropping it makes m live on every page, as On me is, and takes away the watcher that repainted the keys whenever the list emptied or filled, along with its Node test (tests/runtime/queue-walk.test.mjs), which covered only that repaint. One visible result: the command reference lists Next on me as available on every page.

test_a_completed_obligation_stays_reachable_through_on_me (1200 and 390 px wide) now answers the page's one decision, presses m, and expects the words in the panel; without the notice it fails with "the panel says 'Away'". docs/ui.html gets one sentence describing the empty press.

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

Once every On me item was answered, `m` and Shift+`m` were unavailable and
the press did nothing, so the user couldn't tell a finished list from a key
that missed. The press now shows "Nothing waiting on me" in the panel's
seat for passing words, the On me view's own empty wording, and the live
region hears it. The user asked for words only for now, rather than a
flash of the panel's colour.

The walk's `when` gated it on a non-empty list, a reading the bottom key
line once showed and that now reaches only the command reference and
aria-keyshortcuts. Dropping it makes the walk live on every page, as On me
is, and takes away the watcher that repainted the keys as the list emptied
or filled, with its Node test (tests/runtime/queue-walk.test.mjs), which
protected only that repaint.
@max-sixty
max-sixty merged commit 76c0338 into main Nov 6, 2026
5 checks passed
@max-sixty
max-sixty deleted the on-me-all-done branch November 6, 2026 04:28
max-sixty added a commit that referenced this pull request Nov 6, 2026
…mpties (#5597)

Follows #5594, which made `m` over an empty On me list say "Nothing
waiting on me" in the panel. This extends the same behavior to the other
page walks, and has the panel say it unasked when On me empties.

**Page walks over an empty list say so.** `t` says "No open threads",
`h` "No changes marked" and `n` "No search to repeat", where each used
to do nothing. The rule is stated once in
`browser/runtime/keyboard/AGENTS.md`, "Page grammar". Their `when` gates
go, along with change-walk's watcher that repainted the keys as a
comparison's marks came and went, so the command reference lists these
walks on every page.

**Emptiness is claimed only once the list is known.** While the server
is offline, `t` and `m` say their list can't be had, as the Threads view
already did. The On me and On <agent> views now say that too, or that
they're loading, where before the first reading they said "Nothing
waiting on …" (`queues.js`, `emptyOnList`). `h` isn't taken while a
comparison that `v` started is still loading, rather than saying nothing
is marked.

**A reading that empties On me is news.** `semantic-news.js` counts On
me the way the badge does. When a reading after the first takes it from
some to none, the panel says "Nothing waiting on me" with no press. That
happens whatever emptied the list: the user's last answer, another tab,
or a revision that removed the last obligation. Like other news, it
waits behind the user's own command's words, and it's dropped if the
list fills again before it shows.

Known gaps:
- Holding an empty walk key repeats its notice on every auto-repeat.
- A news notice already on screen isn't rechecked, so "Nothing waiting
on me" can stand for up to 4 s after a new obligation arrives, before
"New on me" follows.

Tests: a new key-scopes test presses each walk on a page with nothing to
walk, and another presses `t` and `m` with the state read refused. The
On me panel test now expects the words after the answer with no press,
and `test_a_key_on_screen_is_a_key_that_works` now expects the thread
walk to run and say so with no threads, where it asserted the old gate.
A runtime test covers the news, including that it's dropped when the
list refills.

> _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