Repository navigation
Enable Claude plugin images and bounded terminal file transport - #28200
Conversation
|
Tested #28200 at Result: the image renders sharp in the transcript, scrolls with the text, no placeholder glyphs. On release 1.4.225 the same call shows empty boxes (with One note for anyone trying this with that plugin: it checks the terminal itself ( Thanks for the fix, looking forward to it shipping. |
Preserve the Claude file-image feature while basing its review on merged main.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
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 |
Remove duplicated mapping and keep the RPC method table within its existing line limit.
ELI5
Managed Claude terminals can display plugin images above the prompt, including images loaded from files. Workspace and floating terminals use the same bounded reader. #26031 is merged; this PR now targets main.
What Changed
Orca enables Claude's official image flag when inline images are enabled and the viewer supports it. Explicit and inherited flag overrides stay authoritative. Paired Electron clients advertise support through the existing capability handshake; older and mobile viewers retain alt text.
The existing image addon accepts Kitty
t=fthrough an optional reader callback and reuses its decoder. The callback resolves the terminal's owning runtime and reads only canonical workspace or host temporary paths, bounded to 2 MiB. It checks terminal incarnation and lifetime, refuses hard links and unsafe file types, and cancels stale work. WSL paths stay in the actual PTY distro; remote clients never fall back to their own filesystem.Floating terminals use the existing floating workspace ID and temporary roots without looking up a project. This fixes the reported
selector_not_foundwithout granting the home folder or working directory.Why
Claude does not automatically recognize Orca's terminal identity, and its Image file source needs transport absent from the parent. The official flag avoids pretending to be another terminal. A bounded callback reuses the existing parser, decoder and host reader. This adds no core or WebGL patch beyond #26031, and the floating correction adds no xterm patch at all.
Linked Issue
Fixes #25109
Completes the Claude file-backed paste case in #23615 when combined with #26031.
Visual Proof
Floating terminal before and after the file-ownership correction (earlier builds):
Earlier original-plugin workspace proof:
Testing
pnpm tc, changed-code quality and frozen installation pass on final head8b3e4f569b69, based on merged main26278b32ce84.8b3e4f569b69: all 10 real-Claude DOM/WebGL smoke cases pass (six public cases and four corrected-private-plugin workspace/floating flows).image-view-2.pngwhileimages/2.pngexists; Orca correctly returns ENOENT. A plugin SDK regression reproduces without Orca (19 pass / 1 fail). One line checking the converted file exists fixes the SDK suite (20/20) and a separate private-plugin DOM/WebGL run (20/20). This correction is proposed separately, not part of the Orca code or described as an unchanged-plugin pass. The first uninstrumented failure has no file-read capture.0; forcing unsupported file sources shows blank placeholders.2beff574; the restack to2655e660changed none of the feature files. Final8b3e4f56only moves identical viewer-context mapping into the existing builder, removes eight lines and passes the affected RPC contracts.Tests use isolated signed-out configuration, synthetic files and no model requests. Attachment automation uses bracketed paste of paths rather than changing the user's clipboard.
Review
The final lint correction reuses the existing argument builder for both worktree-create callers instead of repeating viewer-context mapping; the method table retains its 300-line limit. The refresh preserves main's typed runtime hierarchy, desktop/mobile launch split and account environment overlay. Two unrelated inherited CI/lint edits were removed. Both reporters' earlier parent retests pass 30/30 each; a contributor also reports 18/18 public real-Claude cases on the prior child. Those are historical external retests. The earlier native-chat typecheck blocker is fixed by current main.
The parent's later Windows ARM persistence job timed out in the test cleanup hook (
orcad-serve-parity.integration.test.ts:34) after the restart test body. That failed job is retained, with no baseline reproduction yet; it is not reported as green. No proven image-related production regression remains from this review. The paired-host foreground-input fixture fails after restart on both the feature and exact-parent control; image restoration after restart is unverified.Agent skill upstream boundary
Notes
Managed Claude mode is covered. Bare-shell Claude still needs
CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1. Files above 2 MiB,t=tdeletion,t=sshared memory and legacy direct SSH file images remain unsupported. Floating file reads permit host temporary roots only. Cold-remount/restart image restoration is not claimed. The external plugin must supply an existing file path.Checklist