Repository navigation
fix(qa-lab): retain tab focus and scroll during polling - #155284
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 25, 2026, 12:34 PM ET / 16:34 UTC (Revision 10). ClawSweeper reviewWhat this changesThe branch preserves keyboard focus and horizontal tab position across QA Lab dashboard redraws, adds navigation regression tests, and consolidates browser test setup. Merge readiness⛔ Needs changes before merge - 2 items remain Keep open for maintainer review. Current main still loses QA Lab tab focus and scroll position on redraw, and the proposed repair has credible browser evidence. Priority: P2 Review scores
Verification
How this fits togetherThe QA Lab dashboard polls its local server and redraws the operator interface when state changes. The redraw replaces the tab bar, so keyboard focus and its horizontal position must be restored in the new DOM. flowchart LR
A[QA Lab server state] --> B[Dashboard poll]
B --> C[Capture focus and tab position]
C --> D[Redraw dashboard]
D --> E[Restore focus and position]
E --> F[Usable tab navigation]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +33, Tests +352, Other 0. Total +385 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep transient navigation state at the dashboard redraw boundary and let the existing focus handler reveal tabs after width changes. Do we have a high-confidence way to reproduce the issue? Yes, with high confidence from current-main source and the supplied baseline browser capture: a changed poll replaces a focused, scrolled tab bar without retaining either state. I did not execute current main in this read-only review. Is this the best way to solve the issue? Yes. The redraw boundary owns the transient state, and the patch reuses the existing tab-reveal behavior rather than introducing another navigation mechanism. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 368163b4c148. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ...
|
Merged via squash.
|
) * fix(qa-lab): retain tab focus and scroll during polling * chore(qa-lab): merge main for tab navigation validation * fix(qa-lab): keep focused tabs visible after layout changes * fix(qa-lab): reconcile navigation retention with current app * chore: refresh main for QA Lab navigation validation * commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (194 commits) feat(ui): listen to managed desktop audio in the panel (openclaw#157724) fix(ci): resume partially published preparation receipts (openclaw#158174) feat(release): one approval per release via an attested parent approval receipt (openclaw#157911) feat(desktop): advertise current managed desktop audio (openclaw#157723) fix(ui): retain delayed progress scroll gestures (openclaw#158153) refactor(ui): share sidebar mutation error feedback (openclaw#158173) test: await database verifier process lifecycle events (openclaw#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (openclaw#157722) refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050) feat(desktop): isolate managed Linux application audio (openclaw#157720) fix(test): prepare catalog fixture modules before startup (openclaw#158157) fix: keep model pickers usable during provider sign-in (openclaw#158132) refactor(test): remove unused prompt scenario metadata (openclaw#158151) fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020) fix: bound stalled browser stream startup (openclaw#156323) fix(onnx): prevent worker fixture hangs after release (openclaw#158146) fix(models): preserve scoped provider discovery outcomes (openclaw#158139) fix(agents): report offline trash failures after agent delete (openclaw#158052) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
When polling replaces the QA Lab tab bar, keyboard focus disappears and an intentionally scrolled mobile tab bar snaps back to the start.
Why This Change Was Made
The render-state owner captures root-owned focus, navigation offset, and actual navigation width before DOM replacement. At the same width it restores focus before the saved offset. When width changes, it restores the offset first and lets the existing focus-reveal owner keep the selected control visible. No new observer, timer, or reveal algorithm.
The current correction preserves main's action, event-binding, and capture-key changes. It resolves the assertion-baseline merge conflict from 40 to 39 and keeps the navigation helper and regressions unchanged. Against
d65bc76d60daaa16078748bd2f2a9c090564d2ee: production +42/-9, tests +554/-202, assertion baseline +1/-1. Shared test setup is extracted rather than duplicated.User Impact
Polling retains focused tabs and navigation position. Native Tab still reveals the next control. Sidebar-width changes keep the focused tab visible, while focus elsewhere in the document is not stolen.
Evidence
Current reviewed head:
bebbb53623872e0675c36ef3d0ddb9223f7f1cbf, tree8ec081ed43e1bc7b4f814fc3a9b47557b954b0df, incorporating main54b5f23b006ae917c8bb7903f5ee7dad6108ec25. The five QA Lab web files are byte-identical to the focused-proof correction326616b1b9b28051d785c5d6ef42a1eb64fd57d4, treef23d4cf7aa7aca73d0eaf024ef16b7fa761de44c.Focused proof at that correction passed:
At the current reviewed head, CI and Security passed. The native completed-hosted-evidence preparation gate accepted those results. Independent review, scoped autoreview, and the exact-head ClawSweeper review found no remaining actionable issue.
The separate protected AWS proof completed its build, checks, and selected tests successfully with remote command exit 0. Its publisher subsequently rejected the broker lifecycle receipt after release was accepted but cleanup remained pending. That publisher is failed, not a passing gate; landing uses the supported completed-CI route above. Cleanup settlement remains a separate follow-up.
The browser proof used the native QA Lab server with its embedded Gateway disabled. It does not claim Bun Gateway coverage; that is part of the separate current-main Bun campaign.
Retained Before/After Evidence
These five inspected captures belong to the earlier standalone navigation proof at
9ce782c423b21213bb76da40773d4a5bcfd8f927, run 35980458454. They are retained with their original provenance, not relabeled as new correction-head screenshots.At 320px, baseline polling lost Chat focus and reset the offset from 208 to 0. The candidate retained focus and offset 208; native Tab then focused and revealed Results without changing the selected Chat view.
At 705px, expanding the sidebar narrowed the tab bar from 704 to 425px while keeping Capture visible at offset 81. The reverse transition clamped the wider bar to zero.
Follow-ups
QA_LAB_MOBILE_CHAT_REFLOW: the cramped 320px transcript/composer is a separate unfinished change, not resolved by this navigation fix.CONTROL_UI_ASSET_BUDGET: inherited asset-budget warnings from the earlier build remain separately tracked; a successful build is not a zero-warning claim.CRABBOX_GATE_RELEASE_RECEIPT: reconcile the failed publisher's cleanup lifecycle before counting it as successful proof; do not weaken the release checks or relabel accepted release as completed cleanup.