Skip to content

fix(browser): resolve agent dir for screenshot descriptions - #121941

Merged
steipete merged 1 commit into
openclaw:mainfrom
bitfroest:fix/browser-screenshot-agentdir
Aug 25, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
bitfroest:fix/browser-screenshot-agentdir

Conversation

@bitfroest

@bitfroest bitfroest commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #121919.

What Problem This Solves

On a default single-agent config (claude-cli runtime, agents containing only defaults), every browser screenshot description fails with:

[media-understanding] image: failed (0/1) reason=Error: Image understanding requires agentDir

The agent silently receives undescribed screenshots — vision is effectively disabled for the browser tool.

Root cause: the gateway-proxied browser tool path never threads an agentDir into createBrowserTool, so describeBrowserScreenshot forwards undefined to describeImageFile, which throws in runProviderEntry.

Fix

Resolve the agent dir inside describeBrowserScreenshot when the caller does not provide one, using the existing plugin-SDK resolvers (same pattern as the codex extension):

  • explicit ctx.agentDir still wins (existing test keeps covering this),
  • otherwise derive the agent from ctx.mediaScope.sessionKey / ctx.agentId via resolveSessionAgentIds and resolve its dir via resolveAgentDir.

Evidence

  • Our gateway journal (2026.7.1-2, Ubuntu 24.04) shows 130/130 failures since 2026-07-27, all Image understanding requires agentDir:
    Aug 10 13:41:16 kumo node[1364]: [media-understanding] image: failed (0/1) reason=Image understanding requires agentDir
    
  • New focused test: falls back to the session agent dir when no agentDir is provided
  • vitest run extensions/browser/src/browser/vision.test.ts → 7/7 pass (6 existing + 1 new)
  • Live validation: applied the equivalent patch to a running 2026.7.1-2 gateway — screenshot descriptions work again ([analyzed by …] header present instead of image: failed).

🤖 Generated with Claude Code

After-fix runtime evidence (added 2026-08-13)

Live gateway (2026.7.1-2 dist patched with the equivalent fix), agent-driven browser screenshot during a real task. Redacted transcript excerpt of the browser tool result — the description header now appears where the run previously threw:

[analyzed by anthropic/claude-haiku-4-5]
...
<<<EXTERNAL_UNTRUSTED_CONTENT id="81337960f60d790d">>>
Source: Browser
---
# Browser Screenshot Description

## Layout Overview
This appears to be a German-language community forum interface (r/tja subreddit
submit page) ...

Before the fix, the same gateway logged 130/130 failures over two weeks (journal, host redacted):

Aug 10 13:41:16 <host> node[1364]: [media-understanding] image: failed (0/1) reason=Image understanding requires agentDir

After the fix: zero requires agentDir failures since 2026-08-11, first agent screenshot on 2026-08-13 described successfully as shown above.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added extensions: browser size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 11, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:39 AM ET / 07:39 UTC.

ClawSweeper review

What this changes

This PR passes the invoking agent identity through Browser plugin registration and screenshot description so media understanding can resolve the agent-scoped provider configuration.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Current main still drops Browser’s agent identity before screenshot description; this exact-head PR restores it through the canonical resolver and remains necessary. No correctness finding was found; wait for the two in-progress exact-head checks before merge.

Priority: P1
Reviewed head: 27ee67f4e91f21c9f5d0cc82a5a0e2c3fdeaefb8

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The exact-head patch follows the existing ownership boundary, has focused regression coverage, and is supported by redacted live after-fix output.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes redacted after-fix live-gateway output showing the expected screenshot analysis header after the prior repeated missing-directory failure.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes redacted after-fix live-gateway output showing the expected screenshot analysis header after the prior repeated missing-directory failure.
Evidence reviewed 6 items Current main retains the defect: Current main forwards agentDir but not agentId at the Browser registration and screenshot-description boundaries, so missing directories cannot use media understanding’s agent-ID directory resolution.
Exact-head repair path: The PR forwards Browser context identity and resolves it through the focused SDK subpath only when no explicit directory is supplied.
Canonical identity contract: The shared resolver rejects an explicit agent that conflicts with the agent-scoped session before media dispatch.
Findings None None.
Security None None.

Live Verification

Command: pnpm openclaw browser --help

Result: PASS (completed)

pnpm openclaw browser --help
runner@runnervm76f27:/tmp/clawsweeper-live-proof-121941-UB8Efi/target$ pnpm openclaw browser --help
$ node scripts/run-node.mjs browser --help
pnpm openclaw browser --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 109.32 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

[tsdown-build] invocation 2/2 finished in 14.3s
[plugin-control-plane-loads] verified 35 built modules with native require and checked doctor closures
runtime-postbuild: 11 phases completed in 4344ms (slowest: built plugin control-plane loads 3544ms)
│
◇

OpenClaw 2026.8.1 (27ee67f) — All your chats, one OpenClaw.

Usage: openclaw browser [options] [command]

Manage OpenClaw's dedicated browser (Chrome/Chromium)

Options:
  --browser-profile ‹name›  Browser profile name (default from config)
  --expect-final            Wait for final response (agent) (default: false)
  -h, --help                Display help for command
  --json                    Output machine-readable JSON (default: false)
  --pa
… output truncated …

Assertions:

  • PASS expect_output: Manage OpenClaw's dedicated browser

How this fits together

An agent calls the Browser plugin, which captures a screenshot and requests a text description. The effective agent identity selects the agent-scoped directory and provider configuration before the description returns to the agent.

flowchart LR
  A[Agent browser request] --> B[Browser plugin registration]
  B --> C[Browser tool]
  C --> D[Screenshot description]
  D --> E[Session agent resolver]
  E --> F[Media understanding]
  F --> G[Description returned to agent]
Loading

Before merge

  • Resolve merge risk (P1) - The repair changes agent-scoped provider routing; wait for the remaining exact-head build-artifact and dependency checks before merge.
  • Complete next step (P2) - The current PR already contains the focused repair; remaining work is exact-head CI completion and normal maintainer merge review.
Agent review details

Security

None.

PR surface

Source +13, Tests +43. Total +56 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 13 0 +13
Tests 2 43 0 +43
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 56 0 +56

Review metrics

Metric Value Why it matters
Production versus regression coverage production +13, tests +43 The production growth carries and validates identity through existing boundaries; the added tests cover default, matching, and conflicting identities.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #121919
Summary: This PR is the focused candidate fix for the linked Browser screenshot-description failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Wait for exact-head CI (recommended)
    Merge after the remaining required checks complete successfully on the reviewed commit.
  2. Pause on an identity-path failure
    If a pending check fails in Browser, agent scope, or media understanding, repair that contract before merge.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Wait for all exact-head required checks to complete successfully, then merge only if the head remains 27ee67f4e91f21c9f5d0cc82a5a0e2c3fdeaefb8.

Technical review

Best possible solution:

Keep Browser responsible for preserving invocation identity and media understanding responsible for resolving directories and credentials, then merge after exact-head checks finish green.

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

Yes—current main omits agentId when Browser has no explicit directory, while media understanding resolves the directory only when that identity is present; the PR also supplies redacted live-gateway evidence of the observed failure and recovery.

Is this the best way to solve the issue?

Yes—the patch preserves the authoritative Browser identity, uses the existing conflict-validating SDK resolver, and leaves directory and provider resolution in the established media-runtime owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ebf07e56e8de.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P1: The patch restores screenshot descriptions in a broken browser-agent workflow.
  • merge-risk: 🚨 auth-provider: The added agent identity determines which agent-scoped media provider configuration is used.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes redacted after-fix live-gateway output showing the expected screenshot analysis header after the prior repeated missing-directory failure.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes redacted after-fix live-gateway output showing the expected screenshot analysis header after the prior repeated missing-directory failure.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the exact-head owner-boundary repair and is the strongest recent contributor in the affected Browser, media-runtime, and agent-scope history sample. (role: recent area contributor; confidence: high; commits: 27ee67f4e91f; files: extensions/browser/plugin-registration.ts, extensions/browser/src/browser-tool.ts, extensions/browser/src/browser/vision.ts)

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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-11T13:54:48.516Z sha 4afc3e1dae8abee51ec70e13b4079b9f0ca11808 :: needs real behavior proof before merge. :: [P2] Resolve the agent directory in the media runtime
  • reviewed 2026-08-11T14:54:18.164Z sha fb3db618917aa32a17dbe9a09bece880a9de0fce :: needs real behavior proof before merge. :: [P2] Use the focused agent-scope SDK subpath
  • reviewed 2026-08-14T01:31:55.518Z sha fb3db618917aa32a17dbe9a09bece880a9de0fce :: needs maintainer review before merge. :: none
  • reviewed 2026-08-14T17:47:37.972Z sha 49c2391f242343aedfa43b1c74643a3defe1023f :: needs changes before merge. :: [P1] Validate agent and session identities together
  • reviewed 2026-08-18T11:17:36.742Z sha 49c2391f242343aedfa43b1c74643a3defe1023f :: needs changes before merge. :: [P1] Validate agent and session identities together
  • reviewed 2026-08-20T09:42:08.450Z sha ce5dd43c19a857db211ed9894c23636c06ead281 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-20T14:24:50.636Z sha 4a31795ecd5ae6bbdd886135b23c6ce2bac93b7f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T07:34:13.736Z sha 27ee67f :: needs maintainer review before merge. :: none

@bitfroest

Copy link
Copy Markdown
Contributor Author

Added redacted after-fix runtime evidence to the PR body (agent-driven browser screenshot on a live patched gateway now produces the [analyzed by …] description; previously 130/130 failures). @clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 18, 2026
@bitfroest
bitfroest force-pushed the fix/browser-screenshot-agentdir branch from 49c2391 to ce5dd43 Compare August 20, 2026 09:37
@bitfroest

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Implemented the P1 exactly as instructed: rebased onto current main, resolveScreenshotAgentId now passes the explicit agent id and the session key through resolveSessionAgentIds together when no agentDir is provided (conflicting pairs keep raising AgentSelectionRequiredError), and the precedence test was replaced with matching-id + conflict-rejection coverage. Focused suites green: vision (9), resolveSessionAgentIds (18), browser-tool/plugin-service/binding (200), extensions/browser index (18).

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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 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. labels Aug 20, 2026
@bitfroest

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased onto current main again (resolved one conflict in extensions/browser/plugin-registration.ts against the new createLazyBrowserTool(opts, config) signature — kept upstream's shape, re-added the agentId option). Focused suites green after rebase: vision + extensions/browser index (29), resolveSessionAgentIds + browser-tool shards all passing.

@bitfroest
bitfroest force-pushed the fix/browser-screenshot-agentdir branch from ce5dd43 to 4a31795 Compare August 20, 2026 14:19
@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Fixes openclaw#121919. Preserve screenshot session ownership through the focused agent-scope SDK before media runtime resolves provider credentials.

Co-authored-by: Dennis Tschersich <[email protected]>
@steipete
steipete force-pushed the fix/browser-screenshot-agentdir branch from 4a31795 to 27ee67f Compare August 25, 2026 07:26
@steipete

steipete commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Maintainer repair and independent verification completed on exact head 27ee67f4e91f21c9f5d0cc82a5a0e2c3fdeaefb8.

The root cause was the Browser plugin dropping its invoking agent identity before screenshot image understanding. The repaired Browser registration now carries the authoritative agent ID into the screenshot owner; that owner lazily resolves the effective identity through the focused openclaw/plugin-sdk/agent-scope-runtime entry point, rejecting conflicting agent/session identities. The media runtime remains the sole owner of agent-directory and provider-credential resolution, and an explicitly supplied agent directory keeps its existing precedence. This avoids the deprecated broad agent-runtime barrel and its unrelated authentication, catalog, and provider startup graph.

The new owner-boundary regressions failed on unchanged main for all four expected cases: Browser registration discarded the agent ID, a session-owned default agent reached image understanding without an identity, an explicit worker agent also lost its identity, and conflicting agent/session identities were not rejected. The repaired owner and its existing sibling contracts now pass:

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs extensions/browser/src/browser/vision.test.ts extensions/browser/index.test.ts src/agents/embedded-agent-runner.resolvesessionagentids.test.ts src/media-understanding/runtime.test.ts

Browser registration and screenshot vision: 29 passed
Canonical session-agent ownership: 18 passed
Media-understanding runtime ownership: 27 passed
Total: 74 passed

Production delta: +13/-0; regression tests: +43/-0. The prior contributor-supplied redacted live Gateway screenshot evidence remains in the PR body. Mandatory autoreview found no actionable issues, and a separate frozen-head independent review approved the exact commit. Original contributor credit is preserved for @nissl24 (Dennis Tschersich). Exact-head pull-request CI: https://github.com/openclaw/openclaw/actions/runs/32821796742

Rank-up move: non-default-agent screenshot with distinct live media credentials — skipped because those additional credentials are unavailable; real default-agent before/after proof plus explicit-worker and conflict-rejection regressions and all 74 tests cover the ownership invariant.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit 8f24392 into openclaw:main Aug 25, 2026
102 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…#121941)

Fixes openclaw#121919. Preserve screenshot session ownership through the focused agent-scope SDK before media runtime resolves provider credentials.

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: browser merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

[Bug]: Browser screenshot description always fails with "Image understanding requires agentDir"

2 participants