Skip to content

feat(tui-agents): recognize qodercli as a TUI agent - #9655

Closed
xingqingzzp-gif wants to merge 1 commit into
stablyai:mainfrom
xingqingzzp-gif:feat/recognize-qodercli
Closed

xingqingzzp-gif wants to merge 1 commit into
stablyai:mainfrom
xingqingzzp-gif:feat/recognize-qodercli

Conversation

@xingqingzzp-gif

@xingqingzzp-gif xingqingzzp-gif commented Jul 21, 2026 •

Copy link
Copy Markdown

Summary

  • Qoder CLI (binary qodercli, https://docs.qoder.com) is a coding-agent CLI in the same category as Claude Code / Codex / Gemini CLI, but it was not in TUI_AGENT_CONFIG. Orca's foreground-process detection fell back to the closest heuristic match, so a running qodercli tab was mislabeled as Gemini CLI.
  • Add a minimal qoder TuiAgent entry (detectCmd/launchCmd/expectedProcess = qodercli), its telemetry AgentKind, and its plain-English display name (Qoder CLI).
  • Add a placeholder 64×64 qoder.png icon matching the size of existing agent icons. A proper product logo swap is welcome — kept as a separate concern.

Why minimal scope

Detection + launch + display name + telemetry kind is the smallest change that fixes the mislabeled tab. Two follow-up areas are intentionally left out of this PR so it can land independently:

  • Managed hook installation (AGENT_HOOK_TARGETS / AgentHookSource). Qoder CLI supports Claude-Code-style hooks (https://docs.qoder.com/en/cli/hooks), so Orca could install a managed hook script for live working/idle status. That touches managed-agent-hook-controls.ts and the installer; deserves its own PR.
  • agentDefaultArgs default. Belongs to the settings-schema PR.

Test plan

  • pnpm vitest run src/shared/agent-process-recognition.test.ts — 16/16 pass
  • pnpm vitest run src/shared/ — 2654/2654 pass (2 skipped pre-existing)
  • pnpm vitest run src/main/agent-hooks/ — 451/451 pass (3 skipped pre-existing)
  • pnpm run typecheck:node — clean
  • Launch Orca dev, run qodercli in a terminal tab, confirm the tab title shows "Qoder CLI" instead of "Gemini CLI"

Notes for maintainers

  • Icon: src/shared/agent-icons/qoder.png is a 64×64 placeholder (purple rounded square with a "Q"). Replace with the official Qoder logo when available.
  • promptInjectionMode: 'stdin-after-start' matches the conservative default used by ante/goose/amp/devin. If Qoder CLI later ships a documented --prefill-style flag, claude/openclaude are the precedent for switching to argv with draftPromptFlag.

ELI5

Qoder CLI was mislabeled as Gemini because it was not a known TUI agent. Orca recognizes qodercli as its own agent for detection, launch, and display name.

Qoder CLI (binary `qodercli`, https://docs.qoder.com) was not in
TUI_AGENT_CONFIG, so Orca's foreground-process detection could not
identify it and tab titles fell back to the closest heuristic match
(Gemini CLI in practice). Add a minimal `qoder` TuiAgent entry plus
its telemetry kind and display name so the process is recognized and
the terminal tab is labeled "Qoder CLI".

Scope is intentionally minimal: detection + launch + display name +
telemetry kind + placeholder icon. Managed hook installation and a
real product logo are left for follow-up PRs.

Co-authored-by: xingqingzzp-gif <xingqingzzp-gif@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 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: aa2d0613-9d1a-4695-a534-d50fb40184f4

📥 Commits

Reviewing files that changed from the base of the PR and between 8182141 and c87027a.

⛔ Files ignored due to path filters (1)
  • src/shared/agent-icons/qoder.png is excluded by !**/*.png
📒 Files selected for processing (5)
  • src/shared/agent-kind.ts
  • src/shared/telemetry-events.ts
  • src/shared/tui-agent-config.ts
  • src/shared/tui-agent-display-names.ts
  • src/shared/types.ts

📝 Walkthrough

Walkthrough

Adds qoder as a supported TUI agent. The change extends the shared agent type and telemetry validation, maps the agent to its telemetry kind, configures detection and launching through qodercli with stdin prompt injection, and adds the Qoder CLI display name.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary and testing, but it omits required Screenshots, AI Review Report, Security Audit, and Notes sections from the template. Add the missing template sections, including Screenshots, AI Review Report, Security Audit, and Notes, and fill them with concrete details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding Qoder CLI recognition as a TUI agent.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@AmethystLiang
AmethystLiang requested a review from OrcaWin July 22, 2026 17:04
@nwparker nwparker added the enhancement New feature or request label Jul 27, 2026
@houlemon0130

Copy link
Copy Markdown

As a daily Qoder CLI user, this fix would be great to see land — right now my qodercli tabs get mislabeled as Gemini CLI. The scope here mirrors #770 (GitHub Copilot CLI, also ~5 files) which was merged, so hopefully this is an easy review. Thanks for the contribution!

@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 covers the minimum registration proposed here and adds managed status hooks, the product icon, trust and resume. This proposal was cross-checked as the minimum support baseline.

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 <vincent@dalveytech.com>
Co-authored-by: Eridanus117 <45489268+Eridanus117@users.noreply.github.com>
Co-authored-by: xingqingzzp-gif <xingqingzzp-gif@users.noreply.github.com>
Co-authored-by: jyang2004 <jyang2004@users.noreply.github.com>
Co-authored-by: yunqian <yunqian@alibaba-inc.com>
Co-authored-by: huzhening.hzn <huzhening.hzn@alibaba-inc.com>
@nwparker

Copy link
Copy Markdown
Contributor

Superseded by merged #23581, which includes qodercli process recognition and Qoder identity, 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.

4 participants