Give the `clai2` web UI session search input its own accessible name instead of 'Archived Ctrl K'
Merged
MP
1mo ago+13+13+01234567890123456789-1-1-0123456789
Fixes #11290
Why we make these changes
The sidebar's session search <input> sits inside a <label> that also wraps the archived-toggle button and the Ctrl K hint. With no name of its own, the input took its accessible name from that label: Playwright and screen readers saw textbox "Archived Ctrl+K". This PR gives the input aria-label="Search sessions". The <label> wrapper stays, so clicking the search icon still focuses the input. Fixes the problem reported in #11290.
New public surface
none
User-visible behavior
- textbox "Archived Ctrl+K"
+ textbox "Search sessions"
button "Archived"
Verification
- New browser regression test
test_sidebar_search_accessible_namefinds the input by role and exact name, checks thatArchivedis still its own button, and checks that typing still filters sessions. Before the fix it failed withtextbox "Archived Ctrl+K". With the fix,CLAI2_BROWSER_TESTS=1 uv run --group clai2-browser pytest tests/clai2/browserpasses 4/4. - Rebuilt the committed bundle with
npm ci && npm run buildon Node 24.22.1 (.nvmrc). The only change inapp.jsis the addedaria-label. ruffandpyrightpass on the changed test file.
What changes for existing users
Assistive tech now announces the search box as "Search sessions"; nothing else changes.
PR decisions
- pre-push review 1 of 3 at 2139aaa91: no findings (full branch against
21a7ec01f).
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.