Repository navigation
Description
Candidate: home-shortcut-crosses-modal-20260929
Severity: P2. Keyboard navigation can change the underlying chat/task/conversation while an unrelated modal holds focus, leaving the user on a different Home item when the modal closes.
Source SHA: 9ea59724df24d62729a9360f3902d964dab39b3e.
Reproduction
- In the running local app (
http://localhost:3073; its audit bundle is older than the inspected SHA, so the independent current-source replay below is the confirmation), open a Home chat with at least two visible Home stream items. The verified starting route was/dashboard/SGMunuKBFIJrSVf0LMuIB0sElV4JapJm/chat/919443d2-2b96-4f4d-a3da-b11fc0a772ac. - Open global Search from the sidebar, then click the Chats scope control so focus is on that control rather than the text input.
- Press Option+Down (Alt+Down).
- Observe that Search remains open with focus on Chats, but the underlying route becomes
/dashboard/SGMunuKBFIJrSVf0LMuIB0sElV4JapJm/chat/b6f26a56-b921-47bc-abcb-adaa3cebaae0. - Option+Up returns the hidden page to the first chat. Repeating Option+Down reproduces the change.
Expected: while Search is a modal, its keyboard events must not activate background Home navigation. Ordinary Home shortcuts should still work outside a modal.
Actual: the global Home shortcut clicks the next or prior background row, while the modal and focused scope control remain unchanged.
Root cause
HomeNavigator registers a window keydown listener at services/platform/app/features/home/components/home-panel.tsx:207-222; it calls adjacentRow, prevents the event, and clicks the returned row. services/platform/app/features/home/lib/row-navigation.ts:40-77 excludes editable targets but does not guard a target inside an unrelated dialog, an inert/hidden Home root, or an already-handled event. The search scope controls are buttons, so the modal's event reaches this global handler and activates the obscured Home list.
This report counts that single keyboard-isolation defect. Other non-editable modal controls affected by the same handler are variants, not separate findings.
Evidence
- CUA against the current local application, reproduced twice:
search-modal-before-shortcut.ax.txt,search-modal-after-shortcut.ax.txt(include exact URLs and focused control). - Screenshots:
search-modal-before-shortcut.png,search-modal-after-shortcut.png. - Closed replay:
home-modal-shortcut.probe.test.tsxruns the actualHomeNavigator, actual row navigation helper, actual task rows and sharedDialog; only data and router boundaries are synthetic. - Controls: Alt+Down outside a modal opens the next Home item; Alt+Down from a modal input does not navigate.
- Failure assertion: Alt+Down from a focused button in an
aria-modal=truedialog clicks/dashboard/org-keyboard/tasks/task-2while the modal remains mounted/focused. Frozen readback:home-modal-shortcut.jsonand.html. - Command log:
probes.log(all 5 tests across 2 candidate suites pass).
Deduplication
Compared findings.json (97 entries), baseline-102.json, and latest issues-live-batch11.json (1072 entries); hashes and title matches are saved in dedup-snapshots.json. No report names this background Home keyboard activation. #3612 is the search controller's stale active result after scope change; #1988 is focus restoration after close; #3557 is initial task-modal focus. This case keeps focus inside the modal and changes the background route, with a separate root in Home's global shortcut.
Independent parent verification
Re-ran both retained suites against the exact source SHA above: 5/5 tests passed, including outside-modal, editable-target and compact-notification controls. Inspected the Home window listener, row navigation helper and compact/expanded NotificationListPanel wiring. Current GitHub searches for Home/modal and Notifications/expanded found no matching report. Log: parent-replay.log.
Activity
yannickmonney commentedon Sep 29, 2026
Current-main revalidation — b7f8ca0
Source:
b7f8ca02ec249c004652b1ee52e112d9cdfa53ea. Three Chromium cases use actual HomeNavigator/row-navigation/task rows and a shared aria-modal Dialog. Native Alt+Down on a noneditable modal button activates the background task link; the outside-modal control navigates normally, and a focused modal text input blocks the shortcut. Read hooks and destination are inert seams, so full-shell route effects are not claimed. Current Home layout changes did not change the keyboard helper.Evidence:
/Users/yannick/.codex/notes/tale-1000-additional/current-main-reconciliation/home-navigation/browser.log. Installed external dependencies are reused; app/UI/shared source points at the isolated current tree. Browser runs retain the runner/browser version warning. These revalidations add no findings and include no production testing.