Repository navigation
Conversation
|
Pullfrog stalled The agent stopped emitting events for 123s and was killed by the activity-timeout watchdog. The model produced no output at all before the stall — the request was sent but nothing came back. This is usually transient; re-running often succeeds.
|
Native Chat bracket-pasted a raw image path for every agent, but only agents with a verified image-paste gesture turn that into an attachment chip. `omp` is a Native-Chat-supported agent with no such gesture (it wraps Pi's TUI), so a dropped image reached it as a naked path the model reads as prose — exactly what native-chat-image-paste.ts says must not happen. The clipboard route already refused omp; the drop and file-picker routes did not. Add `attachmentForm` to the existing per-agent profile table and branch the existing attachment byte builder on it. Agents without a verified profile get the portable `@path` reference. `@path` is plain text rather than a self-delimiting frame, so every reference is space-separated, and a path holding CR/LF goes through buildNativeChatPasteBytes so a filename cannot submit the turn early.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 4cdf031bde4bb2a73cda6a9b92c6c791edde51c9 and e982fb4. 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughNative chat agent profiles now define attachment forms. Attachment builders produce either bracketed raw-path pastes or framed Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Agent-aware attachment formatting and fallback behavior are covered without an identified merge-blocking regression. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
4cdf031 to
e982fb4
Compare
|
Superseded by merged current-main replacement #21674, which covers desktop and mobile composer, drop, picker, and clipboard-accessory image attachment paths with green hosted RPC recording verification and cross-platform test proof. |

ELI5
Native Chat sends an image to an agent by pasting the file's path into its terminal. Some agents see that paste as an image attachment, others only see text — and for agents without a verified image-paste gesture the path arrived as a bare mention the model read as prose. This makes Orca pick the form each agent actually accepts.
What Changed
attachmentForm('image-paste' | 'file-reference') to the existing per-agent Native Chat profile table insrc/shared/native-chat-agent-profiles.ts, rather than introducing a second mapping.@pathreference. A reference is framed when the name would otherwise be interpreted as keystrokes (CR/LF would submit the turn early).native-chat-runtime-image-send.ts,use-native-chat-pty-composer-send.ts).claudeemits a bracketed frame whereompemits@path.Why
Native Chat reaches exactly
claude,openclaude,codex,grokandomp(src/shared/native-chat-agent-support.ts).ompis the one with no verified image-paste gesture — absent fromIMAGE_ATTACHMENT_AGENTS, because it wraps Pi's TUI (src/shared/tui-agent-config.ts).The clipboard route already refused
omp, but the drop and file-picker routes never consulted the agent, so a dropped image reached it as a naked path. Branching on the existing profile table fixes all of them without a new pipeline.Linked Issue
Fixes #20389
Visual Proof
N/A — this changes the PTY bytes written for an attachment, not any rendered UI. There is no visual or interaction change; what changes is which form an agent receives.
Testing
pnpm teston the native-chat, shared and terminal-pane suites touched here.pnpm tc:web,pnpm tc:node,pnpm run check:code-quality:changed.Platform notes: the change is platform-neutral byte construction — no new path handling, shortcuts, or platform branches. Not manually exercised on each OS for that reason.
Review: a six-reviewer pass (correctness, project standards, testing, maintainability, frontend-races, plus an independent cross-model adversarial review) found one real defect in this change — an unframed
@pathwrite let a CR/LF filename submit the turn early — which is fixed here and pinned with a regression test.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Opus 5), running as an Orca-supervised worker. Reviewed by the multi-reviewer pass described above, and independently verified by the coordinating agent, which re-ran the test and typecheck gates against this exact tree.
Review
Table-driven coverage per agent for the emitted bytes, plus a regression test for the CR/LF framing case. The
@pathfallback keeps the existing sanitisation so a pasted escape cannot reach the composer.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
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)