Skip to content

[Bug]: Agent can miss the worktree-scoped Orca browser and choose the wrong control surface #9055

Open

Description

@tmchow

Operating system

macOS

Orca version

1.4.137

Details

Summary

A coding agent running in an Orca-managed worktree can fail to select Orca's embedded-browser control path even when the user explicitly says "Orca browser." It may choose generic Chrome/CDP automation and then Orca desktop computer control before discovering orca tab list. In the observed case, the embedded browser and worktree targeting were healthy once the correct CLI surface was used.

This is distinct from browser command parity (#5705), general capability diagnostics (#5709), and browser/worktree visibility in the UI (#5095): the failure is choosing and discovering the correct control surface in an actual agent session.

What happened

  • A supported coding agent was launched inside an Orca-managed worktree.
  • That worktree already had an authenticated Orca browser tab open.
  • The user explicitly asked the agent to drive the existing Orca browser tab.
  • The agent invoked a generic browser automation skill and searched for a Chrome CDP endpoint.
  • After correction, it inspected Orca's desktop UI using orca computer, which reflected whichever workspace was visible.
  • Only after inspecting CLI help and running orca tab list --json did it find the correct worktree tab and control it successfully.

Expected behavior

When an agent running inside Orca is asked to use an Orca browser tab, the Orca-native route should be reliably discoverable and preferred. orca tab list --json and orca snapshot --json should be the initial path; attaching to Chrome or scanning the desktop UI should not be necessary.

Reproduction

  1. Make both Orca's orca-cli skill and a generic browser-automation skill available to a supported coding agent.
  2. Start the agent in an Orca-managed worktree with an Orca browser tab already open in that worktree.
  3. In a long-running conversation where generic browser tooling may have been used earlier, ask the agent to drive the Orca browser tab that is already open and verify a page.
  4. Observe that the agent may choose generic browser automation or computer-use instead of orca tab list.
  5. Run orca tab list --json; the correct worktree tab appears and subsequent Orca browser commands work.

Confirmed during debugging

  • The Orca-managed terminal had ORCA_WORKTREE_ID set.
  • The installed orca-cli skill explicitly routes "Orca browser" requests to the Orca CLI and distinguishes the embedded browser from Chrome and desktop UI control.
  • A generic browser skill can contain broader preference wording that competes with this routing.
  • The live CLI correctly listed the open tab with the exact worktree binding.
  • Focused CLI tests for browser targeting passed: 182 tests across src/cli/browser.test.ts and src/cli/index.test.ts.
  • No backend browser-control or tab-discovery failure was found.

Possible direction, not an assumed fix

Consider giving agents a small session-scoped capability hint when Orca launches them. For example, when ORCA_WORKTREE_ID is present, an "Orca browser" request could be directed first to orca tab list --json and orca snapshot --json, with generic Chrome/CDP automation and orca computer explicitly identified as different surfaces.

An evaluation with competing browser skills in a long-running session may also be useful. Updating skill copy alone may not be sufficient because tool/skill selection remains model-dependent.

The reproduction has been anonymized; private URLs, local paths, page names, and session identifiers are intentionally omitted.

Activity

  1. added
    os:macos
    on Jul 16, 2026
  2. AmethystLiang commented on Jul 16, 2026

    @AmethystLiang
    Contributor

    will look into this

  3. added
    bug
    on Jul 27, 2026
  4. AmethystLiang commented on Aug 30, 2026

    @AmethystLiang
    Contributor

    @Jinwoo-H will look into this very soon

  5. chirag127 commented on Nov 21, 2026

    @chirag127
    Contributor

    Acceptance refinement: natural-language tasks select the supported API/CLI workflow

    I want agents to discover and use the correct supported operation automatically for all task families, not only browser/computer interaction. Orca already has CLI guidance and browser-trigger groundwork in #5112; this issue is a useful place to verify route selection when skills compete.

    Please extend the selection checks to include:

    • Representative prompts for settings, projects/Git, agents/terminals, integrations, extension installation/reload, and web/mobile/desktop testing. The user should not have to name a skill or paste a CLI command to activate a supported workflow.
    • Prefer a documented semantic API or native CLI when it owns the operation; choose browser, device, or computer-use adapters when the actual task needs them. Retain the chosen operation and explicit target/host in the result.
    • Discover version-matched task skills and user-authored procedures with their applicable operations, inputs, prerequisites, and success criteria. Validate referenced operations against the current catalog; unavailable or stale commands should produce an actionable result rather than guessed syntax.
    • Exercise a complete task: discover, configure/setup, execute, verify, and report automatically. A skill that only returns manual UI instructions does not satisfy this programmatic workflow.
    • Evaluate competing-skill cases and deliberate failures. Assert the actual selected tool/target and observed outcome, not merely that a guide was present or a call was accepted.

    Task-oriented skills may compose many API/CLI operations. User-skill distribution/lifecycle remains with #14416, effective context visibility with #14874, and API schemas with #14273. Product-wide coverage is tracked by #5700/#5709. The six concrete test workflows are #46537/#46542/#46544/#46545/#46546/#46547. Ordinary authorized steps should proceed automatically until completion or an actual missing prerequisite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

browserbugos:macos

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions