Skip to content

feat: add first-class Qoder CLI support - #23581

Merged
nwparker merged 5 commits into
mainfrom
nwparker/qoder
Sep 28, 2026
Merged

nwparker merged 5 commits into
mainfrom
nwparker/qoder

Conversation

@nwparker

@nwparker nwparker commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​650 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​647
Prod 55 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​529 $\color{#cf222e}{\Huge{\mathbf{−}}}$​44 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​485

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.json and permissions.trustDirectories; a .trusted file 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):

Before: Qoder shown as Gemini

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:

After: Qoder sidebar and tab status

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

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. qoderclicn is not registered.

Review

Cross-reviewed all six open proposals. Full comparison and observed contracts are in docs/reference/qoder-integration.md.

PR Contribution / review result
#7502 @vincent-lxc Registration, identity and mobile groundwork; use structural titles and the current public permission flag.
#8611 @Eridanus117 Qoder hook source, notification/permission handling and resume; current CLI supports flag-based interactive prompts.
#9655 @xingqingzzp-gif Minimum registration coverage cross-check; use the product icon and complete status integration.
#12910 @jyang2004 Reuse compatible installer/event subsets and remote installation; correct path and source for 1.1.64.
#13311 @sorrycc Icon, structural titles, headless detection and display glyph cleanup; live WebGL rendering worked without an override.
#15291 @adlternative Versioned binary recognition, trust preflight, skills and resume; replace .trusted with observed settings trust and include failure/permission notifications.

All six proposal authors are credited with Co-authored-by trailers 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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/qodercli across the TUI catalog, prompt launch (--prompt-interactive), permission flags, mobile icon, skills key, and telemetry.
  • Managed hooks — a ClaudeHookService instance installs Claude-shaped hooks into ~/.qoder/settings.json under a new qoder source and event subset; Windows selects Qoder's documented shell: 'powershell'.
  • Workspace trust — preflight writes permissions.trustDirectories locally 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 Ready during its trust dialog.
  • Session resume — qodercli --resume, capability-gated by agent-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_EVENTS omits SubagentStart/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?

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment thread src/main/qoder/hook-service.ts Resolved
Comment thread src/shared/agent-title-status.ts Resolved
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 362884ab-6a09-405f-94e6-4a0af8be0c4e

📥 Commits

Reviewing files that changed from the base of the PR and between f2b5c1c and 1fcc0f2.

📒 Files selected for processing (11)
  • src/main/agent-hooks/managed-hook-command-contract.test.ts
  • src/main/agent-hooks/remote-hook-service-registry-coverage.test.ts
  • src/main/daemon/serialize-grid-transcript-replay.test.ts
  • src/main/qoder/hook-service.ts
  • src/shared/agent-hook-listener/providers/qoder-events.ts
  • src/shared/agent-title-core.ts
  • src/shared/dsh-terminal-title.ts
  • src/shared/qoder-agent.test.ts
  • src/shared/qoder-headless-command.ts
  • src/shared/qoder-terminal-title.ts
  • src/shared/tui-agent-selection.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

This 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 1fcc0

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 Review

Security architecture risk: 🟡 Moderate · up to 1fcc0

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

  • Medium · security · observed: The newly supported Qoder trust action can persist a caller-supplied local or remote folder as trusted without checking that it is an authorized workspace. A caller able to invoke the exposed trust action could preapprove a different folder for Qoder, subject to settings and remote-connection availability.
Security review details

Security Blast Radius

  • inferred — The incremental trust exposure is Qoder’s settings for the desktop user and, when an active remote connection is supplied, that remote user. The evidence does not establish access across unrelated connections or users.

Security Findings and Attack Paths

  • inferred — A caller with access to the exposed trust action can submit a Qoder preset, a nonempty folder path, and optionally an active connection ID. The main handler checks neither folder ownership nor its relationship to that connection before the Qoder writer persists trust. Access by untrusted content to that action was not established.

Trust Boundaries and Controls

  • observed — Normal preflight callers forward their selected workspace path. At the authority boundary, the handler accepts any nonempty path; filesystem canonicalization and configuration-shape checks do not verify workspace authorization.

Resilience and Maintainability Implications

  • inferred — The shared hook installer preserves unrelated settings in normal sequential operations, but script and settings writes are separate operations. That inherited lifecycle limitation does not, on the inspected evidence, establish a Qoder-specific security bypass.

Hardening Proposals

  • proposed — Authorize the requested folder against the active workspace and bind remote requests to the intended connection in the main trust handler, rather than relying on well-behaved callers or path canonicalization.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.95% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 38 functions across 55 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding first-class Qoder CLI support.
Description check ✅ Passed The description covers the required sections, including user impact, implementation details, rationale, linked issues, visual proof, testing, review notes, compatibility considerations, and checklist …
Linked Issues check ✅ Passed The PR meets both active linked issues. For [#7480], it adds Qoder title and icon mappings in the shared and renderer agent catalogs, bundles the Qoder favicon, and prevents Qoder titles from being cl…
Out of Scope Changes check ✅ Passed The changes stay within the linked Qoder CLI scope. Hook generalization, title detection refactoring, trust handling, runtime fixtures, documentation, and coverage support Qoder installation, launch, …
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 2aa96b48-ad0f-43f0-936f-bf7d78bd1bea

📥 Commits

Reviewing files that changed from the base of the PR and between a174a08 and f2b5c1c.

⛔ Files ignored due to path filters (1)
  • src/shared/agent-icons/qoder.png is excluded by !**/*.png
📒 Files selected for processing (68)
  • config/tsconfig.cli.json
  • docs/reference/qoder-integration.md
  • mobile/src/components/mobile-agent-icon-assets.ts
  • mobile/src/tasks/mobile-tui-agents.ts
  • src/main/agent-hooks/managed-agent-hook-registry.ts
  • src/main/agent-hooks/remote-hook-service-installers.test.ts
  • src/main/agent-hooks/remote-managed-hook-installers.ts
  • src/main/agent-hooks/server-retired-pane-new-turn.test.ts
  • src/main/agent-trust-presets.ts
  • src/main/claude/hook-script.ts
  • src/main/claude/hook-service.ts
  • src/main/claude/hook-settings.ts
  • src/main/ipc/agent-trust.ts
  • src/main/ipc/worktree-remote.ts
  • src/main/qoder/hook-service.test.ts
  • src/main/qoder/hook-service.ts
  • src/main/qoder/workspace-trust.ts
  • src/main/remote-agent-trust-presets.test.ts
  • src/main/remote-agent-trust-presets.ts
  • src/main/runtime/__fixtures__/qoder-no-account.meta.json
  • src/main/runtime/__fixtures__/qoder-no-account.txt
  • src/main/runtime/__fixtures__/qoder-ready.meta.json
  • src/main/runtime/__fixtures__/qoder-ready.txt
  • src/main/runtime/__fixtures__/qoder-trust-dialog.meta.json
  • src/main/runtime/__fixtures__/qoder-trust-dialog.txt
  • src/main/runtime/qoder-terminal-readiness.ts
  • src/main/runtime/qoder-transcripts.test.ts
  • src/main/runtime/runtime-worktree-agent-startup.ts
  • src/main/runtime/terminal-wait-detection.ts
  • src/main/runtime/tui-idle-evidence.ts
  • src/preload/api/agent-status-api.ts
  • src/preload/api/agent-trust-bridge.ts
  • src/renderer/src/components/terminal-pane/title-agent-identity.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-favicon-assets.ts
  • src/renderer/src/lib/agent-status.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.test.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.ts
  • src/shared/__fixtures__/qoder-no-account-hooks.jsonl
  • src/shared/agent-headless-command.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/qoder-events.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-relay.ts
  • src/shared/agent-hook-types.ts
  • src/shared/agent-kind.ts
  • src/shared/agent-process-recognition.ts
  • src/shared/agent-session-resume.ts
  • src/shared/agent-title-core.ts
  • src/shared/agent-title-decoration.test.ts
  • src/shared/agent-title-decoration.ts
  • src/shared/agent-title-identity.ts
  • src/shared/agent-title-status.ts
  • src/shared/agent-type-label.ts
  • src/shared/protocol-version.ts
  • src/shared/qoder-agent.test.ts
  • src/shared/qoder-headless-command.ts
  • src/shared/qoder-terminal-title.ts
  • src/shared/skills-cli-agent-keys.ts
  • src/shared/telemetry-property-schemas.ts
  • src/shared/terminal-title-agent-type.ts
  • src/shared/tui-agent-config.ts
  • src/shared/tui-agent-display-names.ts
  • src/shared/tui-agent-permissions.ts
  • src/shared/tui-agent-selection.ts
  • src/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.

Comment thread src/main/ipc/agent-trust.ts Resolved
Comment thread src/shared/qoder-headless-command.ts Resolved
Comment thread src/shared/qoder-terminal-title.ts Resolved
Comment thread src/shared/tui-agent-config.ts Resolved
Comment thread src/shared/tui-agent-config.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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_EVENTS registers PostCompact, and readQoderState maps only trigger: 'manual' to a session-boundary done, leaving automatic compaction and SessionStart 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 from agent-title-core.ts), and isQoderTerminalTitle now 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 — --acp and --delete-session are 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 — qoder moved ahead of zcode in TUI_AGENT_AUTO_PICK_ORDER, restoring the catalog-sync invariant asserted by quick-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 qoderHookService in 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 8b410b4 into main Sep 28, 2026
55 checks passed
brennanb2025 added a commit that referenced this pull request Sep 28, 2026
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.
eva2show added a commit to GL-Game-Group/gl-orca that referenced this pull request Oct 7, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: qoder cli [Feature]: add qoder agent icon show

1 participant