Repository navigation
fix(ui): keep a Browser panel action's error visible through passive refreshes - #198053
Conversation
…refreshes An action's error, such as a navigation blocked by policy, disappeared from the Browser panel while the page kept streaming: the automatic viewport sync runs through runAction, which cleared the error before every action, and refreshAll cleared it on every passive refresh. Viewport sync is now a passive action that leaves the error in place, and refreshAll keeps an error that came from the person's own action. The person's next action still clears it.
|
🦞👀 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: blocked before merge. What this changesPreserve Browser panel input errors through automatic viewport resizing and passive refreshes. Example: A blocked input shows an error while streamed frames drift to 1300×800 in a 640×480 panel.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR fixes a current Browser panel feedback defect, and the previous test-route finding is resolved; no new actionable defect was found. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI Browser panel owner receives user input, Gateway responses, and streamed page updates, then supplies error and viewport state to the Solid view. flowchart LR
A[User input] --> B[Browser panel owner]
C[Viewport reconciliation] --> B
B --> D[Gateway browser client]
D --> E[Browser responses and frames]
E --> B
B --> F[Solid error banner]
Technical reviewBest possible solution: Keep error retention in the existing panel owner, with passive resize opting out of clearing and explicit recovery retaining its clearing behavior. Do we have a high-confidence way to reproduce the issue? Current-main source establishes both clearing paths, and the supplied isolated-VM screenshot supports the visible outcome; no target code or tests were run during this review. Is this the best way to solve the issue? The patch addresses error clearing at its existing owner, uses one local origin flag, and adds distinct coverage for resize, passive refresh, and explicit recovery without unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 708c37827f8c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +19, Tests +52. Total +71 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 13, 2026, 12:04 PM ET / 17:04 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…refreshes (openclaw#198053) * fix(ui): keep a Browser panel action's error visible through passive refreshes An action's error, such as a navigation blocked by policy, disappeared from the Browser panel while the page kept streaming: the automatic viewport sync runs through runAction, which cleared the error before every action, and refreshAll cleared it on every passive refresh. Viewport sync is now a passive action that leaves the error in place, and refreshAll keeps an error that came from the person's own action. The person's next action still clears it. * test(ui): inject the policy denial on operator input
Closes #198052
What Problem This Solves
Fixes: the Browser panel's error for a failed action, such as a navigation blocked by policy, disappears while the page keeps streaming, because the automatic viewport resize and passive panel refreshes clear it.
User Impact
User impact: when an action in the Browser panel fails, its error stays visible until the person acts again, retries or refreshes, instead of vanishing on its own.
Why This Change Was Made
Evidence
Live run in an isolated VM, on a build that contains this change: about 10 seconds after a navigation blocked by policy and an automatic viewport resize, the panel still shows "Couldn't complete the browser action. Try again." while the page keeps streaming (live frame counter running). The expanded "Show details" text, which names the policy block, was not checked in that run.
Tests: