Skip to content

fix(ui): expose derived session titles accessibly - #96267

Merged
steipete merged 7 commits into
openclaw:mainfrom
snowzlmbot:fix/voiceover-session-history
Jul 16, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
snowzlmbot:fix/voiceover-session-history

Conversation

@snowzlmbot

@snowzlmbot snowzlmbot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Related to #95601.

Unlabeled Control UI sessions can appear as opaque scoped keys. Sidebar rows also lacked a reliable native list/link structure and route-current context for assistive technology. This PR fixes the bounded derived-title and sidebar-accessibility slice; rename/reopen controls remain outside scope, so the broader issue should stay open.

Summary

  • Requests the Gateway's existing derivedTitle enrichment for chat/sidebar session lists.
  • Uses derivedTitle only after explicit labels, display names, and worktree names, before falling back to the raw key.
  • Preserves foreground list filters and enrichments across create, patch, delete, checkpoint, restore, and cloud-worker replacement refreshes while dropping transient pagination.
  • Prevents background hydration and concurrent mutations from replacing the authoritative foreground list shape.
  • Ports the UI work to the current split sidebar modules.
  • Uses named lists, list items, native visible link content, timestamp descriptions, and route-only aria-current="page"; no overriding row/link aria-label.

Compatibility / Migration

No migration. derivedTitle is optional, and existing rows keep the prior fallback order. No persisted session data or sessions.patch payload changes.

Evidence

Prepared head: c21c888318e414a64be2931ff93b18e95aa2fdba
Hosted CI: https://github.com/openclaw/openclaw/actions/runs/29482436206
Visual + accessibility proof packet: https://gist.github.com/steipete/208e06950d0cd796c43df82a6ecce664

The proof uses synthetic session data through the repository's deterministic Control UI Gateway harness. No credentials, private hostnames, user data, or real sessions are present.

Before: raw key

The pre-fix current-sidebar baseline exposes the unnamed row as Unread session-b with visible raw key session-b.

Before: raw session key in current sidebar

Before accessibility snapshot

After: derived title + native semantics

The prepared head renders Quarterly launch plan as visible link content inside list "Chats" / listitem. Unread state remains exposed without replacing the visible native link name.

After: readable derived title in named Chats list

After accessibility snapshot

After sessions.patch: title preserved

Pinning sends sessions.patch, then a replacement sessions.list with includeDerivedTitles: true. The row moves to list "Pinned" without losing readable text or accessible content.

After patch refresh: readable title preserved in Pinned list

After-refresh accessibility snapshot

Verification

  • Focused Control UI unit tests: 126 passed.
  • Targeted Chromium E2E: 1 passed, 50 skipped.
  • Blacksmith Testbox targeted E2E: passed.
  • Black-box behavior validation: 3/3 passed.
  • Exact-tree AutoReview: clean after fixing background-hydration and concurrent-mutation list-option races.
  • git diff --check: passed.

Not Tested

  • No live macOS VoiceOver speech transcript. Browser accessibility snapshots and DOM assertions cover the semantics VoiceOver consumes.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 24, 2026
@snowzlmbot

This comment was marked as outdated.

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@snowzlmbot
snowzlmbot force-pushed the fix/voiceover-session-history branch 3 times, most recently from b885bbb to a79121d Compare June 24, 2026 04:52
@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 10:53 PM ET / July 14, 2026, 02:53 UTC.

Summary
The PR makes Control UI session rows use gateway-derived titles, adds accessible sidebar list and active-state semantics, and preserves durable session-list options across post-patch refreshes.

PR surface: Source +55, Tests +250. Total +305 across 9 files.

Reproducibility: yes. at source level: without requesting and displaying derivedTitle, unlabeled chat rows fall through to scoped session keys, and the prior post-patch refresh dropped the option. The supplied exact-head real Gateway proof validates the corrected path, though current main was not rerun as a failing baseline.

Review metrics: 1 noteworthy metric.

  • Session list contract: 1 optional RPC parameter forwarded; 1 post-patch refresh path changed. Both changes determine whether readable titles and complete session-list state survive session mutations.

Stored data model
Persistent data-model change detected: serialized state: ui/src/lib/session-display.ts, serialized state: ui/src/lib/sessions/index.test.ts, serialized state: ui/src/lib/sessions/index.ts, unknown-data-model-change: ui/src/lib/sessions/index.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Resolve the current-main conflicts and rerun the focused tests and exact-head real Gateway browser proof on the resolved head.

Risk before merge

  • [P1] The branch currently conflicts with main, so conflict resolution could alter the reviewed session-list and sidebar behavior; the resolved head needs fresh focused tests and real Gateway browser proof.
  • [P1] The sessions.patch refresh now depends on the latest durable sessions.list options, so an incorrect conflict resolution could stale, truncate, or mis-associate visible session state even if basic UI checks remain green.

Maintainer options:

  1. Refresh and re-prove the branch (recommended)
    Resolve the current-main conflicts, preserve the reviewed list-refresh invariants, and rerun exact-head focused tests plus real Gateway browser proof before merge.
  2. Pause if main changed the ownership boundary
    If conflict resolution shows current main now owns session-title hydration or mutation refresh elsewhere, pause this PR and extract only the still-unique accessibility change into that canonical path.

Next step before merge

  • [P2] No concrete patch defect remains for an automated repair lane; the contributor or maintainer must resolve the dirty base and refresh exact-head validation before ordinary merge review.

Security
Cleared: The UI TypeScript and test changes introduce no concrete security or supply-chain concern.

Review details

Best possible solution:

Rebase or otherwise resolve the branch onto current main while retaining one canonical derived-title display path and pagination-free replacement refresh, then rerun the focused unit/browser tests and exact-head real Gateway proof before landing this as a partial fix while keeping #95601 open for the remaining rename/reopen scope.

Do we have a high-confidence way to reproduce the issue?

Yes at source level: without requesting and displaying derivedTitle, unlabeled chat rows fall through to scoped session keys, and the prior post-patch refresh dropped the option. The supplied exact-head real Gateway proof validates the corrected path, though current main was not rerun as a failing baseline.

Is this the best way to solve the issue?

Yes for the narrowed scope: the patch reuses the existing gateway-derived-title contract and shared session capability rather than creating another title store or write path. The remaining requirement is to preserve that shape while resolving current-main conflicts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d4ee32185cbf.

Label changes

Label changes:

  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. Exact-head recording, screenshots, sanitized RPC output, and a real Gateway report show the readable title and active accessible state before and after a real sessions.patch refresh retaining includeDerivedTitles.

Label justifications:

  • P2: This is a normal-priority Control UI accessibility and session-history fix with a bounded user-facing impact.
  • merge-risk: 🚨 session-state: The patch changes how session-list filters and pagination state are reconstructed after mutations, so conflict resolution must not stale, truncate, or mis-associate visible sessions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (recording): Exact-head recording, screenshots, sanitized RPC output, and a real Gateway report show the readable title and active accessible state before and after a real sessions.patch refresh retaining includeDerivedTitles.
  • proof: sufficient: Contributor real behavior proof is sufficient. Exact-head recording, screenshots, sanitized RPC output, and a real Gateway report show the readable title and active accessible state before and after a real sessions.patch refresh retaining includeDerivedTitles.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. Exact-head recording, screenshots, sanitized RPC output, and a real Gateway report show the readable title and active accessible state before and after a real sessions.patch refresh retaining includeDerivedTitles.
Evidence reviewed

PR surface:

Source +55, Tests +250. Total +305 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 71 16 +55
Tests 4 254 4 +250
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 325 20 +305

What I checked:

  • Readable session-title path: The patch adds optional derived-title data and uses it after explicit labels/display names but before the raw session-key fallback. (ui/src/lib/session-display.ts:103, 8db3480d78bd)
  • Existing gateway capability reused: Chat session loads request the existing includeDerivedTitles sessions.list option instead of introducing another title-generation or persistence path. (ui/src/pages/chat/chat-session.ts:63, 8db3480d78bd)
  • Post-patch state preservation: The session capability reuses the most recent durable list options after sessions.patch while dropping transient pagination, preserving derived-title hydration without truncating a previously paginated list. (ui/src/lib/sessions/index.ts:759, 8db3480d78bd)
  • Focused refresh regression coverage: Unit coverage checks preservation of includeDerivedTitles and removal of offset/append after a session patch, while also confirming the patch RPC payload remains unchanged. (ui/src/lib/sessions/index.test.ts:121, 8db3480d78bd)
  • Browser-level behavior coverage: The browser test verifies a readable derived title and aria-current state remain after a real UI model-change action causes sessions.patch and the subsequent list refresh. (ui/src/e2e/chat-flow.e2e.test.ts:1877, 8db3480d78bd)
  • Exact-head real behavior proof: The supplied real Gateway browser packet is tied to head 8db3480 and records sessions.patch followed by sessions.list calls retaining includeDerivedTitles, with the readable title and active accessible state still visible. (8db3480d78bd)

Likely related people:

  • steipete: Recent merged work touched both Control UI sidebar session behavior and the shared session capability used by this patch. (role: recent area contributor; confidence: high; commits: 88f1ec38d4a5, f607ba0691b2, 5157446a2c35; files: ui/src/components/app-sidebar.ts, ui/src/lib/sessions/index.ts)
  • vincentkoc: Recent history includes adjacent Control UI sidebar navigation and rendering work relevant to the changed accessibility semantics. (role: recent sidebar contributor; confidence: medium; commits: 9fb9baa8d733; files: ui/src/components/app-sidebar.ts)
  • mjrussell: History associates this contributor with the session capability abstraction whose patch-refresh behavior is changed here. (role: session capability introducer; confidence: medium; commits: 690c413ad46f; files: ui/src/lib/sessions/index.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (8 earlier review cycles)
  • reviewed 2026-06-30T05:49:49.941Z sha dbf50d9 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-07T10:03:00.813Z sha c0296a6 :: needs real behavior proof before merge. :: [P2] Preserve derived titles after session patches
  • reviewed 2026-07-07T12:34:13.673Z sha 1c622966712e8faeec73ab4f3e54fd03d6910c88 :: needs real behavior proof before merge. :: [P2] Drop pagination before patch refreshes
  • reviewed 2026-07-07T13:04:17.916Z sha 8db3480 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-07T13:38:13.609Z sha 8db3480 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-07T13:56:30.311Z sha 8db3480 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-07T14:14:58.952Z sha 8db3480 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-07T14:31:16.459Z sha 8db3480 :: needs maintainer review before merge. :: none

@snowzlmbot

This comment was marked as outdated.

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 24, 2026
@snowzlmbot
snowzlmbot force-pushed the fix/voiceover-session-history branch from a79121d to a7faf9d Compare June 24, 2026 05:27
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jun 24, 2026
@snowzlmbot

This comment was marked as outdated.

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 24, 2026
@snowzlmbot snowzlmbot changed the title fix(ui): improve accessible session history picker fix(ui): make session history accessible in picker and sidebar Jun 24, 2026
@snowzlmbot

This comment was marked as outdated.

@snowzlmbot
snowzlmbot force-pushed the fix/voiceover-session-history branch 4 times, most recently from dbb3027 to 1c62296 Compare July 7, 2026 12:22
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 7, 2026
@snowzlmbot
snowzlmbot force-pushed the fix/voiceover-session-history branch 2 times, most recently from 11e69b7 to d6173ef Compare July 7, 2026 12:44
Reuse the most recent sessions.list options when refreshing after sessions.patch so derived-title hydration survives normal patch flows. Add unit and browser E2E coverage for patch refreshes retaining readable sidebar titles.
@snowzlmbot
snowzlmbot force-pushed the fix/voiceover-session-history branch from d6173ef to 8db3480 Compare July 7, 2026 12:52
@clawsweeper

clawsweeper Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@snowzlmbot

Copy link
Copy Markdown
Contributor Author

Current-head proof has been added to the PR body.

The body now includes screenshot embeds, browser video, raw proof.json, and the compatibility note clarifying Related to #95601 for this narrowed slice.

@clawsweeper review-pr

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 7, 2026
@snowzlmbot

snowzlmbot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Added current-head real Gateway browser/media proof to the PR body.

This proof uses the current-head Control UI artifact from CI with a real foreground OpenClaw Gateway and synthetic session data. It records a real sessions.patch through the page runtime and a post-patch sessions.list refresh with includeDerivedTitles: true.

@clawsweeper review-pr

steipete and others added 2 commits July 16, 2026 01:07
Request and preserve gateway-derived titles across session refreshes. Expose sidebar rows through native list, link, current-route, and timestamp-description semantics.

Co-authored-by: snowzlmbot <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

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 merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants