Skip to content

fix(ui): keep a Browser panel action's error visible through passive refreshes - #198053

Merged
hannesrudolph merged 3 commits into
openclaw:mainfrom
daniel-lxs:browser-panel-keep-action-error
Nov 13, 2026
Merged

hannesrudolph merged 3 commits into
openclaw:mainfrom
daniel-lxs:browser-panel-keep-action-error

Conversation

@daniel-lxs

Copy link
Copy Markdown
Member

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

  • The automatic viewport sync runs as a passive action and no longer clears the shown error before it runs.
  • A panel refresh keeps an error that came from the person's own action; it still clears errors from its own snapshot work.
  • The person's next action, and an explicit Retry or Refresh, still clear the error, and any new error replaces it.

Evidence

The Browser panel still shows "Couldn't complete the browser action. Try again." about 10 seconds after a blocked navigation, while the page keeps streaming

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:

  • New Browser panel streaming tests: an action's policy error survives 10 seconds of viewport sync and of a panel refresh while frames stream; both fail without this change. A second new test shows an explicit Refresh still clears an action's error.
  • Control UI Browser panel tests: 283 passed. Lint and the UI typecheck are clean.

…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.
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Preserve 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.

  • Before: Automatic viewport correction clears the error.
  • After: The error remains visible through viewport correction and passive refresh.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused repair with relevant live visual evidence and a corrected regression fixture; exact-head CI remains unexecuted behind workflow approval.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The inspected screenshot and isolated-VM account exercise the real Control UI Browser panel after blocked navigation and automatic resize, showing the retained banner while streaming continues; expanded policy details were expressly outside that capture.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A failed Browser panel input loses its error explanation when successful background work runs.
Reason: Persistent failure feedback has clear user value, and the repair stays within the existing error and viewport owners.

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
Reviewed head: e16cb4bb548a477a5cc8ae49d6ab7f07fd7e0ef2

Before merge

  • Await maintainer action - Approve the GitHub workflows awaiting action for e16cb4b and let the required checks complete.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Panel action and refresh error clearing changes intended behavior with a stated reason (5673afc: refactor(ui): replace browser panel controller with owner factories #174369 carried existing navigation and capture behavior into owner factories; it does not establish the original introduction of unconditional clearing.)
  • Explicit error recovery keeps the original intent (c2d1bf4: feat(ui): refine browser navigation and recovery #176564 made recovery belong to the displayed failure and retained backend-specific retries.)
  • Automatic viewport reconciliation keeps the original intent (5bfc40f: The earlier viewport controller consolidated screenshot and stream sizing and retained issued resizes through invalidation; this patch changes only error-clearing participation.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +19, Tests +52. Total +71 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 23 4 +19
Tests 1 52 0 +52
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 75 4 +71

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: ⏳ waiting on maintainer.

Label justifications:

  • P2: Passive Browser panel activity hides failed-action feedback while the rest of the panel remains usable.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-13T03:07:14.442Z sha 2f8fe94 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T16:43:49.569Z sha 7e3450d :: blocked before merge. :: [P2] Inject the policy denial at the current operator-input route

Reviewed November 13, 2026, 12:04 PM ET / 17:04 UTC (Revision 3).

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. label Nov 13, 2026
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@hannesrudolph
hannesrudolph merged commit eae1235 into openclaw:main Nov 13, 2026
91 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Browser panel: an action's error disappears while the page keeps streaming

2 participants