Skip to content

fix(ui): restore keyboard and screen-reader session controls - #117019

Merged
steipete merged 1 commit into
mainfrom
codex/qa300-ui-keyboard-accessibility-sidebar
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa300-ui-keyboard-accessibility-sidebar

Conversation

@steipete

@steipete steipete commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes three independent accessibility failures in the default Sessions/Threads workflow:

  1. The Key, Kind, Updated, and Tokens sort headers were pointer-only, and their active ascending/descending state was not exposed to assistive technology.
  2. Session-operation/list failures and expanded-session checkpoint failures were rendered without a screen-reader alert.
  3. Every checkbox that can lead to destructive bulk deletion exposed the same generic accessible name, making the selected target indistinguishable.

Root Cause and Fix Ownership

The canonical Sessions view owns the missing table and alert semantics; the Sessions page continues to own sorting state, Gateway calls, and destructive actions.

  • Nest a native keyboard-operable button within each existing sortable table header.
  • Keep the original click handler on the complete padded header, allowing native button events to bubble exactly once without shrinking the pointer/touch target.
  • Expose aria-sort="ascending" or aria-sort="descending" only on the actively sorted header.
  • Mark both existing failure-owning surfaces with role="alert".
  • Include the canonical unique session key in each destructive-selection checkbox's accessible name.

No authorization, session mutation, sorting policy, pagination, persistence, configuration, Gateway protocol, or public SDK contract changes.

Exact-Head Baseline and Regression Proof

  • Frozen baseline: 36b80ada3ceae2de21b3d8710b883d778e4c4578.
  • Exact reviewed PR head: ed6f814c6d428f1f901a748f336fd4334553e6f8.
  • Frozen baseline Sessions owner: 6 intended regression failures, with 44 existing cases still green.
  • Frozen baseline actual Chromium + mocked Gateway: 2 intended failures, proving missing keyboard sorting and an unannounced rejected Gateway operation.

Targeted Sessions Owner Proof

node scripts/run-vitest.mjs \
  ui/src/pages/sessions/view.test.ts \
  ui/src/pages/sessions/sessions-page.test.ts \
  --reporter=dot

Test Files  2 passed
Tests       75 passed

The owner suite independently covers native activation for all four sort columns, active-only sort direction, preserving the entire header click target without double activation, Sessions-page and checkpoint alert ownership, and unique canonical checkbox labels.

Actual Chromium + Mocked-Gateway User Proof

PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=<installed-Chromium-or-Google-Chrome> \
node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.ui-e2e.config.ts \
  --configLoader runner \
  ui/src/e2e/session-management.groups.e2e.test.ts \
  --testNamePattern 'sorts threads from the keyboard|shows a rejected Sessions-page custom group' \
  --reporter=dot

Test Files  1 passed
Tests       2 passed | 8 intentionally filtered out

The first browser scenario verifies real Space and Enter input, ascending/descending aria-sort, one transition per interaction, a click on the original far-right padded table-header area, and distinct accessible names for both destructive-selection checkboxes. The second scenario sends a real mocked-Gateway rejection and verifies that the existing failure is exposed as an accessible alert.

The complete Chromium sibling file also previously passed 10/10 on the same frozen-base candidate before the final reviewer-requested pointer-target refinement. The final refined candidate separately passed the exact 2/2 affected Chromium scenarios and 75/75 owner tests.

Additional Exact-Head Review

  • Focused formatting, changed CSS stylelint, changed TypeScript boundary lint, and git diff --check: passed.
  • Genuine gpt-5.6-sol high-reasoning structured Codex review with --max-priority P3 and official TruffleHog: clean, zero P0/P1/P2/P3 findings, confidence 0.94.
  • Independent complete-owner, caller, sibling, CSS, and real-browser review on exact SHA: clean through P3.
  • Production change: +16/-5 lines across the two existing presentation owners; tests add 192 lines and remove 1 line.
  • The final exact proof used the approved trusted local focused fallback after a previous owned remote check orphaned its lease lock. That Testbox was stopped and independently verified completed before the final commit.

ClawSweeper Rank-Up / Merge Checklist

  • Read the completed exact-head ClawSweeper review: no findings, proof sufficient, owner boundary confirmed.
  • Address its concern about preserving the full sortable-header pointer target with both unit proof and an authentic far-right Chromium click.
  • Confirm the reported "persistent data model" signals refer to browser/test serialized fixtures and rendered UI semantics only: this PR changes no SQLite schema, migration, persisted configuration, or durable session state.
  • If landing onto a different merge result, rerun the targeted Sessions owner suites and actual Chromium mocked-Gateway scenarios above against that exact final merge result before merging. The existing results prove the exact PR head, not a future merge commit.
  • Read the newest ClawSweeper comment again after its currently running fresh review finishes, and apply or explicitly waive any new rank-up move.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 31, 2026
@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. P2 Normal backlog priority with limited blast radius. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 5:59 PM ET / 21:59 UTC.

ClawSweeper review

What this changes

Restores keyboard sorting, accessible sort state and failure alerts, and distinct destructive-selection checkbox names in the Control UI Sessions workflow.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this PR open for maintainer handling. Current main still has the reported accessibility defects, and the branch repairs them in the owning Sessions renderer with focused regression coverage; no patch defect was found. The maintainer label and the supplied failed UI-E2E/CI-gate state mean it should land only after the exact merge result is revalidated or the failing shard is explained.

Priority: P2
Reviewed head: ed6f814c6d428f1f901a748f336fd4334553e6f8
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The repair is focused, source-aligned, and backed by reported browser and owner-suite proof; only the final maintainer merge-gate decision remains.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body provides exact-head terminal output for focused owner tests and Chromium mocked-Gateway scenarios that directly exercise keyboard sorting and announced failures; a final merge-result rerun is still appropriate because the branch is behind main.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides exact-head terminal output for focused owner tests and Chromium mocked-Gateway scenarios that directly exercise keyboard sorting and announced failures; a final merge-result rerun is still appropriate because the branch is behind main.
Evidence reviewed 7 items Current-main defect: The sortable headers are clickable table cells containing only text and an icon, so the default Sessions table has no native keyboard sort control or active sort announcement.
Current-main failure and selection semantics: The page-level error and checkpoint error lack alert semantics, while every destructive-selection checkbox has the same generic accessible name.
Owner-boundary repair: The PR adds active-only aria-sort to the existing header, nests a native button while retaining the complete header click target, and adds alerts and key-specific checkbox labels in the same rendering owner.
Findings None None.
Security None None.

How this fits together

The Control UI Sessions page renders Gateway session data as a sortable table, expandable session details, and destructive bulk-selection controls. Page-owned state receives sort and Gateway-operation events, while the view renders the accessible controls and failure feedback operators use next.

flowchart LR
  A[Gateway session data] --> B[Sessions page state]
  B --> C[Sessions table and details]
  C --> D[Keyboard controls and alerts]
  D --> E[Sort and bulk session actions]
Loading

Decision needed

Question Recommendation
Should this protected-label Sessions accessibility repair be merged after the failed UI-E2E shard is resolved or a clean exact-merge rerun proves it unrelated? Revalidate then land: Run the targeted Sessions owner tests and Chromium mocked-Gateway scenarios on the exact merge result, then merge if the failing shard is clean or demonstrably unrelated.

Why: The source repair and reported exact-head proof are strong, but the protected label and unresolved merge-gate signal require an explicit maintainer decision rather than automated closure or dispatch.

Before merge

  • Resolve merge risk (P1) - The supplied check state includes a failed checks-ui-e2e (1/4) shard and failed CI gate; its cause must be resolved or shown unrelated before merge.
  • Resolve merge risk (P1) - The branch is behind main, so the focused Sessions browser proof should be rerun against the exact merge result rather than inferred from the reviewed head.
  • Complete next step (P2) - A protected-label PR with an unresolved supplied UI-E2E gate needs a maintainer to review the exact merge-result proof; there is no concrete patch defect for an automated repair lane.
Agent review details

Security

None.

PR surface

Source +11, Tests +191. Total +202 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 16 5 +11
Tests 2 192 1 +191
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 208 6 +202

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-management.groups.e2e.test.ts, serialized state: ui/src/pages/sessions/view.test.ts, unknown-data-model-change: ui/src/e2e/session-management.groups.e2e.test.ts, unknown-data-model-change: ui/src/pages/sessions/view.test.ts, unknown-data-model-change: ui/src/pages/sessions/view.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Preserve this narrow view-layer repair, update or test the actual merge result, and land only once the affected Sessions owner and Chromium mocked-Gateway scenarios are clean on that result.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Preserve this narrow view-layer repair, update or test the actual merge result, and land only once the affected Sessions owner and Chromium mocked-Gateway scenarios are clean on that result.

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

Yes, at source level: current main renders pointer-only sortable headers, non-alert errors, and identical destructive-selection labels. The PR body also supplies focused exact-head browser and owner-suite evidence, though this read-only review did not rerun it.

Is this the best way to solve the issue?

Yes. Adding native controls and ARIA state in the existing Sessions renderer fixes the missing semantics at their owner while retaining the complete padded header click target; moving sorting solely onto a smaller button would regress that established pointer target.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This fixes accessibility defects in the normal web Sessions workflow with a bounded user-facing impact.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides exact-head terminal output for focused owner tests and Chromium mocked-Gateway scenarios that directly exercise keyboard sorting and announced failures; a final merge-result rerun is still appropriate because the branch is behind main.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides exact-head terminal output for focused owner tests and Chromium mocked-Gateway scenarios that directly exercise keyboard sorting and announced failures; a final merge-result rerun is still appropriate because the branch is behind main.

Evidence

What I checked:

  • Current-main defect: The sortable headers are clickable table cells containing only text and an icon, so the default Sessions table has no native keyboard sort control or active sort announcement. (ui/src/pages/sessions/view.ts:1122, 2614251533b6)
  • Current-main failure and selection semantics: The page-level error and checkpoint error lack alert semantics, while every destructive-selection checkbox has the same generic accessible name. (ui/src/pages/sessions/view.ts:1161, 2614251533b6)
  • Owner-boundary repair: The PR adds active-only aria-sort to the existing header, nests a native button while retaining the complete header click target, and adds alerts and key-specific checkbox labels in the same rendering owner. (ui/src/pages/sessions/view.ts:1122, ed6f814c6d42)
  • Regression coverage: The PR adds focused view tests for native sort buttons, active-only aria-sort, alerts, and distinct session names, plus a browser scenario for keyboard interaction and the retained padded-header pointer target. (ui/src/pages/sessions/view.test.ts:103, ed6f814c6d42)
  • Styling contract: The Control UI base stylesheet already makes native buttons inherit surrounding font and color, so the new transparent button does not introduce a separate text-style contract. (ui/src/styles/base.css:721, 2614251533b6)
  • Feature provenance: History shows Peter Steinberger as the dominant contributor for the Sessions and adjacent table surface; the current file state also traces to a recent Peter-authored commit in this checkout. (ui/src/pages/sessions/view.ts:1122, b186d81c46)

Likely related people:

  • steipete: The local history and shortlog identify Peter Steinberger as the dominant contributor across the Sessions view, Sessions page, and shared table styling; the proposed repair is also authored from that established area. (role: primary Sessions UI contributor; confidence: high; commits: b186d81c46, 7abf1c7f85a5, 5c3c5c0ee49a; files: ui/src/pages/sessions/view.ts, ui/src/pages/sessions/sessions-page.ts, ui/src/styles/components.css)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-07-31T19:37:08.592Z sha ed6f814 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T21:47:51.318Z sha ed6f814 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review July 31, 2026 21:41
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 31, 2026
@steipete
steipete merged commit 4278760 into main Jul 31, 2026
229 of 244 checks passed
@steipete
steipete deleted the codex/qa300-ui-keyboard-accessibility-sidebar branch July 31, 2026 22:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
…odels-20260729

* origin/main:
  fix(tui): canonical terminal outcomes, cancellation, and error privacy (#117044)
  fix(cron): avoid phantom message tool guidance (#116908)
  fix(test): avoid macOS release gate deadlocks (#116972)
  fix(openai): canonical Chat cache-hit and billing accounting (#117043)
  fix(memory-wiki): salvage human Notes before pruning imported source pages (#102294)
  fix(memory): suggest reindex, not --fix, for a missing qmd index (#116958)
  chore(msteams): add private Gateway QA adapter
  fix(ui): make session controls and failures accessible (#117019)
  docs: fix tilde paths in CLI output examples (#114595)
  fix(plugins): canonical discovery diagnostics and deterministic lifecycles (#117025)
  fix(ui): honor Gateway readiness abort and subscription ownership (#117048)
  fix(updater): harden launchd replacement timing (#117030)
  fix(gateway): preserve static asset HEAD representation metadata (#117049)
  fix(gateway): abort embeddings when clients disconnect (#116146)
  fix(googlechat): retain fallback thread continuity (#117053)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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.

1 participant