Repository navigation
Description
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 --jsondid 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
- Make both Orca's
orca-cliskill and a generic browser-automation skill available to a supported coding agent. - Start the agent in an Orca-managed worktree with an Orca browser tab already open in that worktree.
- 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.
- Observe that the agent may choose generic browser automation or computer-use instead of
orca tab list. - 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_IDset. - The installed
orca-cliskill 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.tsandsrc/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
AmethystLiang commentedon Jul 16, 2026
will look into this
AmethystLiang commentedon Aug 30, 2026
@Jinwoo-H will look into this very soon
chirag127 commentedon Nov 21, 2026
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:
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.