Repository navigation
Separate page activity from delivery progress and retain typed host work - #915
Conversation
# Conflicts: # notes/thread-navigation/playground.html
leaf-agent
left a comment
There was a problem hiding this comment.
The banner and the Leaves tray now read the same counts differently, so one page can describe itself two ways at once.
renderStatusNow passes activity.counts.total as statusWords's pending, while rowPresence in live-leaves.js gates the same choice on counts.pending || counts.queued. total is every outstanding interaction, including one picked up in a turn that has since closed. Hold a waiter lease, leave an unanswered pickup behind an ended turn, and declare waiting: the projection returns kind: "listening" with counts {picked_up: 1, queued: 0, pending: 0, total: 1}. The banner takes the listening branch and prints a bare Claude listening — progressSummary is empty, because it only covers queued and pending — while the tray row for the same page prints Awaits — pick a storage engine.
Two things go with it. The declared request that branch's own comment says to keep ("Preserve it on the row when no pending input supersedes it") leaves the summary row although nothing pending superseded it, and the outstanding pickup is then named nowhere in the banner — before this PR that state was the picked_up kind, which said so. Gating on the same two counts the tray uses restores both, and keeps session-lifetime.md's "The banner and Leaves tray consume this same reading" true of the case where the two readings can diverge.
Projection probe
present = {
"status": {"state": "waiting", "detail": "pick a storage engine", "ts": now, "after": 0},
"listening": True, "session_alive": True,
"claim_session": "s", "claim_turn": "t2",
"turn_closed": "<one minute before now>",
}
evidence = [{
"id": "c1", "seq": 1, "phase": "picked_up", "ts": "<two minutes before now>",
"coordinate": ["thread", "c1"], "event": "c1", "requires_response": True,
"delivery_seq": 1, "delivery_session": "s", "delivery_turn": "t1",
}]
canonical_activity(present, evidence, now)
# kind: listening detail: pick a storage engine
# counts: {'active': 0, 'handling': 0, 'queued': 0, 'picked_up': 1, 'pending': 0, 'total': 1}No test pins this combination: test_banner_reports_whether_anyone_is_attending's listening cases all carry counts.pending == 1, where total and pending agree.
The Thread navigation playground stopped building: #915 and #933 added four before/after lf-shots whose eight PNGs were never committed, and no copy survives. Nothing built a note's page before a reader previewed it, so both landed green. test_page_fixtures_pass_check now takes every notes/**/*.html beside the examples, and reads each fixture's own layer and media directory instead of assuming examples/. The playground drops the two uncaptured comparisons of those landed changes; its other shots and seeded discussion are intact. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…er, trays and thread list (#1214) Five light-DOM Lit owners copied the same present/commit/roll-back body and the same failure capture in `scheduleUpdate`: the Ask banner faces, the Asks tray list, the Leaves banner face and list, and the Threads panel list. Two of them also copied "the focused row left the list, so focus its nearest surviving neighbour". The banner and the Leaves tray each derived the same activity facts (which timestamp dates a silence, the queued and waiting count phrases, and whether input is still on its way), and #915 had to edit both. ### Retained faces `runtime/retained-face.js` holds `RetainedFace`, a light-DOM `LitElement` whose `paint(model, {now})` assigns a reading and rejects with that update's own captured failure, plus `commit()`, `retainCommitted()` and the `committed` reading. `RowFocus` is the neighbour rule: `hold(next, prior)` before an update, `restore(fallback)` after it, and `land(key)` for an owed landing. Every listed class now extends the base. The thread list keeps its generation and focus guards and still paints in the sending turn (`now: true`); its `committedReading` became the base's `committed`. One behaviour moved: the Asks progress face's committed reading starts as its initial empty model, so a failure before its first commit rolls back to what the face showed rather than leaving the failed reading up. ### Activity facts `activityFacts(state)` in `banner.js` returns `tone`, `work`, `left`, `silentSince`, `listening` and the `waiting` phrases, and `countUpdates(n)` is the shared noun. The banner's `statusWords` and the Leaves tray's `rowPresence` read it and keep their own wording; `toneFor` and `workWords` are gone. No wording changed. The group's third item, the focusable-row walks, lands in its own PR. Checks: focused browser runs over the Leaves, Asks, banner status, tray and Threads panel tests (about 150), and the changed-file pre-commit hooks, dependency-cruiser included. > _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]>
Leaf currently mixes delivery phases into overall page activity: a queued input can replace the banner’s account of ongoing work, and observed host activity is reduced to prose. This separates the page’s availability and execution reading from exact message receipts and preserves typed thinking, tool use, replying, approval waits, and input waits.
The banner and Leaves tray consume the same page reading and show queued work separately. Delivery bindings, interaction receipts, outstanding obligations, and response settlement retain their own identities. Host observations remain scoped to their provider session and turn; completing a tool, ending a turn, or reconnecting must not leave an obsolete live subtype.
This implements the page-state and host-observation slices of the status proposal. Consolidating message workflow and derived thread attention remains planned after the separate Thread collection cutover; the notes and shared playground distinguish those scopes.
Validation: 33 runtime tests; 92 startup browser tests; focused projection, host lifecycle, hosted-start, and accessible-wait cases pass. Matched baseline/candidate screenshots cover six states in light and dark, and the shared page passes rendered validation at desktop and narrow widths. Independent review found no blocking issues. The expanded controls run exposes two unchanged baseline failures (shadow color and corpus ring coverage), both reproduced at merge-base 5ba26c7. The stable everyday suite passes all 1,224 tests.