Skip to content

Stop serving awaits_user; attention is the one turn reading - #1223

Merged
max-sixty merged 1 commit into
mainfrom
drop-awaits-user
Sep 26, 2026
Merged

max-sixty merged 1 commit into
mainfrom
drop-awaits-user

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#1215 made attention the browser's one reading of whose turn a thread is, but left awaits_user on each served thread because tests/test_interact_session.py asserted it and another change held that file. No browser code read the field.

The server no longer serves awaits_user. _apply_thread_attention now takes the user's turn from the thread's open Asks or its user_prompt. user_prompt is set exactly when the old flag was true outside an open Ask, and an open Ask is already the first clause, so attention is unchanged. The session tests assert user_prompt and attention instead of the dropped field, and the attention fixture carries user_prompt.

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

🤖 Generated with Claude Code

#1215 left `awaits_user` on each served thread because `tests/test_interact_session.py` asserted it and was held by another change. No browser code read it. The server now serves `attention` as the only turn reading: `_apply_thread_attention` takes the user's turn from the thread's open Asks or its `user_prompt`, which is set exactly when the old flag was true outside an open Ask. The session tests assert `user_prompt` and `attention` in its place.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 8e55b3a into main Sep 26, 2026
5 checks passed
@max-sixty
max-sixty deleted the drop-awaits-user branch September 26, 2026 17:05
max-sixty added a commit that referenced this pull request Sep 26, 2026
Four sites from the concept survey restated something another module
owns.

- The Page Map walk is a `rowWalk` now (`margin-projection.js`).
`rowWalk` gains
`scroll`: `false` focuses without scrolling, for a list read off what is
in
view, where scrolling to the landed row would change the list. The Page
Map
keeps its `when` (the walk answers from a marker, not the entries beside
it)
  and passes `holdTabStop` as `landed`. Its rows are `margin.walk` and
  `margin.edge`, with routes `margin.previous`/`next`/`first`/`last`.
- `interaction-log.js` reads the page root from `storage.js` `PAGE_ROOT`
instead of querying the canonical link and the offline marker itself; an
  interactive export has no declared root, so the one test covers both.
- The Command Hub's stopped age is `shortAgo` from `presence.js`, now
exported
through `widget-api.js` and documented beside `ago` in `packages.md`.
The hub
floored where presence rounds, so ninety minutes read "1h" beside "2h
ago".
- Two comments in `test_render_threads.py` named `awaits_user`, which
#1223
  stopped serving; they now name the thread's `attention`.

Behaviour moved:
- The Command Hub's stopped age rounds to the nearest unit and says
"now" under
45 seconds, where it floored and said "0m". The stopped-age browser test
now
dates the fresh stop ninety minutes back and expects "2h", which
reproduced
  "1h" before the change; `tests/runtime/elapsed-time.test.mjs` pins the
  compact and sentence readings to one figure.
- The Page Map's Home/End row leaves the shortcut bar ("first marker",
  "last marker"), as every other row walk's edge row does; the command
  reference and `aria-keyshortcuts` still name it.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 27, 2026
The concept survey's drifted duplicates now each have one owner
(#1214–#1221, #1223, #1228, #1231, #1235, #1244, #1245, #1247, #1250,
#1251, #1254, #1260), so the survey note never lands. What it found and
nobody has taken becomes `TODO.md` entries:

- **Shared definitions** (new section under Next): re-addressing
resource references in one pass instead of `http.py`'s regex scopers and
three head composers; `tests/render_harness.py` `told()` beside
`pageReadiness`'s `data` and `log` stages (#1250), which answer the same
question; Python still naming a thread's identity a root
(`thread_roots`, `FrozenThreadReading.roots`) now that the runtime keys
threads on the served `id` (#1260).
- **Requests**: the existing "Decide whether requests earn their weight"
entry now says kept requests need one owner for seat availability, which
four runtime modules restate.
- **Implementation candidates**: the unresolved-gesture ledger as one
state machine, deferred until a change has to touch it, since nothing
there has drifted and it is the hottest race path.

The survey's small undrifted items and its list of deliberate splits are
dropped: none has drifted, and the splits are intended.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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