Repository navigation
fix: open browser side panel without creating a dashboard - #148471
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. |
a265a3c to
cb74eb4
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:45 PM ET / 19:45 UTC (Revision 2). ClawSweeper reviewWhat this changesUpdates 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 Review scores
Verification
How this fits togetherOpenClaw 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +22, Tests +38, Docs +10. Total +70 across 10 files. View PR surface stats
Review metricsNone. Mantis proof suggestionA 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: Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* 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)
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
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.