Skip to content

feat(ui): session observer HUD, sidebar subtitles, and settings - #112260

Merged
steipete merged 5 commits into
mainfrom
steipete/session-observer-ui
Jul 22, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/session-observer-ui

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The session observer's server foundation landed in #112216, but nothing surfaces its digests yet. This PR ships the user-facing half for the web Control UI: a floating status HUD in the chat pane, digest-driven sidebar subtitles, and the settings surface for the observer and its small model.

Why This Change Was Made

  • HUD (pill → card): a compact status pill mounts top-right in the chat pane (chrome cloned from the /btw side-chat), expanding to a card with the digest headline, health, assessment, plan progress, PR/CI chips, and elapsed time. It renders only when a digest for the active run exists (or an unread final digest on an idle session), auto-expands once per run when health turns stuck/waiting-on-user, yields to the side-chat, and derives run identity from the authoritative session row so attaching to an already-running session works.
  • Sidebar subtitles: precedence is attention > agent statusNote > observer digest > heuristic narration > work subtitle. The digest owns the line once the first one arrives (narration fills before that); an unread final digest ("Done: …") is the idle subtitle until read. Live digests ride the existing narration subscriptions (no new connections); idle rows use the projected row digest; all merge points pick the freshest copy by session-monotonic revision.
  • Settings (/settings/appearance, next to the live-activity toggle): observer on/off (gateway.controlUi.sessionObserver), a resolved-model readout with provenance via a new optional system.info field (auto/configured/disabled/unavailable), and a small-model picker writing the existing agents.defaults.utilityModel key (Auto and Disabled stay usable even when the model catalog fails to load).

Run identity is enforced end to end: run-less or foreign-run live digests are discarded at every consumer, and stale-run projections are suppressed while a new run is active.

User Impact

Sidebar digest subtitles HUD pill
sidebar pill
Expanded card Settings
card settings

Screenshots from the mock dev harness (this PR adds the observer demo fixtures). No behavior change when the observer is disabled or no utility model resolves — the HUD simply never appears and subtitles fall back to today's chain.

Evidence

  • Focused suites green across both lanes: HUD state machine, subtitle precedence/handoff/freshness, narration-controller digest capture, chat-state run gating, settings merge-patch payloads, system-info field, mock-gateway event cycling (~180 UI+gateway tests over the review rounds).
  • Six structured autoreview rounds (gpt-5.6-sol, high): 11 accepted findings fixed (run-identity lattice across HUD/sidebar/chat-state, catalog-failure handling, auto-expand latch, freshest-wins digest reconciliation); 1 rejected with rationale (a "utility-compatible model" taxonomy does not exist as a product contract — the picker mirrors the shipped utilityModel config semantics).
  • Startup budgets unchanged (HUD is a lazy chunk, 2.24 KiB gzip); scripts/check-control-ui-performance.mjs green; pnpm ui:i18n baseline updated for new base-locale strings (foreign locales via the post-merge workflow).

@steipete
steipete marked this pull request as ready for review July 21, 2026 11:10
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Jul 21, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Jul 21, 2026
@steipete
steipete force-pushed the steipete/session-observer-ui branch from 0b6f8cc to 2db6c36 Compare July 21, 2026 14:12
@steipete
steipete force-pushed the steipete/session-observer-ui branch from 2c7a547 to 17de8e3 Compare July 21, 2026 23:17
@clawsweeper

clawsweeper Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(ui): session observer HUD, sidebar subtitles, and settings This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete force-pushed the steipete/session-observer-ui branch from 17de8e3 to 3f06caf Compare July 21, 2026 23:53
@clawsweeper

clawsweeper Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(ui): session observer HUD, sidebar subtitles, and settings This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 1f0a3ec into main Jul 22, 2026
117 of 118 checks passed
@steipete
steipete deleted the steipete/session-observer-ui branch July 22, 2026 00:05
@steipete

Copy link
Copy Markdown
Contributor Author

Landed at head 3f06caf on ci-gate green (round 6 after two inherited red-main storms; every post-round-2 failure traced to unrelated main breakage or flake lanes, receipts in the run logs). Six structured review rounds, eleven accepted findings fixed (run-identity lattice across HUD/sidebar/chat-state, catalog-failure handling, auto-expand latch, freshest-wins reconciliation); one rejected finding documented in the PR body. ClawSweeper's worker expired its lease without posting a review — noted rather than skipped. Screenshots in the PR body come from the mock harness observer fixtures added here.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 22, 2026
…claw#112260)

* feat(ui): session observer HUD, subtitle integration, and settings

* test(ui): observer demo fixtures for the mock control-ui harness

* fix(ui): satisfy lint and deadcode gates for observer surfaces

* test(ui): adopt renamed pull-request summary api after rebase

* fix(ui): clean rebase artifacts in observer test files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant