Repository navigation
Conversation
Qoder writes Claude-format JSONL transcripts and Claude-shaped hooks that report session_id and transcript_path, so both Qoder builds (qoder, qoder-cn) join the terminal-backed chat the way OpenClaude does: same decoder, same hook binding. Four Qoder-specific rules sit behind isQoderNativeChatAgent: - The id fallback searches ~/.qoder/projects or ~/.qoder-cn/projects only, never Claude's roots, so a shared session id cannot bind another CLI's transcript. - Qoder writes stop_reason: null on every mid-turn row, so its turn ends only at an explicit stop reason; Claude's missing-stop-reason backup would settle the spinner at the first thinking row. - Qoder rows carry readable thinking; a thinking-only row decodes as a reasoning row instead of answer prose. - On Esc, Qoder fires no hook and writes a bare "[Request interrupted by user]" row without interruptedMessageId; that row now ends the turn and renders as the interrupted status row. The full-transcript reader now picks its decoder through nativeChatLineDecoderForAgent, so full reads and the live tail share one agent-to-decoder rule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Independent confirmation from a different environment: Qoder CLI 1.1.89 on Linux x86_64. The three transcript rules this PR relies on all hold, and they are the two things I would have been most worried about before trusting a Qoder chat view.
|
ELI5
Qoder is one of the coding agents Orca can run, but until now it only ever showed up as a raw terminal. This lets a Qoder tab switch to Orca's chat view, the same way OpenClaude tabs already can, so you read Qoder's replies, tool steps and questions as a conversation.
What Changed
Before: a Qoder tab is terminal-only. "Continue in Chat UI" (⌘⇧J) is not offered.
After: "Continue in Chat UI" works for
qoderandqoder-cntabs. The chat shows Qoder's prompts, replies, tool calls and questions. Thinking appears as de-emphasized reasoning, and an interrupt leaves the "Conversation interrupted" row.Mechanism: Qoder writes Claude-format JSONL transcripts and Claude-shaped hooks that report
session_idandtranscript_path. So both Qoder builds join the terminal-backed chat the way OpenClaude does: they map to theclaudetranscript agent and bind through the same hook path. Four Qoder-specific rules sit behindisQoderNativeChatAgent:session-file-resolver.ts): the id fallback searches only~/.qoder/projectsor~/.qoder-cn/projects, never Claude's roots, so a shared id cannot bind another CLI's transcript. The hook'stranscript_pathstill wins, as for every agent.transcript-turn-lifecycle.ts): Qoder writesstop_reason: nullon every mid-turn row. Claude's backup rule ("no stop reason plus text means done") would settle the spinner at the first thinking row, so Qoder turns end only at an explicit stop reason.transcript-line-decoders-qoder.ts): Qoder rows carry readable thinking. A thinking-only row now decodes as areasoningrow instead of answer prose, matching how Codex, Grok and OpenCode thinking already renders.transcript-turn-markers.ts,transcript-line-decoders-qoder.ts): on Esc, Qoder fires no hook and writes a bare[Request interrupted by user]row withoutinterruptedMessageId. That row now ends the turn and renders the same status row as Claude's notice.There is also one small refactor: the full-transcript reader now picks its decoder through
nativeChatLineDecoderForAgent, so full reads and the live tail share one agent-to-decoder rule.Why
Linked Issue
Fixes #31787
Visual Proof
All shots use a throwaway demo folder and Qoder CLI 1.1.76 in isolated dev profiles. Before is
main; after is this PR plus #31794 and #31795.Before: right-clicking a Qoder terminal offers no "Continue in Chat UI".
After:
The same menu now offers "Continue in Chat UI ⌘⇧J".
A turn that read files and ran a command, folded into "Worked for 17s" above the answer.
The same turn expanded. Qoder's thinking shows as a Reasoning row.
Qoder's AskUserQuestion as a chat card.
Stop during
sleep 60. The turn ends with "Conversation interrupted", and the sidebar row is idle.Testing
Manual: macOS, Qoder CLI 1.1.75 and 1.1.76, in background dev builds driven over CDP. Covered:
Not tested:
--dangerously-skip-permissions.Automated (each of the following fails without the change):
session-file-resolver.test.ts: a Qoder id resolves under the Qoder root and never from a Claude root.transcript-turn-lifecycle.test.ts:transcript-reader.test.ts: the real Qoder fixture decodes its thinking as reasoning.transcript-interruption-message.test.ts: Qoder's notice becomes the interrupted status row, while a bare Claude row stays harness noise.native-chat-agent-profiles.test.ts: Qoder claims no slash commands, because its TUI runs them.Local runs:
pnpm tc: all four projects.oxlint,oxfmt --check,pnpm run check:code-quality:changed,pnpm run check:max-lines-ratchet.Vitest over
src/main/native-chat,src/shared/native-chat,src/renderer/src/components/native-chat,src/main/runtime/orchestrationandsrc/main/ai-vault: 1148 files passed.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Claude Opus 5.5) under my direction. I reviewed the diff, the live test runs and the screenshots.
Review
AI agent review of this change:
path.joinandhomedir().transcript_pathkeeps using the existing SSH and WSL transcript readers. The id fallback for Qoder searches only this host's Qoder root, with no WSL tier, so a guest's Qoder session is found through its hook path.isQoderNativeChatAgent. Claude, OpenClaude, Codex, Grok, OMP, OpenCode, OpenCode 2 and ZCode decode, resolve and end turns exactly as before. The reader refactor keeps the same agent-to-decoder mapping.Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)pnpm teston macOS hits only pre-existing environment failures, the same onmain. CI coverspnpm build.🤖 Generated with Claude Code