Repository navigation
Conversation
WHAT: Apply configured TUI agent defaults when the runtime creates a repo-backed terminal from a bare agent command such as codex, so orchestration workers and orca terminal create --command codex inherit Agent Permissions and agent env settings. WHY: The quick-launch UI already builds agent startup plans from Settings, but the CLI and orchestration path sent a raw shell command. That meant Settings > Agent Permissions, including Codex YOLO mode, were silently ignored for worker terminals, making equivalent agent launches behave differently and weakening unattended orchestration flows. HOW: Resolve Settings in the runtime after the worktree, repo, platform, and remote context are known. Only exact, enabled bare agent launch commands with no existing launch metadata are upgraded through buildAgentStartupPlan; raw commands such as codex exec, codex review, claude -p, disabled agents, folder or floating terminals, and pre-planned launches stay unchanged. Cover both background and renderer-backed terminal creation paths with regression tests.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Jinwoo-H
left a comment
There was a problem hiding this comment.
Thanks! I pushed a merge update and a couple of maintainer fixes.
- Bare repo-backed terminal creates now reuse Settings agent defaults for exact agent commands like
codex. - Raw commands, disabled agents, and already-managed launches remain unchanged.
- Added coverage for command overrides, renderer-backed creates, and trust preflight ordering.
Validation: runtime tests, typecheck, lint, CLI build, and Electron CLI/runtime smoke all passed.
Co-authored-by: Orca <[email protected]>
Bare repo-backed terminal creates now reuse Settings agent defaults for exact agent commands while preserving raw commands, disabled agents, and already-managed launches. Validation: - PR Checks / verify passed - Local runtime tests, typecheck, lint, CLI build, and Electron CLI/runtime smoke passed
Summary
codex.buildAgentStartupPlanpath so CLI and orchestration worker terminals inherit Agent Permissions, including Codex YOLO mode, and configured agent env values.Why
The app quick-launch menu already reads Settings before launching agents, but
$orca-cli/ orchestration workers can create terminals throughorca terminal create --command codex. That path previously passed a raw shell command into the runtime, so Settings > Agent Permissions were silently ignored for worker terminals. The same visible agent launch could therefore run with different permissions depending on whether it came from the UI or from CLI/orchestration, which is especially important for unattended worker flows.Compatibility
The runtime only upgrades unmanaged, repo-backed, enabled, exact bare agent launch commands with no existing launch metadata. Raw user-authored commands such as
codex exec ...,codex review,claude -p ..., disabled agents, folder or floating terminals, and requests that already provide env/launchConfig/launchAgent/startupCommandDelivery remain unchanged. This keeps command execution semantics intact while fixing the missing Settings defaults for the orchestration worker case.Verification
pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime.test.tspnpm run typecheck:nodepnpm run build:clipnpm run build:electron-vitenode config/scripts/orca-dev.mjs terminal create --command codexagainst a repo-backed worktree; the launched Codex terminal reported YOLO permissions.