Skip to content

fix: open browser side panel without creating a dashboard - #148471

Merged
steipete merged 1 commit into
mainfrom
codex/browser-sidebar-prompt
Sep 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/browser-sidebar-prompt

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes agents creating a Browser dashboard when asked to open the browser sidebar or side panel.

User Impact

Panel requests now receive explicit guidance to open the existing Browser panel. The session-list sidebar stays distinct, and explicitly requested Browser dashboards remain supported. No configuration changes or migrations are required.

Why This Change Was Made

The browser tool supplied a dashboard-creation recipe while the presentation prompt omitted the existing screen command. The shared prompt now maps browser-panel requests to screen(action="browser_show") in both standard and Codex runtimes, including deferred and namespaced tools. Tool guidance distinguishes panel controls from dashboard authoring and remains gated on available capabilities.

This changes prompts and tool descriptions only; renderer layout, command execution, and authorization are unchanged.

Evidence

  • Added regression assertions failed before the fix for standard, Code Mode, and Codex direct/deferred/namespaced prompt assembly, then passed after the fix.
  • All 486 focused tests passed across system prompt, screen tool, browser tool, and Codex thread prompt suites.
  • The changed-file gate passed, including production/test type checks, formatting, lint, and structural guards.
  • Documentation link audit: 13,772 internal links checked, zero broken links.
  • Independent review: no actionable P0–P2 findings.

The first CI run failed during manifest generation because main registered a database-worker test twice. That upstream issue was fixed by #148425; this PR was rebased onto the repair with a patch-identical range diff. On the rebased head, only the plugin runtime-inspection lane failed, with the same intermittent invalid-config reply independently recorded in #147993. All 32 tests in that file pass locally. A single failed-job retry passed on the unchanged head; no assertions or product code were changed for it. Required CI is green on attempt 2.

Validation covers prompt assembly and the existing screen-command mapping. Live model routing and a browser UI replay were not exercised.

@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex extensions: browser size: S maintainer Maintainer-authored PR labels Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 19:02
@steipete steipete self-assigned this Sep 14, 2026
@steipete
steipete force-pushed the codex/browser-sidebar-prompt branch from a265a3c to cb74eb4 Compare September 14, 2026 19:09
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:45 PM ET / 19:45 UTC (Revision 2).

ClawSweeper review

What this changes

Updates agent prompts, tool descriptions, documentation, and regression assertions so browser-sidebar requests use the existing panel command while explicit dashboard requests retain dashboard creation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main lacks the explicit browser-panel guidance. No actionable correctness or security defect was found, consistent with the previous review of the same head.

Priority: P2
Reviewed head: cb74eb4e0575a4a680dfe27e46554eddbc5795a7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant prompt-contract coverage and no concrete blocking defect; runtime model behavior is not claimed as proven.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this prompt-only repair from the external-contributor proof gate; reported tests cover prompt assembly, while live model selection and browser replay remain unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this prompt-only repair from the external-contributor proof gate; reported tests cover prompt assembly, while live model selection and browser replay remain unverified.
Evidence reviewed 8 items Introduced patch and review continuity: The verified introduction spans b8de9f8 to cb74eb4. The previous completed review examined this same head and recorded no findings; local inspection confirms the prompt-only production changes.
Current main still lacks the repair: The fetched main implementation has no screenToolName input or browser_show guidance in the shared presentation prompt.
Latest release comparison: The v2026.9.4 presentation prompt also lacks the screen input and browser-panel guidance. The release blob was read through GitHub after the local object read failed.
Findings None None.
Security None None.

How this fits together

OpenClaw assembles available tool guidance for its standard and Codex agent runtimes. The screen tool sends panel commands through the Gateway to the requesting Control UI, while the dashboard tool manages saved widgets.

flowchart TD
  A[User requests browser sidebar] --> B[Available tool guidance]
  B --> C[Standard or Codex agent]
  C --> D[Screen panel command]
  D --> E[Gateway checks requesting client]
  E --> F[Existing Browser panel]
  C --> G[Dashboard tool for explicit dashboard requests]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +22, Tests +38, Docs +10. Total +70 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 5 28 6 +22
Tests 3 48 10 +38
Docs 2 12 2 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 88 18 +70

Review metrics

None.

Mantis proof suggestion

A web UI chat interaction could supplement prompt assertions by observing whether the agent opens the panel without creating a dashboard. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis verify a web UI chat request to open the browser sidebar opens the existing Browser panel without creating a dashboard widget or expanding the board, and return redacted screenshots and the tool-call transcript.

Technical review

Best possible solution:

Keep panel discovery in the shared capability-aware prompt and reuse the existing screen command, reserving dashboard creation for explicit dashboard requests.

Do we have a high-confidence way to reproduce the issue?

No high-confidence live reproduction was established: source confirms the omitted panel guidance and competing dashboard recipe, but actual model selection was not exercised.

Is this the best way to solve the issue?

Yes. The patch clarifies the existing operation at both prompt entry points without introducing another panel implementation or changing persisted settings.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9714d4889209.

Labels

Label justifications:

  • P2: Repairs bounded agent guidance that can create an unwanted dashboard when the user requests an existing browser panel.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied maintainer classification exempts this prompt-only repair from the external-contributor proof gate; reported tests cover prompt assembly, while live model selection and browser replay remain unverified.

Evidence

What I checked:

  • Introduced patch and review continuity: The verified introduction spans b8de9f8 to cb74eb4. The previous completed review examined this same head and recorded no findings; local inspection confirms the prompt-only production changes. (src/agents/ui-presentation-prompt.ts:34, cb74eb4e0575)
  • Current main still lacks the repair: The fetched main implementation has no screenToolName input or browser_show guidance in the shared presentation prompt. (src/agents/ui-presentation-prompt.ts:4, 9714d4889209)
  • Latest release comparison: The v2026.9.4 presentation prompt also lacks the screen input and browser-panel guidance. The release blob was read through GitHub after the local object read failed. (src/agents/ui-presentation-prompt.ts:4, 3a9d69db306c)
  • Existing command and security boundary: browser_show already maps to a browser panel command, separately from session-list sidebar commands. Gateway delivery checks the requesting connection, invalidation, abort state, profile, and UI capability. The patch changes neither execution nor these checks. (src/agents/tools/screen-tool.ts:81, cb74eb4e0575)
  • Capability gating and Codex dependency signal: Standard prompt assembly adds guidance below the cache boundary only when screen is available. The Codex adapter derives qualified tool names from dynamic tool specifications and supplies the resulting text as developerInstructions in thread configuration; this establishes the dependency-contract inspection requirement. (extensions/codex/src/app-server/thread-prompt.ts:68, cb74eb4e0575)
  • Personally inspected Codex contract and runtime: The sibling checkout's backing origin identifies openai/codex. Its dynamic-tool contract supports function and namespace specifications with deferLoading; the thread processor validates these tools, passes them into thread startup, and carries developer instructions into configuration overrides. (codex-rs/app-server/src/request_processors/thread_processor.rs:1422, 6b9826e3aa83)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T19:16:52.619Z sha cb74eb4 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 5247497 into main Sep 14, 2026
342 of 344 checks passed
@steipete
steipete deleted the codex/browser-sidebar-prompt branch September 14, 2026 20:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 14, 2026
* origin/main:
  perf(secrets): keep pure helpers out of file writer imports (#148096)
  perf(models): normalize suppression policy once per compilation (#148428)
  test: route provider integration and wizard recovery tests correctly (#148504)
  test: reuse prepared bundled plugins in startup corpus (#148465)
  fix(agents): attribute tool preparation delays to the correct stages (#148349)
  refactor: remove redundant Parallels source checks (#148394)
  fix(test): avoid timeout failures before descendant readiness (#148410)
  fix: open browser side panel without creating a dashboard (#148471)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: browser extensions: codex maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant