Repository navigation
fix(ui): open browser cards after delayed panel renders - #153253
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 maintainer review before merge. Reviewed September 22, 2026, 5:40 PM ET / 21:40 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR makes browser-card opens wait for the newly scheduled chat-pane render and adds a deterministic regression covering tab selection and the displayed preview. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. The previous fixture finding is resolved, the supplied visual proof supports the intended result, and no introduced blocking defect remains. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI passes browser-card clicks through the active chat pane to its lazily rendered sidebar. Once the pane and sidebar finish rendering, the browser panel selects the requested tab and displays its preview. flowchart LR
A[Browser card Open click] --> B[Active chat pane]
B --> C[Schedule sidebar render]
C --> D[Await current render]
D --> E{Request still current?}
E -->|Yes| F[Select browser tab and preview]
E -->|No| G[Discard outdated request]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -4, Tests +140. Total +136 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing panel handoff owner, await its newly scheduled render, and preserve cancellation and session checks before delivery. Do we have a high-confidence way to reproduce the issue? Yes, from source: delay the pane render after opening a browser card, and the old handoff can deliver before the panel exists. The supplied regression and screenshots support this path; this review did not execute it. Is this the best way to solve the issue? Yes. Re-reading the render promise after scheduling the update repairs the existing handoff without adding another delivery mechanism or changing browser routing policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d30f66fc26f9. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
8f87e95 to
75299eb
Compare
75299eb to
b922a5d
Compare
Wait for the new pane render before delivering the selected browser tab. Derive panel tag types from the event table, and keep the regression deterministic without real waits or unused callback spies. Co-authored-by: vyctorbrzezowski <[email protected]>
b922a5d to
7721f85
Compare
|
Merged via squash.
|
* commit '7d7f977ccfc1ac177526232e4f4960febd010015': (91 commits) test: avoid unused target setup in package profile fixtures (#155972) fix(worktrees): batch snapshot metadata reads test(plugin-state): distinguish borrowed and foreign lifecycle owners refactor(agents): share external harness session and attempt machinery (#152181) chore(i18n): refresh native locales (#156006) chore(test): retain Doctor fixture settlement diagnostics (#155944) perf(codex): reuse unchanged inference request bytes (#155987) perf(test): prepare snapshot ownership subprocess imports (#155973) perf(test): consolidate channel registry coverage (#155014) fix(runtime): preserve Node worker dependencies and cleanup diagnostics (#155292) perf(test): prepare worktree GC child runtime (#155928) fix(ui): open browser cards after delayed panel renders (#153253) fix(update): retain the running updater by hard link instead of copying the package (#155977) feat(decisions): add explicit evaluation and Labs opt-in foundation (#155134) fix(state): preserve lifecycle custody across worker dispatch improve: reuse shared tooling fixtures and defer legacy updater proof (#155731) improve(ui): reduce real-Gateway test preparation (#155979) perf(state): move session RPC SQL off the Gateway main thread (#155740) docs(freebsd): explain native Codex runtime limits (#155980) fix(qa): count Code Mode nested tool activity as transcript tool evidence (#155976) ...
) Wait for the new pane render before delivering the selected browser tab. Derive panel tag types from the event table, and keep the regression deterministic without real waits or unused callback spies. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes: clicking Open on a browser card can leave the Browser panel empty or show the wrong page when the chat pane renders late.
User Impact
User impact: the selected browser page opens after the panel is ready. Browser permissions, URL restrictions, and thumbnail behavior are unchanged.
Why This Change Was Made
The handoff waited for an older render to finish instead of the render it had just requested. It now waits for the current render and keeps the existing checks that reject cancelled or outdated requests.
Tightly related cleanup keeps the panel-type list in one place and removes unused mock-call tracking from the regression fixture. The new regression uses a controlled clock rather than a real sleep or polling. No tests were deleted; the ordering, cancellation, and delayed-render cases protect distinct behavior. Production change: 4 additions / 8 deletions (net −4). Tests: 140 additions.
Evidence
Reported by @vyctorbrzezowski.
Work sessions
Before
After
View the OpenClaw team session