Repository navigation
feat: add first-class Qoder CLI support - #23581
Conversation
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]>
There was a problem hiding this comment.
Important
One structural gap to look at before merge: Qoder is never subscribed to PostCompact, and SessionStart with source: 'compact' is discarded, so a pane that is working when the user runs a manual /compact has no clearing signal — the exact case Claude's PostCompact registration exists for (STA-2915). Also one title-ordering issue where a DSH title can be read as Qoder.
Reviewed changes
- Agent registration — adds
qoder/qodercliacross the TUI catalog, prompt launch (--prompt-interactive), permission flags, mobile icon, skills key, and telemetry. - Managed hooks — a
ClaudeHookServiceinstance installs Claude-shaped hooks into~/.qoder/settings.jsonunder a newqodersource and event subset; Windows selects Qoder's documentedshell: 'powershell'. - Workspace trust — preflight writes
permissions.trustDirectorieslocally and on the SSH execution host, preserving user hooks/settings. - Status, title identity, readiness — structural Qoder title matchers disambiguate it from Gemini/DSH, and readiness requires the live composer because Qoder paints
Readyduring its trust dialog. - Session resume —
qodercli --resume, capability-gated byagent-session.qoder-resume.v1, plus captured PTY/hook fixtures and tests.
ℹ️ New agent is missing from the supported-agents docs and the never-translate list
Qoder ships as a first-class agent here but is absent from the surfaces that list every other agent. docs/site/content/docs/agents/supported.mdx has a row for each of Prime Agent, Muse, ZCode, DSH, etc., but no Qoder row; config/scripts/locale-translation-policy.mjs's NEVER_TRANSLATE_VALUES pins product names like Qwen Code but not Qoder CLI, so localized catalogs can machine-translate the brand. Since this PR also adds qoder to RESUMABLE_TUI_AGENTS, the resumable-agent lists in docs/site/content/docs/agents/hibernation.mdx:22 and docs/site/content/docs/agents/session-history.mdx:30 are now stale too.
Technical details
# Add Qoder to the supported-agent docs and the never-translate product-name list
## Affected sites
- docs/site/content/docs/agents/supported.mdx — no Qoder row in the table (every other shipped agent has one)
- config/scripts/locale-translation-policy.mjs — `NEVER_TRANSLATE_VALUES` lacks `Qoder CLI`
- docs/site/content/docs/agents/hibernation.mdx:22 — resumable-agent list omits Qoder
- docs/site/content/docs/agents/session-history.mdx:30 — session-scan agent list omits Qoder
## Required outcome
- A supported.mdx row describing Qoder (hooks, status, workspace trust, session history) with its docs link.
- `Qoder CLI` pinned in `NEVER_TRANSLATE_VALUES`, matching the other product names.
- Update the two agent lists now that Qoder is resumable and hook-tracked.
## Suggested approach (optional)
The en.json extraction already produced `qoder_label`, so following the existing entries in each file is mechanical.ℹ️ Nitpicks
QODER_HOOK_EVENTSomitsSubagentStart/SubagentStop, which Qoder documents. Claude registers them to keep child/subagent rows live in the sidebar, so Qoder subagents likely won't show. Intentional scope choice?
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (11)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThis change adds Qoder CLI as a TUI agent. It includes process detection, launch and resume handling, managed hooks, workspace trust updates, and terminal readiness checks. Qoder titles, labels, and icons are added across shared, renderer, and mobile code. The change also adds runtime fixtures, tests, and an integration reference. Priority: ➖ Normal Severity of issue fixed: Low Merge Risk: 🟡 Moderate · up to Qoder may be misidentified from terminal titles, trust an unintended directory, or fail to launch on a documented installation. Resolve or explicitly accept these risks before merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Qoder support can preapprove folders without checking that the requested folder belongs to the current workspace. Exploiting this requires access to the app’s exposed trust action; ordinary Qoder launches are not, by themselves, shown to be unsafe. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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: 5
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 2aa96b48-ad0f-43f0-936f-bf7d78bd1bea
⛔ Files ignored due to path filters (1)
src/shared/agent-icons/qoder.pngis excluded by!**/*.png
📒 Files selected for processing (68)
config/tsconfig.cli.jsondocs/reference/qoder-integration.mdmobile/src/components/mobile-agent-icon-assets.tsmobile/src/tasks/mobile-tui-agents.tssrc/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-hooks/server-retired-pane-new-turn.test.tssrc/main/agent-trust-presets.tssrc/main/claude/hook-script.tssrc/main/claude/hook-service.tssrc/main/claude/hook-settings.tssrc/main/ipc/agent-trust.tssrc/main/ipc/worktree-remote.tssrc/main/qoder/hook-service.test.tssrc/main/qoder/hook-service.tssrc/main/qoder/workspace-trust.tssrc/main/remote-agent-trust-presets.test.tssrc/main/remote-agent-trust-presets.tssrc/main/runtime/__fixtures__/qoder-no-account.meta.jsonsrc/main/runtime/__fixtures__/qoder-no-account.txtsrc/main/runtime/__fixtures__/qoder-ready.meta.jsonsrc/main/runtime/__fixtures__/qoder-ready.txtsrc/main/runtime/__fixtures__/qoder-trust-dialog.meta.jsonsrc/main/runtime/__fixtures__/qoder-trust-dialog.txtsrc/main/runtime/qoder-terminal-readiness.tssrc/main/runtime/qoder-transcripts.test.tssrc/main/runtime/runtime-worktree-agent-startup.tssrc/main/runtime/terminal-wait-detection.tssrc/main/runtime/tui-idle-evidence.tssrc/preload/api/agent-status-api.tssrc/preload/api/agent-trust-bridge.tssrc/renderer/src/components/terminal-pane/title-agent-identity.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-favicon-assets.tssrc/renderer/src/lib/agent-status.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.test.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.tssrc/shared/__fixtures__/qoder-no-account-hooks.jsonlsrc/shared/agent-headless-command.tssrc/shared/agent-hook-listener/provider-dispatch.tssrc/shared/agent-hook-listener/provider-event-routing.tssrc/shared/agent-hook-listener/providers/qoder-events.tssrc/shared/agent-hook-listener/source-routing.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-title-core.tssrc/shared/agent-title-decoration.test.tssrc/shared/agent-title-decoration.tssrc/shared/agent-title-identity.tssrc/shared/agent-title-status.tssrc/shared/agent-type-label.tssrc/shared/protocol-version.tssrc/shared/qoder-agent.test.tssrc/shared/qoder-headless-command.tssrc/shared/qoder-terminal-title.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-property-schemas.tssrc/shared/terminal-title-agent-type.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: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the prior pullfrog review at f2b5c1cc4b, landing in 0b5e73465e:
- Manual compaction now clears a Qoder pane —
QODER_HOOK_EVENTSregistersPostCompact, andreadQoderStatemaps onlytrigger: 'manual'to a session-boundarydone, leaving automatic compaction andSessionStart source: 'compact'non-clearing. This mirrors the reference Claude handling. - DSH titles can no longer be read as Qoder — the whale predicate moved to a new leaf module (
dsh-terminal-title.ts, re-exported fromagent-title-core.ts), andisQoderTerminalTitlenow returns false for whale-carrying titles, fixing the ordering gap at every call site (agent-title-status.ts,agent-title-identity.ts, etc.) rather than patching one. - Headless detection widened —
--acpand--delete-sessionare excluded from interactive Qoder recognition. - Regression tests added — manual vs automatic compaction, the pipe-containing DSH title, and the new headless flags; 31 focused tests pass.
Both prior actionable threads are addressed and resolved. The remaining prior informational finding (missing supported.mdx row / never-translate pin) is unchanged and tracked in the summary snapshot.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
CI found two newly covered transcript replay cases with an existing serializer limitation: after a shrink, the restored cursor is one column short. Verified against the serializer from the parent of the initial Qoder commit, with no byte-diff or regression verdicts. Commit edb7cb9 records the exact two-checkpoint count for each capture in the existing baseline; it does not alter the captures or serializer. All 31 transcript replay tests and the changed-code quality gate pass locally. Waiting for CI on this final test-only correction before merging. |
|
Also recovered the completed shard 1 log from the superseded run: its registry-coverage test needed Qoder in the command-builder matrix. Commit 811b884 adds local/remote Qoder commands across all three host platforms and recognizes the known PowerShell variables for its explicit Windows shell. All 79 hook-command/Qoder installer tests and the changed-code quality gate pass. Both CI findings were missing test coverage/baselines; production code is unchanged by these two follow-ups. |
|
The full eight-shard run completed and exposed two final integration gaps: fallback agent selection placed Qoder later than the desktop catalog, and the remote-service registry coverage test omitted Qoder. Fixed in 1fcc0f2; all 15 targeted selection/remote-registry tests and changed-code checks pass locally. The other six shards, both packaging jobs, all platform persistence/native checks, and end-to-end checks passed. Waiting for verification of the updated head. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the prior pullfrog review at 0b5e73465e, landing in 811b884f7f and 1fcc0f2a52:
- Aligned the auto-pick fallback order with the desktop catalog —
qodermoved ahead ofzcodeinTUI_AGENT_AUTO_PICK_ORDER, restoring the catalog-sync invariant asserted byquick-workspace-agent-selection.test.ts:11. - Extended the managed-hook command contract test — added the Qoder builder and a win32 PowerShell exemption for commands starting
$scriptPath = Join-Path, so the Qoder launcher no longer trips the bare-variable scanner. - Registered
qoderHookServicein the remote hook-service registry coverage test, closing the issue #7253 bug class for Qoder over SSH. - Baselined the two new Qoder fixtures (
qoder-no-account,qoder-ready) in the serializer replay known-failures map.
Both prior actionable threads (PostCompact registration and DSH-vs-Qoder title ordering) were resolved at 0b5e73465e.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Qoder (#23581) reuses the Claude settings writer for its own settings file, so it gets a fixed plan from its own events instead of Claude's version table: every Qoder event installed, nothing retired, statusLine left alone.
Our Qoder agent is reverted in favour of upstream's first-class support (stablyai#23581, stablyai#24616). The GitHub-caller terminal env moves to a subclass because orca-runtime-create-terminal.ts is now at the 300-line limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>

ELI5
Qoder now appears as Qoder throughout Orca. You can launch it from the agent picker, see its work and failures in the sidebar, and resume its sessions.
What Changed
Registers
qodercli, its versioned executable, icon, settings and mobile identity. Adds prompt launch, managed hooks with a Qoder-specific source, canonical status updates, workspace trust and session resume. Structural title matching prevents Qoder’s shared glyphs from being mistaken for Gemini. Readiness checks the actual composer because Qoder reports “Ready” even during its trust dialog.Why
Qoder previously lacked a complete integration and could appear as Gemini. This reuses the existing Claude-compatible installer and canonical hook store instead of adding parallel installers or status state. The installed Qoder 1.1.64 confirms
--prompt-interactive,.qoder/settings.jsonandpermissions.trustDirectories; a.trustedfile did not bypass its trust prompt. Windows explicitly selects Qoder’s documented PowerShell hook shell.Linked Issue
Fixes #7480. Fixes #12279.
Refs #16540 (Qoder half), #11556 and #12738 (international Qoder portion; Qwen/CN remain separate).
Visual Proof
Before: reporter’s Qoder/Gemini identity screenshot from #16540 (Orca 1.4.188 / Qoder 1.1.30):
After: this branch, Qoder 1.1.64. A real credit-limit failure appears in both the left-sidebar agent row/workspace card and tab, with Qoder identity:
Testing
macOS: hidden Electron, real New Tab launch, ready composer, harmless prompt, hook snapshot, session metadata and rendered sidebar/tab failure state. Folder workspace fixture was prepared through the app/store; its group parent path was corrected for sidebar eligibility. No agent status was injected into the renderer. A DOM observer recorded the prompt-row transition before failure.
Focused integration run: 138 passed, 5 platform-specific skips. Follow-up sidebar/decoration suites: 70 passed. Launch suite: 72 passed. These runs overlap. Captured startup, trust, unauthenticated and resume evidence is covered by regression tests; fixture privacy scans pass.
Node/CLI/web typechecks, changed-code quality gate, max-lines ratchet, localization catalogs/extraction and source whitespace checks pass (raw PTY captures intentionally retain CR/CRLF bytes). Direct repository scripts were used because the pinned pnpm shim failed to execute locally. Full lint/test/build are left to CI.
Limitations: account credits are exhausted, so successful model/tool execution and live permission dialogs were not verified. Permission/waiting/completion mappings have automated coverage. Windows/Linux/SSH configuration and compatibility paths were reviewed/tested, but not run live.
qoderclicnis not registered.Review
Cross-reviewed all six open proposals. Full comparison and observed contracts are in
docs/reference/qoder-integration.md..trustedwith observed settings trust and include failure/permission notifications.All six proposal authors are credited with
Co-authored-bytrailers using their public commit identities. Patches were adapted to current architecture rather than applied wholesale. Cross-review caught and fixed missing▲display-decoration cleanup. Automated review also led to DSH-title exclusion, manual PostCompact completion, and ACP/session-deletion exclusions in 0b5e734 (107 focused tests passed). The reviewer withdrew the broader title-provenance, executable-name and Qoder-only trust-authorization findings after inspecting the existing contracts. Prompt argv visibility remains the documented tradeoff of the existing native flag-based launch mode.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Hook events enter the execution host’s existing store; no reader-side cache or new polling. Remote trust uses the remote filesystem. Resume to older hosts is capability-gated. Existing user hooks/settings are preserved. Desktop/mobile identity is additive.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)