Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3003ed12-b43d-4419-8d98-1b1fdb8f2b6c
📥 Commits
Reviewing files that changed from the base of the PR and between ef890ae and 4f1c0f4f02bd601bd05bcc5ec95ea481e2074da1.
📒 Files selected for processing (58)
docs/site/content/docs/cli/reference.mdxskill-guides/orca-cli/references/browser.mdsrc/cli/browser.test.tssrc/cli/bundled-skill-guides.tssrc/cli/handlers/browser-tab.tssrc/cli/specs/browser-basic.tssrc/main/codex/codex-user-developer-instructions.test.tssrc/main/codex/codex-user-developer-instructions.tssrc/main/ipc/codex-config-sync.tssrc/main/ipc/pty-spawn-env-terminal-basics.test.tssrc/main/ipc/pty/host-env/assembly.tssrc/main/ipc/pty/host-env/terminal-browser-env.tssrc/main/ipc/pty/host-env/types.tssrc/main/ipc/pty/ipc/spawn-env-codex.tssrc/main/ipc/pty/provider/local-configure.tssrc/main/ipc/pty/runtime/spawn-preflight.tssrc/main/runtime/orca-runtime-create-agent-session.tssrc/main/runtime/orca-runtime-resolve-mobile-session-terminal-command.tssrc/main/runtime/runtime-agent-terminal-startup.tssrc/main/runtime/runtime-worktree-agent-startup.tssrc/preload/api/agent-account-api.tssrc/preload/api/codex-config-sync-bridge.tssrc/renderer/src/components/settings/BrowserAgentWorkSetting.test.tsxsrc/renderer/src/components/settings/BrowserAgentWorkSetting.tsxsrc/renderer/src/components/settings/BrowserPane.search-catalog.test.tsxsrc/renderer/src/components/settings/BrowserPane.tsxsrc/renderer/src/components/settings/browser-agent-work-search.tssrc/renderer/src/components/settings/browser-search.test.tssrc/renderer/src/components/settings/browser-search.tssrc/renderer/src/components/sidebar/folder-workspace-agent-startup.tssrc/renderer/src/components/sidebar/folder-workspace-composer-submit.tssrc/renderer/src/hooks/composer-state/quick-startup-plan.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/launch-agent-background-session.tssrc/renderer/src/lib/launch-agent-in-new-tab.tssrc/renderer/src/lib/launch-work-item-direct-agent.tssrc/renderer/src/lib/onboarding-folder-agent-startup.tssrc/renderer/src/lib/orca-browser-guidance-launch-options.test.tssrc/renderer/src/lib/orca-browser-guidance-launch-options.tssrc/renderer/src/store/slices/settings.tssrc/renderer/src/web/web-preload-api.tssrc/shared/agent-browser-guidance.test.tssrc/shared/agent-browser-guidance.tssrc/shared/agent-session-option-agent-args.tssrc/shared/agent-startup-plan-inputs.test.tssrc/shared/agent-startup-plan-inputs.tssrc/shared/default-global-settings.tssrc/shared/global-settings-types.tssrc/shared/telemetry-property-schemas.tssrc/shared/tui-agent-launch-command-browser-guidance.test.tssrc/shared/tui-agent-launch-command.tssrc/shared/tui-agent-startup-browser-guidance.test.tssrc/shared/tui-agent-startup.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
71c0afb to
735a49d
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
be38e79c-271b-4d80-a9f3-60a527f7078f
📥 Commits
Reviewing files that changed from the base of the PR and between 71c0afb33c9e3caf0ab8e806645580ff708de8d2 and 735a49d6b92e70af8068c150def152ba8f2d5232.
📒 Files selected for processing: 19
src/main/ipc/pty-spawn-env-terminal-basics.test.tssrc/main/ipc/pty/runtime/spawn-preflight.tssrc/main/runtime/orca-runtime-activate-managed-worktree.tssrc/main/runtime/orca-runtime-create-agent-session.tssrc/main/runtime/orca-runtime-resolve-mobile-session-terminal-command.tssrc/main/runtime/orca-runtime-terminal-create-deduplication.tssrc/main/runtime/runtime-agent-terminal-startup.tssrc/main/runtime/runtime-worktree-agent-startup.test.tssrc/main/runtime/runtime-worktree-agent-startup.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/launch-agent-background-session.tssrc/shared/agent-startup-plan-inputs.test.tssrc/shared/agent-startup-plan-inputs.tssrc/shared/default-global-settings.ts
🚧 Files skipped from review as they are similar to previous changes: 6
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/ja.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…wser Adds a "Use Orca Browser for Agent Work" setting (off by default). When on: - new local terminals force BROWSER to `orca tab create --activate --url %s` (orca-ide on WSL, open-url under a headless relay), overriding any inherited value; - Orca-built Claude and Codex launches get an advisory instruction to do browser work through the Orca browser CLI. Codex is skipped when the user's own config (or active profile) already defines developer_instructions. Also adds `--activate` to `orca tab create`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g Orca browser guidance Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without a cwd the project .codex/config.toml cannot be checked, and the -c override would mask it. Drops the cwd-less cache primes that no launch reads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…launch directory Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h directory and runtime Co-Authored-By: Claude Opus 5.5 <[email protected]>
…late tests from real Codex config Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dance Co-Authored-By: Claude Opus 5.5 <[email protected]>
18f7ac8 to
a2fcd82
Compare
ELI5
A new switch in Settings → Browser keeps browser work inside Orca.
When it is on:
What Changed
Before, three things happened outside Orca:
BROWSERlinks in the system browser. Examples are Claude sign-in,gh auth login, and Pythonwebbrowser.After, a new setting Use Orca Browser for Agent Work (
useOrcaBrowserForAgentWork) is available. It is off by default. When it is on, the following applies.1.
BROWSERis forced in new local terminals.BROWSER="orca tab create --activate --url %s". This value replaces any inheritedBROWSER.orca-ideinstead oforca.orca servekeeps its existingopen-urlrelay.host-env/terminal-browser-env.ts.orca tab creategains an--activateflag. The RPC param already existed, so there is no wire change.tab createinstead ofopen-urlbecauseopen-urlfails on a desktop app. It needs a paired client host lease and a required worktree.2. Claude and Codex get an advisory instruction at launch.
--append-system-prompt <guidance>.-c developer_instructions='<guidance>'.resolveAgentLaunchCommand, so every Orca-built launch path picks it up. Main-side paths read the setting throughresolveAgentStartupPlanInputs. Renderer paths pass it explicitly.commandWithoutSessionOptions. So it is never saved into resume or sleeping-session configs, and each launch re-derives it from the current setting.codexGuidanceSpawnGated).gateCodexBrowserGuidanceright before the PTY starts. It checks the real launch directory, the WSL runtime, the SSH connection and the selected Codex home./etc/codex/config.tomloutside Windows),~/.codexand$CODEX_HOME, the selected account home, and every.codex/config.tomlfrom the real launch directory up to the filesystem root.developer_instructions.profile. A profile can be selected in one layer and defined in another, so Orca does not try to resolve which profile is active.-por--profileflag, or the user's own-c developer_instructions, is present.\\wsl$path), over SSH, or on a paired Orca server or web client. Those hosts read a config this host cannot see, and an older paired server has no spawn gate.Why
BROWSERinstead of interceptingxdg-openoropen:BROWSERis the standard, cross-platform hook that Orca already uses for the headless relay. Shims forxdg-openandopenwould need per-platform PATH management. They are left as a follow-up.resolveAgentLaunchCommandavoids touching each launch path separately and keeps it out of persisted resume state.Linked Issue
Fixes #28177
Visual Proof
Captured from an e2e build of this branch on Linux. The app ran on an isolated Xvfb display (
ORCA_BACKGROUND_LAUNCH=1,electron-headful).Settings → Browser: the new row, off (default) and on
After turning it on, a newly split terminal pane gets the forced
BROWSERThe existing Agent Browser Use row at the top of the same pane is a setup checklist: it installs the
orca-cliskill and imports cookies. It makes the Orca browser available to agents but does not route anything to it. This setting is the part that routes work there, so the two complement each other.Testing
pnpm tcpasses.check-changed-code-qualitypasses with 0 new findings, including the design-system check.oxlinton the changed files is clean.generate-bundled-skill-guides --checkpasses.The localization verify scripts pass.
viteston the new and affected tests passes. The tests cover:BROWSERoverride, WSLorca-ide, the headless relay, and off-by-default.--, and removing the Codex instruction again in each shell without touching the user's own-cargs.launchConfigor resume commands.--activateflag, the settings row and search catalog.I did not run the full suite:
pnpm testneedsbun, which is not installed here, so I ranvitestdirectly. In the broader run, every failure also fails the same way onmain(agent-session store and replay tests,run-terminal-shell-alone.node-pty,local-base-branch-fast-forward-real-git, and the session-history settings tests).Platform: Linux, unit-level only. I did not do a manual run with the real Claude or Codex binaries.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Claude Opus 5.5) and reviewed by me.
Review
Agent skill upstream boundary
Notes
BROWSERvalue and the instruction quoting are covered for posix, PowerShell and cmd. WSL usesorca-ide.BROWSERchange applies only to local PTYs. Headless or remote hosts keep their existing relay.--activatemaps to an RPC param that already existed.BROWSERoverrides the forced value.profilenever get the instruction. This is on purpose, to stay safe.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code