Repository navigation
feat: add Qoder CLI (qodercli) as a supported TuiAgent - #15291
adlternative wants to merge 2 commits into
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (27)
📝 WalkthroughWalkthroughAdded Qoder as a supported TUI agent with CLI configuration, detection, permissions, selection, telemetry, labels, catalog metadata, and session resume support. Added local and remote workspace trust handling. Added Claude-compatible Qoder hook processing, managed hook installation, remote installation, removal, status reporting, and tests. 🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 8
🧹 Nitpick comments (2)
src/main/qoder/hook-service.ts (2)
30-32: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten the Qoder compatibility comment.
The event list already states the supported events. Keep one brief comment only for information not expressed by
QODER_EVENTS.As per coding guidelines: “Comments must be concise, non-obvious, and brief—prefer one line; do not explain obvious behavior or walk through code.”
Source: Coding guidelines
212-213: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winBuild remote POSIX paths with
path.posix.join.Use
path.posix.join(remoteHome, '.qoder', 'settings.json')and the equivalent script path to normalize trailing separators and avoid malformed paths.Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 5d4be6f2-73ac-4d28-a6ea-25e29544350a
📒 Files selected for processing (27)
src/main/agent-hooks/managed-agent-hook-registry.tssrc/main/agent-hooks/remote-hook-service-installers.test.tssrc/main/agent-hooks/remote-managed-hook-installers.tssrc/main/agent-trust-presets.tssrc/main/ipc/agent-trust.tssrc/main/ipc/worktree-remote.tssrc/main/qoder/hook-service.test.tssrc/main/qoder/hook-service.tssrc/main/remote-agent-trust-presets.tssrc/main/runtime/orca-runtime.tssrc/preload/api/agent-status-api.tssrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-status.tssrc/shared/agent-hook-listener.tssrc/shared/agent-hook-relay.tssrc/shared/agent-hook-types.tssrc/shared/agent-kind.tssrc/shared/agent-process-recognition.tssrc/shared/agent-session-resume.tssrc/shared/agent-type-label.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-events.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-permissions.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
@coderabbitai review |
|
|
@coderabbitai summary |
✅ Action performedSummary regeneration triggered. |
All 7 CodeRabbit issues addressed (commit 0d8c2f7)
Verification
|
`spawnLocalStartupAndSetupTerminals` in ipc/worktree-remote.ts had its own per-preset chain with cursor/copilot/codex arms and no default, so a preset added later — `claude` — resolved from TUI_AGENT_CONFIG, matched nothing, and silently wrote no trust artifact on that launch path. The `satisfies Record<AgentTrustPreset, …>` guard added earlier cannot catch this: it proves the map is complete, not that no hand-rolled chain exists elsewhere. Found while reading stablyai#15291, which adds a `qoder` arm to this same chain. Also awaits the write. The old chain called `markCodexProjectTrusted` without awaiting inside a sync `if`, so `runtime.createTerminal` immediately below could boot the agent before trust landed — the same race fixed in the IPC handler earlier in this branch. Exhaustively checked for other chains: the six renderer call sites all go through the IPC bridge, `runtime-worktree-agent-startup` has the two already consolidated, and the direct `markCodexProjectTrusted` calls in codex-launch-preparation.ts and codex-session-resume-launch.ts are Codex-specific launch paths that never read `preflightTrust`. This was the last one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Edited: I originally framed this around a merge-order overlap with #18084. That PR is now closed, so the overlap is moot — but one finding in it is still worth passing on, and it is about a file this PR touches. You add a
Note there are three separate hand-rolled preset chains in the tree (this one, Separately, and only in case it has not come up: #8611 adds the same agent ( Apologies for the churn on the original version of this comment. |
|
Not merged yet? |
|
Cross-reviewed this proposal while consolidating Qoder support in #23581. The consolidated change adapts versioned executable recognition, trust preflight wiring, skills mapping and resume. With installed Qoder 1.1.64, a workspace Your contribution is credited with a |
feat: add first-class Qoder CLI support Integrate Qoder launch, identity, canonical hook status, trust and resume. Verify with captured Qoder 1.1.64 transcripts and hidden Electron sidebar checks. Builds on and cross-reviews #7502, #8611, #9655, #12910, #13311 and #15291. Co-authored-by: dalveytech-vincent <[email protected]> Co-authored-by: Eridanus117 <[email protected]> Co-authored-by: xingqingzzp-gif <[email protected]> Co-authored-by: jyang2004 <[email protected]> Co-authored-by: yunqian <[email protected]> Co-authored-by: huzhening.hzn <[email protected]>
|
Superseded by merged #23581, which consolidates Qoder support with launch, canonical sidebar status, trust, and resume integration. Cross-reviewed this proposal and preserved its author in the squash commit co-author credits. Thank you for the contribution. Verification details and remaining live-Qoder limitations are documented in #23581. |
|
Thanks everyone for your help — I'd left this PR unattended for way too long and it got forgotten in a corner, but I'm glad it's been resolved. |
Summary
Add first-class support for Qoder CLI as an Orca
TuiAgent.What's included
Core agent support (
src/shared/)TuiAgentunion +TUI_AGENT_CONFIGwithqoderclidetection,--prompt-interactiveflag injection, and--permission-mode bypass_permissionsyolo flagqodercli-<version>)Trust preflight (
src/main/agent-trust-presets.ts).trustedmarker to skip its first-launch "Trust folder" menuHook integration for status tracking + session resume (
src/main/qoder/hook-service.ts— new)QoderHookServicewith Claude-compatible hook events (SessionStart, UserPromptSubmit, Stop, PreToolUse, PostToolUse, PostToolUseFailure)AgentHookSource+AgentHookTargetregistration; normalizer dispatch reuses the existing Claude normalizerResumableTuiAgent+ session extraction +--resumeargv constructionVerification
orca skills install --dry-runemits--agent qoder; real install writes to~/.qoder/skills/