Skip to content

feat(agents): add Qoder CLI identity and icon support - #7502

Closed
vincent-lxc wants to merge 3 commits into
stablyai:mainfrom
vincent-lxc:feat/qoder-agent-icon
Closed

vincent-lxc wants to merge 3 commits into
stablyai:mainfrom
vincent-lxc:feat/qoder-agent-icon

Conversation

@vincent-lxc

@vincent-lxc vincent-lxc commented Jul 6, 2026 •

Copy link
Copy Markdown

Summary

Fixes #7480.

Qoder CLI (qodercli) was not registered as a first-class agent in Orca. When users ran Qoder in a terminal, tab badges and worktree agent rows could show the Gemini icon and label instead — Qoder shares Gemini-style OSC title glyphs (✦, ◇, etc.) but is a separate product.

This PR adds full qoder agent support:

  • Process recognition for the qodercli foreground binary
  • Agent catalog entry with Qoder favicon (qoder.com) and label
  • Title parsing that prefers Qoder identity before Gemini glyph heuristics
  • --yolo permission mode parity with Qoder's documented CLI flag
  • Mobile companion agent list parity

Screenshots

No visual change in static screenshots — the fix is visible when running qodercli in an Orca terminal: the tab icon and agent badge should show Qoder (qoder.com favicon) instead of Gemini.

Testing

  • pnpm exec oxlint on changed files
  • pnpm verify:localization-catalog
  • pnpm vitest run --config config/vitest.config.ts src/shared/agent-process-recognition.test.ts src/shared/terminal-title-agent-type.test.ts src/shared/agent-detection.test.ts
  • pnpm lint — full suite not run locally (Node v22 vs required v24)
  • pnpm typecheck — blocked locally by pre-existing upstream error in windows-hidden-console-children.test.ts on macOS
  • pnpm test — not run locally
  • pnpm build — not run locally
  • Added unit tests for qodercli process recognition and Qoder title → agent mapping

AI Review Report

Reviewed for:

  • Cross-platform: qodercli detection uses the same path-normalized process matching as other agents (works on macOS/Linux/Windows .exe paths).
  • SSH/remote: No new IPC or path assumptions; process/title identity follows existing terminal tab resolution.
  • Agent compatibility: Qoder is additive — no changes to existing agent configs.
  • Performance: No hot-path work added beyond existing title/process checks.
  • UI: Uses existing favicon-based AgentIcon path; i18n synced across en/es/ja/ko/zh.
  • Security: No new command execution surface; only recognition and display metadata.

Security Audit

No new security surface. Changes are limited to agent identity registration, title disambiguation, and catalog metadata. The --yolo flag is wired through the existing permission-mode system, same as other agents.

Notes

Extracted isGeminiTerminalTitle into src/shared/gemini-terminal-title.ts to keep agent-detection.ts under the max-lines lint budget while adding Qoder-before-Gemini disambiguation.

ELI5

Qoder CLI is recognized as its own agent instead of wrongly showing as Gemini. Correct icon, label, and title parsing for qodercli sessions.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 7a800b05-b7a2-4b9a-9e66-052bdd6079fa

📥 Commits

Reviewing files that changed from the base of the PR and between 058cfd4a7be29b79d35222e8a9d39ce6c26b80a0 and c635426.

📒 Files selected for processing (1)
  • mobile/src/tasks/mobile-tui-agents.ts
✅ Files skipped from review due to trivial changes (1)
  • mobile/src/tasks/mobile-tui-agents.ts

📝 Walkthrough

Walkthrough

This PR adds Qoder support across shared agent types, telemetry, detection, launch/config mappings, renderer catalog and status display, mobile TUI mappings, and localization files. It also extracts Gemini terminal-title detection into a separate module, adds Qoder-specific terminal/process recognition, and extends tests for the new agent paths.

Related PRs: None identified.

Suggested labels: enhancement, agent-support

Suggested reviewers: None specified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding Qoder CLI identity and icon support.
Description check ✅ Passed The description covers all required sections and includes testing, review, security, and platform notes.
Linked Issues check ✅ Passed The changes implement the requested Qoder agent icon/title support and stop Gemini misclassification for Qoder CLI.
Out of Scope Changes check ✅ Passed No clear out-of-scope changes stand out; the added mobile, i18n, telemetry, and parsing updates support Qoder agent integration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9d726f51-e6fe-4163-881d-2a227ee64ca5

📥 Commits

Reviewing files that changed from the base of the PR and between 638a8f7 and 67c6dab6e1fb3f2aea66afff7a92d15b9c94d3c0.

📒 Files selected for processing (22)
  • mobile/src/tasks/mobile-tui-agents.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-status.ts
  • src/shared/agent-detection.ts
  • src/shared/agent-kind.ts
  • src/shared/agent-name-token-match.ts
  • src/shared/agent-process-recognition.test.ts
  • src/shared/agent-status-types.ts
  • src/shared/gemini-terminal-title.ts
  • src/shared/telemetry-events.ts
  • src/shared/terminal-title-agent-type.test.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/types.ts

Comment thread src/shared/agent-detection.ts Resolved

@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.

🧹 Nitpick comments (1)
src/renderer/src/lib/use-tab-agent.test.ts (1)

118-130: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Test doesn't actually exercise Gemini-glyph vs Qoder title disambiguation.

Since hookAgent is null, resolveTabAgentFromSignals returns processAgent ('qoder') unconditionally per its priority chain focusedHookAgent ?? processAgent ?? titleAgent ?? activeLaunchAgent ?? fallbackHookAgent. titleAgent is never evaluated in this scenario, so the test would pass even if the new Gemini-exclusion/Qoder title-detection logic in gemini-terminal-title.ts were broken or missing entirely — it only re-verifies the pre-existing processAgent precedence, not the new title-parsing behavior this PR introduces.

Consider adding a companion case with processAgent: undefined/null and the same glyph title, asserting the result resolves to 'qoder' via title-only detection (and, ideally, a case confirming a bare Gemini glyph title without Qoder markers still resolves to 'gemini').


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: fd07b3ed-c23d-46ca-8a3e-dc584a2385ea

📥 Commits

Reviewing files that changed from the base of the PR and between 67c6dab6e1fb3f2aea66afff7a92d15b9c94d3c0 and 8345517979b8a59d8c5e0afe7be685d881c75168.

📒 Files selected for processing (1)
  • src/renderer/src/lib/use-tab-agent.test.ts

dalveytech-vincent added 3 commits July 8, 2026 13:41
Register qodercli as a first-class TuiAgent so tab badges, settings, and
mobile pickers show the Qoder icon instead of misidentifying it as Gemini.
Process recognition maps the qodercli foreground binary, and title parsing
prefers Qoder before Gemini-style OSC glyphs.

Fixes stablyai#7480
Locks in the stablyai#7480 fix path where qodercli foreground identity must win
over ◇/✦ titles that otherwise classify as Gemini.
Document Qoder-before-Gemini precedence in getAgentLabel and add
title-only tab-agent tests for qodercli markers vs bare Gemini glyphs.
@vincent-lxc
vincent-lxc force-pushed the feat/qoder-agent-icon branch from 058cfd4 to c635426 Compare July 8, 2026 05:42
@nwparker nwparker added the enhancement New feature or request label Jul 27, 2026
@houlemon0130

Copy link
Copy Markdown

Would love to see Qoder CLI recognized in Orca — thanks for pushing this forward!

@AmethystLiang

Copy link
Copy Markdown
Contributor

thanks for reporting. looking into it

@AmethystLiang

Copy link
Copy Markdown
Contributor

thanks for reporting. looking into it

@nwparker nwparker mentioned this pull request Sep 28, 2026
8 of 9 tasks
@nwparker

Copy link
Copy Markdown
Contributor

Cross-reviewed this proposal while consolidating Qoder support in #23581.

The consolidated change carries forward the registration, identity and mobile groundwork. It uses structural Qoder titles before Gemini matching and the currently documented permission flag.

Your contribution is credited with a Co-authored-by trailer in f2b5c1c and linked in the PR comparison table. Live macOS verification includes Qoder identity and the left-sidebar failure state; successful model/tool execution remains unverified because the available account has exhausted its credits.

nwparker added a commit that referenced this pull request Sep 28, 2026
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]>
@nwparker

Copy link
Copy Markdown
Contributor

Superseded by merged #23581, which includes Qoder identity/icon support plus 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.

@nwparker nwparker closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add qoder agent icon show

5 participants