Skip to content

feat(claude): add opt-in rich terminal output - #33131

Open
JhaceLam wants to merge 61 commits into
stablyai:mainfrom
JhaceLam:codex/claude-rich-output
Open

JhaceLam wants to merge 61 commits into
stablyai:mainfrom
JhaceLam:codex/claude-rich-output

Conversation

@JhaceLam

@JhaceLam JhaceLam commented Oct 24, 2026 •

Copy link
Copy Markdown

ELI5

Add a default-off Claude Rich Output switch for new Claude terminals: formatted Markdown, copyable tables/callouts/code cards, display formulas, supported Mermaid diagrams, local images and silent video previews. The native CLI keeps control of the conversation and tasks.

Media also requires Inline Images. With that setting off, ordinary text stays available.

What Changed

  • Bundle the MIT-licensed NeonCoat reply-markdown and reply-media modules at ed82d3a7c212d441962764f1d592589731b4bdbe, with pinned renderer dependencies.
  • Load them only for enabled new sessions, on the machine running Claude. Respect existing user/profile plugins and keep ordinary launches when resources or metadata are unavailable. Global Claude settings are unchanged.
  • Put a plain copy button in its own row above tables and all five GitHub alert callouts. Copy their Markdown, including links/alignment/alert markers; code cards keep copying code. Oversized tables retain the button above native rendering.
  • Preserve literal code and native reply content; bound media conversion, retries, resumed previews and private-cache reclamation. Restrict FFmpeg inputs to local files.
  • Prepare desktop/CLI/ORCAD assets explicitly, using a shared feature-owned build lock. Ordinary install/test/dev/typecheck preparation does not deploy optional media assets.

Updated SSH hosts resolve their own bundled modules. Older hosts and Windows-to-WSL launches retain ordinary rendering. Mobile/browser viewers use the execution host's launch and terminal graphics support.

Host startup reuses upstream local-spawn helpers and preserves WSL user-action, UNC and passive-restore gates. Feature-owned settings types compose separately from upstream launch-option lists. Plugin-discovery cancellation and normal-signal coverage lives in a feature-owned test file, allowing upstream to retire its old generic suite without losing those regressions.

Why

Opt-in presentation avoids a second chat/task layer and leaves existing sessions alone. Turning it off restores ordinary launches for new sessions. Plugins remain separate from Orca's generic terminal image implementation.

Linked Issue

Fixes #33125. Related PR #33120 handles generic terminal-image recovery for issue #33118; PR #33348 handles generic fixtures for issue #33345. Those implementations remain in their own PRs.

Visual Proof

N/A

This follow-up changes launch-settings type composition and test placement. Bundled renderer/test bytes are identical to public parent358; its291 renderer/plugin results are explicitly reused, with no new291-case run. The earlier-build screenshots below illustrate the settings flow and retain their historical attribution. No new native UI or OS clipboard check was performed.

Disabled by default

Enabled through the actual settings switch

Testing

Exact current head: 550d8588683d30d02105014e7bdfe4d03da4de8b. The three-file adaptation keeps the optional rich-output setting outside upstream's launch-option Pick and moves both original plugin-discovery cases, with complete case bodies preserved. The old generic test path is restored to exact merge-base bytes, so upstream's deliberate deletion is respected in the merge result.

Fresh automated validation: macOS arm64, Node24.22.1 Result
Seventeen feature/packaging/launch/discovery files, explicit Node and default entry 149 passed per entry; no skips
Registered tui-agent-startup.test.ts entry, including launch-default suites 468 passed per entry; no skips
Full Orca typecheck; focused format/lint/changed-code quality Passed
Fresh CLI, ORCAD and Electron source builds Passed
Normal three-file hooks; exact tested bytes/public tree Passed and verified
Reused parent358 renderer/plugin evidence, identical resource/test bytes 291:143 Node /64 Markdown SDK /84 media SDK; not rerun

Both runtime entries have identical case identities and outcomes. Original test bodies, assertions, deadlines, retries, isolation and dependency inputs are retained. The production type adjustment emits identical runtime JavaScript before/after. No additional main history is imported.

The149-case steps completed in a retained run whose final inventory guard expected the imported .spec module as a separate result file. The registered entry was then run separately and passed468 per entry;149 was not rerun. Raw failed diagnostics and that inventory-guard report remain failed, while the combined current qualification independently verifies source preservation and complete accounting.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

This follow-up relocates two existing regression cases and adds no duplicate test bodies. Existing feature/launch coverage is reused; pnpm tc runs typechecks. Renderer/plugin checks can be reproduced with ORCA_BACKGROUND_LAUNCH=1 ORCA_PNPM_GLOBAL_VIRTUAL_STORE=0 pnpm test:claude-rich-output.

Platforms actually executed: macOS only. Native Windows, Linux, real SSH, native UI and OS clipboard testing remain unexecuted for this follow-up. Hosted CI still awaits maintainer authorization. Earlier broad related-test timeouts remain failed/partial; no full repository inventory or whole changed-gate pass is claimed.

All three current PR heads merge cleanly with actual main b69a5c6c7ee751bc923cb93b158ca4d8e864fe9d in read-only checks:13/101/30 paths, zero fixture/feature overlap. The merged source preserves upstream launch choices, Windows-shell handling and retired-suite deletion. Source builds validate this PR tree, whose main ancestor remains564; the newer-main merge result was not runtime-built.

Earlier-head evidence, retained failures and visual limits

Public parent582 separately passed291 renderer/plugin cases,92 related cases per entry and5 required checks for table/callout copy controls. Its new SDK regressions gave50 passed/14 failed before repair and64 passed afterward; SDK copy interception does not establish OS clipboard delivery.

Unpublished parent8336 separately passed136 related cases per entry,291 renderer/plugin cases, typecheck and source builds. Its two broad related attempts hit the unchanged30-minute limit, including after the matching Electron prerequisite was repaired. Both raw reports remain failed with partial/unknown accounting and no final report; no timeout cause or full-suite pass is claimed. Its merge hooks returnedzero while logging ignored documentation restaging errors; that raw warning is retained. The current three-file commit has separately passed normal hooks and focused checks.

At parent582, authoring checks against owned Claude2.1.312 declarations reproduced two existing type errors. The no-emit import setting and fixture tuple repair retained the first failed report; final checks ran fresh. Earlier parentaa40/6a renderer results and969 Settings captures retain their own SHA/runtime scopes.

Private D7 covers only image146/richA4/fixtures3b on main4cd; e36 only AEE9/4976/4c04. Earlier failed/partial/unknown reports remain retained, including the unexplained original09d copy mismatch. They do not establish later-head or native Windows/Linux coverage.

AI Disclosure

AI-assisted implementation and validation using OpenAI Codex, requested by the author.

Review

Current head: 550d8588683d30d02105014e7bdfe4d03da4de8b, normally/nonforce published and OPEN/Ready. Exact-head AI coverage is tracked separately from parent358/582 reviews, workflow authorization and human approval. Hosted checks run against the published commit; zero-job action_required records represent maintainer authorization. No non-author human maintainer approval has been received.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer code or data is copied.

Notes

Node24, librsvg and ffmpeg are execution-host prerequisites; PNG needs no converter. Pinned renderer libraries add about62 MiB unpacked, avoiding npm installs at launch. Missing tools expose errors/retry. The opaque dark palette supports NEONCOAT_MEDIA_THEME=light. Inline LaTeX and arbitrary HTML are outside scope. The hook API is experimental; arbitrary future breaking versions are not promised.

Checklist

  • Final behavior, mechanism, scope and motivation explained.
  • Focused regressions, static/build checks and normal hooks passed.
  • Cross-platform and remote compatibility limits reviewed.
  • Hosted CI authorization/execution and native Windows/Linux installer validation.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 563b7709-0eb0-4ea5-85c7-f65458e9e40e
Commits

Reviewing files that changed from the base of the PR and between 564d208 and 550d858.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 100
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/claude-rich-output-build-lock.mjs
  • config/scripts/claude-rich-output-build-test-fixture.mjs
  • config/scripts/claude-rich-output-bundle-snapshot.test.mjs
  • config/scripts/claude-rich-output-entrypoints.test.mjs
  • config/scripts/claude-rich-output-packaging.test.mjs
  • config/scripts/claude-rich-output-source-hash.mjs
  • config/scripts/claude-rich-output-source-hash.test.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • docs/reference/plugin-authoring.md
  • mobile/src/session/ai-vault-resume-launch.test.ts
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/diagrams.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register-append-latency.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-redraw.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-resume.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-zoom.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/local-media-protocols.test.mjs
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-png.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/png-cache-entry.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/process.test.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/video-poster.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/main/skills/claude-rich-output-plugin-discovery.test.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

Adds an opt-in, default-off Claude Rich Output setting for new Claude terminal sessions. The integration adds Markdown formatting and media previews for diagrams, formulas, local images, and video. Launch handling checks existing plugin installations and adds bundled plugin paths when applicable. Build and packaging scripts generate and validate rich-output assets, and Orcad artifact handling includes those assets. The change also adds tests for settings, launch behavior, rendering, caching, packaging, and artifact handling.

Merge Risk: Low · up to 550d8

The feature is opt-in and off by default, so ordinary Claude launches are unchanged. Remaining concerns are minor: a test that may not cover repeated enabling, a possible uncaught redraw failure, a small parsing performance cost, and a fixed build timeout that could fail slow builds. Merging is reasonable, with these items left for owner awareness or follow-up.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Out of Scope Changes check Warning The changes support [#33125] except for docs/reference/plugin-authoring.md. That file only changes publisher-table spacing and separator formatting. The summary provides no implementation or documen… Revert the unrelated docs/reference/plugin-authoring.md formatting change, or provide concrete evidence that it directly supports [#33125].
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: adding opt-in rich terminal output for Claude.
Description check Passed The description covers all required sections, explains the user-visible behavior and implementation, links issue #33125, documents visual proof, testing results and limits, discloses AI use, and recor…
Linked Issues check Passed Active direct issue [#33125] is the only coding target. The PR implements the default-off claudeRichOutput setting for new Claude sessions, launch gating, ordinary-launch fallbacks, Markdown and med…
Docstring Coverage Passed Docstring coverage is inconclusive: files from earlier reviews still need to be rechecked within the check's analysis limits. Not blocking.
Full details: Description check

Explanation

The description covers all required sections, explains the user-visible behavior and implementation, links issue #33125, documents visual proof, testing results and limits, discloses AI use, and records checklist status.

Full details: Linked Issues check

Explanation

Active direct issue [#33125] is the only coding target. The PR implements the default-off claudeRichOutput setting for new Claude sessions, launch gating, ordinary-launch fallbacks, Markdown and media rendering, formulas, diagrams, local media, host-side module resolution, plugin conflict protection, session-scoped environment changes, WSL exclusion, bounded rendering, local-only FFmpeg handling, packaging, attribution, and automated tests. The summary states that global Claude settings remain unchanged and that generic image recovery remains separate.

Full details: Out of Scope Changes check

Explanation

The changes support [#33125] except for docs/reference/plugin-authoring.md. That file only changes publisher-table spacing and separator formatting. The summary provides no implementation or documentation dependency between this formatting change and Claude Rich Output.

Resolution

Revert the unrelated docs/reference/plugin-authoring.md formatting change, or provide concrete evidence that it directly supports [#33125].

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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

🧹 Nitpick comments: 1
tests/e2e/claude-rich-output-settings.spec.ts: 1

24-24: Trivial · Maintainability & Code Quality · Quick win

Assert the switch state in the DOM after enabling and reload.

The test checks aria-checked="false" before the click, but it does not assert the switch is checked after the click or after reload. The API assertions can pass while the rendered switch remains off. Reopen the terminal settings after reload and assert the switch with toBeChecked().

Suggested fix
     .screenshot({ path: testInfo.outputPath('rich-output-off.png'), animations: 'disabled' })
   await toggle.click()
+  await expect(toggle).toBeChecked()
   await expect
     .poll(async () => (await orcaPage.evaluate(() => window.api.settings.get())).claudeRichOutput)
     .toBe(true)
@@
   await orcaPage.reload()
   await waitForSessionReady(orcaPage)
+  await orcaPage.evaluate(() => {
+    const state = window.__store!.getState()
+    state.openSettingsTarget({ pane: 'terminal', repoId: null })
+    state.openSettingsPage()
+  })
+  await expect(toggle).toBeChecked()
   expect((await orcaPage.evaluate(() => window.api.settings.get())).claudeRichOutput).toBe(true)

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9337b6df-94e2-463c-b399-8e36cbc92f90
Commits

Reviewing files that changed from the base of the PR and between 3ae885b and d9f7cc2.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 64
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/host-env/assembly.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment thread src/main/claude/claude-rich-output.ts Resolved
@JhaceLam
JhaceLam marked this pull request as draft October 24, 2026 11:35
@JhaceLam

JhaceLam commented Oct 24, 2026 •

Copy link
Copy Markdown
Author

Current published head for #33131: 550d8588683d30d02105014e7bdfe4d03da4de8b (OPEN/Ready). The three-file compatibility adaptation preserves upstream launch options and deliberate generic-test retirement. Both original feature discovery cases retain their complete bodies in a feature-owned file. The type change emits identical runtime JavaScript; no added main history or dependency change.

Current qualification independently combines149 passed across17 focused files per explicit Node/default entry with468 passed in the registered launch entry per runtime, no skips; full typecheck, focused static checks, fresh CLI/ORCAD/Electron source builds and normal three-file hooks pass. Exact public tree/tested bytes are verified. Identical resource/test bytes reuse parent358's291 renderer/plugin evidence; no new291 run. The raw final-inventory guard failure is retained; the already completed149-case steps were reviewed and reused, while the proper registered entry ran separately.

Current heads are image146f572, rich550d858 and fixturesb3cbfd0. Literal actual main b69a5c6c7ee751bc923cb93b158ca4d8e864fe9d merges cleanly in read-only checks at13/101/30 paths with zero fixture/feature overlap. These source builds do not validate the newer-main merged runtime. Earlier8336 broad30-minute failures remain failed/partial; no full-inventory pass, new UI/OS clipboard or native Windows/Linux/SSH execution is claimed.

Hosted workflow authorization, strict exact-SHA full AI completion and actual non-author human maintainer approval remain separate. This updates the existing authorization request for material published evidence; no duplicate permission request or workflow bypass is added.

@JhaceLam
JhaceLam marked this pull request as ready for review October 24, 2026 13:22
@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

This PR is now ready for review. Please review the complete updated diff at current head 2a854d41e93508c855e6439dcbd2aab03daeca4b, including the execution-host plugin-conflict fix and corrected artifact-preflight fixture. The previous actionable finding has been addressed; validation limits remain documented in the PR description.

@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: 2

🧹 Nitpick comments: 1
src/main/claude/claude-rich-output.test.ts: 1

105-105: Trivial · Maintainability & Code Quality · Quick win

Exercise enabled-path re-application.

The first call consumes ORCA_CLAUDE_RICH_OUTPUT. The second call therefore runs the disabled cleanup path and does not test enabled re-application. Set the flag again before the second call and assert that userMarkdown remains and reply-media is added once.

Suggested fix
-    await applyClaudeRichOutputEnv(env, options, [root])
-    expect(env.CLAUDE_CODE_PLUGIN_DIRS).toBe(userMarkdown)
+    env.ORCA_CLAUDE_RICH_OUTPUT = '1'
+    await applyClaudeRichOutputEnv(env, options, [root])
+    expect(env.CLAUDE_CODE_PLUGIN_DIRS.split(delimiter)).toEqual([
+      userMarkdown,
+      join(root, 'reply-media')
+    ])

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a987400a-b9b7-4d43-9832-36beafd71425
Commits

Reviewing files that changed from the base of the PR and between d9f7cc2 and 2a854d4.

Files selected for processing: 10
  • resources/claude-rich-output/README.md
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • tests/e2e/claude-rich-output-settings.spec.ts
Files skipped from review as they are similar to previous changes: 1
  • resources/claude-rich-output/README.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment thread src/main/claude/claude-rich-output.ts Resolved
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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: 5

🧹 Nitpick comments: 1
resources/claude-rich-output/reply-media/hooks/blocks.ts: 1

70-71: Trivial · Functional Correctness · Heavy lift

BLOCK does not follow CommonMark fence rules. Nested or tilde fences can break pictures.

The regex treats every opener as exactly three backticks and closes on any line that is ``` plus whitespace. Three cases follow from this:

  • A four-backtick opener is closed by a three-backtick line inside it, as the ponytail comment admits.
  • The outer four-backtick close then becomes a new opener. It can pair with the next real fence and swallow a later mermaid or math block, so that block is never drawn.
  • ~~~ fences are not tracked. A ```mermaid example inside ~~~md is drawn as a picture. If reply-media sits above reply-markdown, the outer fence is split into two pieces.

Claude can easily write these forms when it explains Mermaid or LaTeX syntax. Replace the regex with a line scanner that uses the same closing rule as parse in reply-markdown/hooks/blocks.ts. A closing fence must use the same character, have at least the opener's length, and have only whitespace after it.

Based on learnings: "a closing fence must match CommonMark rules: same fence character as the opener, length >= opener's length, and only whitespace after the marker".

Source: Learnings


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 357aa62e-11f5-4a7e-ba5a-e973caa54b23
Commits

Reviewing files that changed from the base of the PR and between 3ae885b and 2a854d4.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 69
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai review

Please review the follow-up changes at current head 907072cd328b82f19079ed13d6866bc075cece02. The identified findings have been fixed with regressions and the targeted checks pass. The PR remains Ready for review, with full-repository validation limitations documented separately.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai review

Please review the test-fixture follow-up at 7e7780ae7d0b1d67b175d93813197c9e4938188f. Existing assertions and deadlines are unchanged: the fixtures now wait for editor readiness, resolve the public serve-sim export, and construct the same real Git history without repeated porcelain commit overhead. The 47 previously failing files pass together (538 assertions, no failures/skips); the complete Node run remains in progress and its environment is disclosed in the PR description.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the full current changeset at cf290ece60e38a1c881dfdfd217448ba75470230. The execution-host/rendering findings and the test-fixture identity follow-ups have been addressed. The caller-identity regression fails before and passes after; validation and the ongoing complete-suite limitations are recorded in the PR description. Please attach the review to this current head.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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: 2


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37568f22-ef8c-4337-90fc-24c4619d3047
Commits

Reviewing files that changed from the base of the PR and between 3ae885b and cf290ec.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 73
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • config/scripts/zcode-credential-workflow.test.mjs
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/emulator/serve-sim-kill-contract.test.ts
  • src/main/git/worktree-base-divergence-real-git.test.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsx
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

Comment thread src/shared/tui-agent-launch-defaults.ts Resolved
@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the complete current changeset at 7d9f9eac2930a5f42e623807c3d3f62f3fb2f85d. The latest actionable findings have been fixed with before/after regression evidence and their threads are resolved. Full typecheck, lint, changed-code quality, build and hidden Electron checks pass; complete repository runs are still in progress and explicitly disclosed in Testing. Please distinguish this full review from discussion-reply confirmations.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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: 3

🧹 Nitpick comments: 1
resources/claude-rich-output/reply-media/render/render.mjs: 1

184-186: Trivial · Performance & Scalability · Quick win

Check the PNG cache before loading the Mermaid renderer.

math.mjs calls cached(key) before it does any work. The direct-run branch of render.mjs does not. Every run loads beautiful-mermaid and runs rsvg-convert again, even when the PNG for that source already exists.

session.start redraws the last resumedReplies replies before the first prompt. The plugin.json description says a higher count starts slower. A cache hit skips the slowest part of that startup path.

Add a version tag to the key. The cache lives in the system temp directory and survives plugin updates. Without a tag, a changed renderer shows stale pictures. math.mjs already uses math-xml-v3 for this.

♻️ Proposed change
-  registerHooks({ load: withModelOrder })
-  const { renderMermaidSVG } = await import('beautiful-mermaid')
   // A `---` frontmatter block (config, title) is dropped: the colors are
   // THEME's, and beautiful-mermaid rejects a diagram that opens with one.
   const source = readFileSync(0, 'utf8').replace(/^---\n[\s\S]*?\n---\n/, '')
   // Named by theme and source, so a restyle never shows a picture drawn before it.
-  rasterize(flatten(renderMermaidSVG(source, THEME)), JSON.stringify(THEME) + source)
+  const key = JSON.stringify(['mermaid-v1', THEME]) + source
+  const previous = cached(key)
+  if (previous) {
+    console.log(JSON.stringify(previous))
+  } else {
+    registerHooks({ load: withModelOrder })
+    const { renderMermaidSVG } = await import('beautiful-mermaid')
+    rasterize(flatten(renderMermaidSVG(source, THEME)), key)
+  }

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9637c265-ae75-49c9-ac7a-69812e213880
Commits

Reviewing files that changed from the base of the PR and between 3ae885b and 7d9f9ea.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 77
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • config/scripts/zcode-credential-workflow.test.mjs
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/emulator/serve-sim-kill-contract.test.ts
  • src/main/git/worktree-base-divergence-real-git.test.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsx
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the entire current Ready PR at published head f308bd4277a1991bf02d41846f922b4691126961:100 current paths,99 eligible with the existing lockfile exclusion unchanged.

This eight-file follow-up fixes the independently reproduced cancelled/superseded-video race and shared generated-cache growth. Conditional final state writes and a post-await request check prevent stale timers. The existing private cache gains seven-day expiry and a512 MiB cleanup target, protecting current/recent entries during conversion/playback; temporary active overage is allowed. Usage tracking preserves PNG mtimes and failed-conversion cleanup.

Final exact-byte qualification passes92 related cases per Node/default entry,247 renderer/plugin cases (126 Node/42 Markdown SDK/79 media SDK), full static, fresh rich/CLI/ORCAD builds,5 required checks and normal hooks. Four actual SDK state-write delay cases and three actual filesystem counterexamples fail against unchanged208 and pass after repair. All original test bodies/assertions/deadlines and dependencies remain. Preliminary failed candidates are retained. No new Settings/Electron captures, newer-main runtime build, full inventory or native Windows/Linux execution is claimed. Parent208's finished command/99-path overview with blank formal review is separate from this new head; new-head completion is pending.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dee8c772-b2cf-476b-9f91-612553a04431
Commits

Reviewing files that changed from the base of the PR and between 2085788 and f308bd4.

Files selected for processing: 8
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
Files skipped from review as they are similar to previous changes: 1
  • resources/claude-rich-output/reply-media/README.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1bd50e3e-d89e-4788-8e41-f215759f7eab
Commits

Reviewing files that changed from the base of the PR and between f3adb8f and f308bd4.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 99
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/claude-rich-output-build-lock.mjs
  • config/scripts/claude-rich-output-build-test-fixture.mjs
  • config/scripts/claude-rich-output-bundle-snapshot.test.mjs
  • config/scripts/claude-rich-output-entrypoints.test.mjs
  • config/scripts/claude-rich-output-packaging.test.mjs
  • config/scripts/claude-rich-output-source-hash.mjs
  • config/scripts/claude-rich-output-source-hash.test.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • mobile/src/session/ai-vault-resume-launch.test.ts
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/diagrams.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register-append-latency.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-redraw.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-resume.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-zoom.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/local-media-protocols.test.mjs
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-png.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/png-cache-entry.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/process.test.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/video-poster.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the entire current Ready PR at published head b3b6a5f933bde1621526cb5a814b80d2d7ca6b30:100 current paths,99 eligible with the existing lockfile exclusion unchanged.

This twelve-file follow-up fixes three independently verified findings: cached-frame protection before old playback, abandoned root conversion outputs, and CJK bold after unmatched dollars using the parser's existing lookahead. Short reuse avoids another process and valid frames are not recut; the cache target still allows current/recent active overage.

Exact-byte qualification passes92 related cases per Node/default entry,261 renderer/plugin cases (135 Node/45 Markdown SDK/81 media SDK), full static/fresh rich-CLI-ORCAD builds,5 required checks and normal hooks. Thirteen new failing before controls on unchangedf308 cover the observed boundaries, plus one already-passing closed-formula preservation control. All original test bodies/assertions/deadlines and dependencies remain; raw preliminary short-replay regression is retained after product repair. Normal/nonforce publication is verified. Parentf308's completed6481173170/nonblank5690088655/all99 eligible result is separate from this head. No actual converter SIGKILL, new Settings capture, newer-main runtime build, inventory or native Windows/Linux execution is claimed.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a1d4eecf-ecba-4d14-8594-459b5d182ca7
Commits

Reviewing files that changed from the base of the PR and between f3adb8f and b3b6a5f.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 99
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/claude-rich-output-build-lock.mjs
  • config/scripts/claude-rich-output-build-test-fixture.mjs
  • config/scripts/claude-rich-output-bundle-snapshot.test.mjs
  • config/scripts/claude-rich-output-entrypoints.test.mjs
  • config/scripts/claude-rich-output-packaging.test.mjs
  • config/scripts/claude-rich-output-source-hash.mjs
  • config/scripts/claude-rich-output-source-hash.test.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • mobile/src/session/ai-vault-resume-launch.test.ts
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/diagrams.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register-append-latency.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-redraw.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-resume.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-zoom.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/local-media-protocols.test.mjs
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-png.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/png-cache-entry.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/process.test.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/video-poster.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review all current changes at verified public Ready head 6a85e60bee03fb6c071703bb82bc43042e8a0f43: 100 paths, 99 eligible with the existing lockfile exclusion unchanged.

The three-file follow-up makes inline deletion parsing share the existing formula-closer-before-fence scan. New Node/actual SDK regressions fail before repair; corrected recent SDK expectations retain literal-code checks and require styled prose on both sides. Exact-byte qualification passes 267 renderer/plugin cases, 92 related cases per Node/default entry, full typecheck, fresh rich/CLI/ORCAD builds, 5 required checks and normal hooks. Raw preliminary test-data typing failure remains retained; final full qualification repeated with unchanged inputs/expected values. Nonforce public tree is independently verified.

Parent b3 full99 completion is historical, not current-head coverage. No new Settings capture, converter SIGKILL, newer-main runtime build, full inventory or native Windows/Linux execution is claimed.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2fe21dd2-0521-4923-a77d-464f3ccf58bc
Commits

Reviewing files that changed from the base of the PR and between f3adb8f and 6a85e60.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 99
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/claude-rich-output-build-lock.mjs
  • config/scripts/claude-rich-output-build-test-fixture.mjs
  • config/scripts/claude-rich-output-bundle-snapshot.test.mjs
  • config/scripts/claude-rich-output-entrypoints.test.mjs
  • config/scripts/claude-rich-output-packaging.test.mjs
  • config/scripts/claude-rich-output-source-hash.mjs
  • config/scripts/claude-rich-output-source-hash.test.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • mobile/src/session/ai-vault-resume-launch.test.ts
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/diagrams.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register-append-latency.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-redraw.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-resume.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-zoom.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/local-media-protocols.test.mjs
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-png.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/png-cache-entry.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/process.test.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/video-poster.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review all current changes at verified public Ready head aa40e7e:100 paths,99 eligible with the existing lockfile exclusion unchanged.

Two existing fence predicates now reject backticks in opening info; Markdown also preserves whole-block callers. Three existing test files append regressions; original cases/assertions/deadlines and dependencies remain. Final parent controls fail3Node/1MarkdownSDK/3mediaSDK. Exact published bytes pass275 renderer/plugin cases (143Node/48MarkdownSDK/84mediaSDK),92 related per Node/default entry, full static/fresh rich-CLI-ORCAD builds,5 required checks/hooks. Raw initial4SDK regressions and a corrected new heading assumption are retained. A later count guard wrongly deduplicated128 case instances into126 names; separate multiplicity-aware review preserves the raw failure and reuses the exact successful275-case bytes, not a second execution.

Parent6a full99 completion is separate from this new head. No new Settings capture, newer-main runtime build, full repository inventory or native Windows/Linux execution is claimed.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the full current PR at exact public head 582b1720b351c3f5cbef31b073531b7533ab5bfa. The new follow-up adds the code-card-style copy control above tables and all five GitHub alert callouts, including oversized-table fallback. Six feature-owned files change from aa40; exact-head qualification and retained parent evidence are separated in the description.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 45d9c7ea-4c58-4f2c-9158-5e59ab84105e
Commits

Reviewing files that changed from the base of the PR and between f3adb8f and 582b172.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 99
  • config/electron-builder.config.cjs
  • config/scripts/build-claude-rich-output.mjs
  • config/scripts/build-orcad-template.mjs
  • config/scripts/build-orcad.mjs
  • config/scripts/check-test-file-runners.mjs
  • config/scripts/claude-rich-output-build-lock.mjs
  • config/scripts/claude-rich-output-build-test-fixture.mjs
  • config/scripts/claude-rich-output-bundle-snapshot.test.mjs
  • config/scripts/claude-rich-output-entrypoints.test.mjs
  • config/scripts/claude-rich-output-packaging.test.mjs
  • config/scripts/claude-rich-output-source-hash.mjs
  • config/scripts/claude-rich-output-source-hash.test.mjs
  • config/scripts/orcad-artifact-version.mjs
  • config/scripts/orcad-artifact-version.test.mjs
  • config/scripts/orcad-rich-output-bundle.mjs
  • config/scripts/orcad-template-test-fixture.mjs
  • config/scripts/test-claude-rich-output.mjs
  • config/scripts/verify-packaged-orcad-template.cjs
  • mobile/src/session/ai-vault-resume-launch.test.ts
  • package.json
  • pnpm-workspace.yaml
  • resources/claude-rich-output/LICENSE.neoncoat
  • resources/claude-rich-output/README.md
  • resources/claude-rich-output/package.json
  • resources/claude-rich-output/reply-markdown/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-markdown/.gitignore
  • resources/claude-rich-output/reply-markdown/README.md
  • resources/claude-rich-output/reply-markdown/hooks/blocks.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/blocks.ts
  • resources/claude-rich-output/reply-markdown/hooks/hooks.json
  • resources/claude-rich-output/reply-markdown/hooks/inline.test.mjs
  • resources/claude-rich-output/reply-markdown/hooks/inline.ts
  • resources/claude-rich-output/reply-markdown/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.test.ts
  • resources/claude-rich-output/reply-markdown/hooks/register.tsx
  • resources/claude-rich-output/reply-markdown/hooks/theme.ts
  • resources/claude-rich-output/reply-markdown/tsconfig.json
  • resources/claude-rich-output/reply-media/.claude-plugin/plugin.json
  • resources/claude-rich-output/reply-media/.gitignore
  • resources/claude-rich-output/reply-media/README.md
  • resources/claude-rich-output/reply-media/hooks/blocks.ts
  • resources/claude-rich-output/reply-media/hooks/diagrams.ts
  • resources/claude-rich-output/reply-media/hooks/hooks.json
  • resources/claude-rich-output/reply-media/hooks/register-append-latency.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-fences.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-redraw.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-resume.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-video-cache.test.ts
  • resources/claude-rich-output/reply-media/hooks/register-zoom.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.test.ts
  • resources/claude-rich-output/reply-media/hooks/register.tsx
  • resources/claude-rich-output/reply-media/hooks/render-process.ts
  • resources/claude-rich-output/reply-media/render/local-media-protocols.test.mjs
  • resources/claude-rich-output/reply-media/render/math.mjs
  • resources/claude-rich-output/reply-media/render/math.test.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.mjs
  • resources/claude-rich-output/reply-media/render/media-cache-directory.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/picture-png.test.mjs
  • resources/claude-rich-output/reply-media/render/picture.mjs
  • resources/claude-rich-output/reply-media/render/picture.test.mjs
  • resources/claude-rich-output/reply-media/render/png-cache-entry.mjs
  • resources/claude-rich-output/reply-media/render/process.mjs
  • resources/claude-rich-output/reply-media/render/process.test.mjs
  • resources/claude-rich-output/reply-media/render/render.mjs
  • resources/claude-rich-output/reply-media/render/render.test.mjs
  • resources/claude-rich-output/reply-media/render/video-cache.test.mjs
  • resources/claude-rich-output/reply-media/render/video-poster.test.mjs
  • resources/claude-rich-output/reply-media/render/video.mjs
  • resources/claude-rich-output/reply-media/render/video.test.mjs
  • resources/claude-rich-output/reply-media/tsconfig.json
  • resources/claude-rich-output/reply-media/types/index.ts
  • resources/claude-rich-output/reply-media/types/plugin.d.ts
  • src/main/claude/claude-rich-output-conflicts.test.ts
  • src/main/claude/claude-rich-output-conflicts.ts
  • src/main/claude/claude-rich-output.test.ts
  • src/main/claude/claude-rich-output.ts
  • src/main/ipc/pty/provider/local-configure.ts
  • src/main/ipc/pty/spawn-host-env.ts
  • src/main/orcad/orcad-artifact-identity.ts
  • src/main/orcad/orcad-artifact-materializer.test.ts
  • src/main/orcad/orcad-artifact-materializer.ts
  • src/main/orcad/orcad-artifact-preflight.test.ts
  • src/main/skills/claude-plugin-skill-sources.test.ts
  • src/main/skills/claude-plugin-skill-sources.ts
  • src/renderer/src/components/settings/TerminalRenderingSection.tsx
  • src/renderer/src/components/settings/setting-labels.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-launch-environment-updates.ts
  • src/shared/agent-launch-rich-output-environment.test.ts
  • src/shared/agent-startup-plan-inputs.ts
  • src/shared/claude-rich-output-artifacts.test.ts
  • src/shared/claude-rich-output-artifacts.ts
  • src/shared/claude-rich-output-settings.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-base.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/tui-agent-launch-defaults.ts
  • tests/e2e/claude-rich-output-settings.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

],
cwd: root,
stdio: 'inherit',
timeoutMs: 120_000

@coderabbitai coderabbitai Bot Oct 29, 2026 •

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.

Minor · Stability & Availability · Quick win

Supported by static analysis

Script executed:

sed -n 30,80p config/scripts/build-claude-rich-output.mjs
rg -n 'timeoutMs' config/scripts/build-orcad-template.mjs config/scripts/build-workspace-packages.mjs config/scripts/build-claude-rich-output.mjs

Repository: stablyai/orca

Length of output: 2169


Script executed:

set -o pipefail
printf '%s\n' '--- build-claude-rich-output.mjs ---'
nl -ba config/scripts/build-claude-rich-output.mjs | sed -n '1,150p'
printf '%s\n' '--- sibling timeout references ---'
rg -n -C 8 --glob '*.mjs' -e 'test-claude-rich-output' -e 'timeoutMs' config/scripts package.json
printf '%s\n' '--- package build script references ---'
rg -n -C 5 -F -- 'build:electron-vite' package.json config
printf '%s\n' '--- runProcess definition/imports ---'
rg -n -C 5 -e 'runProcess' config/scripts src/main package.json | head -240

Repository: stablyai/orca

Length of output: 45666


Script executed:

set -o pipefail
printf '%s\n' '--- package scripts ---'
nl -ba package.json | sed -n '150,215p'
printf '%s\n' '--- build caller references ---'
rg -n -F --glob 'package.json' -e 'build:electron-vite' -e 'build:claude-rich-output' .
rg -n -F --glob '*.mjs' -e 'build-claude-rich-output.mjs' -e 'build:electron-vite' config scripts 2>/dev/null || true
printf '%s\n' '--- sibling test script ---'
nl -ba config/scripts/test-claude-rich-output.mjs | sed -n '1,180p'
printf '%s\n' '--- process-host locations and timeout code ---'
rg -n -F --glob '*.{ts,mjs,js,json}' -e 'export function runProcess' -e 'export async function runProcess' -e 'timeoutMs' packages src node_modules 2>/dev/null | rg -m 160 'process-host|runProcess|timeoutMs'

Repository: stablyai/orca

Length of output: 31273


Script executed:

set -o pipefail
printf '%s\n' '--- runProcess timeout block ---'
nl -ba src/packages/process-host/src/run-process.ts | sed -n '35, seventy' 2>/dev/null || true
nl -ba src/packages/process-host/src/run-process.ts | sed -n '210,275p'
printf '%s\n' '--- rich-output package and workspace declarations ---'
rg -n -C 12 -F --glob 'package.json' -e '"@orca/claude-rich-output"' -e '"claude-rich-output"' -e '"@mathjax' -e '"mermaid"' .
printf '%s\n' '--- lockfile dependency entries ---'
rg -n -C 3 -F --glob 'pnpm-lock.yaml' -e '@mathjax' -e 'mermaid' -e 'claude-rich-output'
printf '%s\n' '--- tracked rich-output footprint ---'
git ls-files -s resources/claude-rich-output packages/claude-rich-output 2>/dev/null | head -200
du -sh resources/claude-rich-output packages/claude-rich-output 2>/dev/null || true

Repository: stablyai/orca

Length of output: 19071


Script executed:

nl -ba src/packages/process-host/src/run-process.ts | sed -n '90,145p'
nl -ba src/packages/process-host/src/run-process.ts | sed -n '273,315p'
nl -ba config/scripts/build-orcad-template.mjs | sed -n '68,88p'

Repository: stablyai/orca

Length of output: 5200


Remove the fixed timeout from the rich-output deployment.

build:electron-vite and build:electron-vite:parallel run this deployment before the Electron build. An installed pnpm store avoids registry downloads, but pnpm deploy --force still copies MathJax, Mermaid, and their transitive package files. A slow local filesystem or endpoint scanner can make that valid copy exceed 120 seconds. The terminated process then fails the existing result.code !== 0 check, so the whole desktop build fails instead of only disabling rich output.

The sibling build script already uses timeoutMs: null for long-running build work, and the rich-output test runner allows 180 seconds. Use the same unbounded build-step behavior here.

Proposed fix
--- "a/config/scripts/build-claude-rich-output.mjs"
+++ "b/config/scripts/build-claude-rich-output.mjs"
@@ -52,7 +52,7 @@
       ],
       cwd: root,
       stdio: 'inherit',
-      timeoutMs: 120_000
+      timeoutMs: null
     })
     assertLockHeld()
     if (result.code !== 0) {
Committable suggestion

IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
timeoutMs: 120_000
timeoutMs: null

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the deployment path and the process-host timeout handling. The 120-second limit is an actual finite deployment budget, and exceeding it deliberately fails the required asset build rather than packaging incomplete assets. Removing it or extending it would weaken the existing deadline, which this contribution must preserve. I have not reproduced a valid deployment exceeding that budget, and local passing builds would not establish a bound for slower Windows/Linux disks. I am retaining timeoutMs: 120_000 and leaving this portability tradeoff open for maintainer judgment; the current main-compatibility repair does not claim to fix it.

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.

@JhaceLam Understood. Retain timeoutMs: 120_000 to preserve the finite deployment budget.

My recommendation to remove the deadline was too strong without a reproduced valid deployment that exceeds it. The Windows/Linux portability concern remains unverified, not a confirmed defect. This tradeoff remains open for maintainer judgment; the main-compatibility repair does not address it.

You are interacting with an AI system.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review all current changes at verified public Ready head 358cb1371d1650af6ac8486c5767d6c92ea572f8: 101 diff paths, 100 eligible with the existing pnpm-lock.yaml exclusion unchanged.

The host integration reuses upstream local-spawn/WSL gates. A one-file feature-owned type-member relocation lets upstream settings retirement merge cleanly, with unchanged import/member sets, dependencies and renderer bytes. Exact current source passes 143 related cases across 15 files per explicit Node/default entry, 291 renderer/plugin cases, full typecheck, focused format/lint/code-quality checks, fresh rich-output/CLI/ORCAD/Electron source builds and normal hooks. Public tree and tested bytes are verified.

Earlier broad related attempts on unpublished8336 remain failed/partial at their original30-minute limits; the current focused evidence follows repository guidance and does not turn those reports into a full-inventory pass. Original test bodies, assertions, deadlines, retries and isolation remain. Parent582 full coverage remains separately attributed, and the existing120000ms deployment-timeout advisory is retained without removing the deadline.

All three current public heads have clean read-only actual-main merges and disjoint13/101/30 scopes. No newer-main runtime build, new native UI/OS clipboard or native Windows/Linux/SSH execution is claimed.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@JhaceLam

Copy link
Copy Markdown
Author

@coderabbitai full review

Please review the entire PR at verified published Ready head 550d8588683d30d02105014e7bdfe4d03da4de8b, all100 eligible paths with the existing ignored pnpm-lock.yaml recorded separately(total101). This three-file feature-owned adaptation preserves upstream launch options and its retired generic suite. Both original discovery cases retain their full bodies in a feature-owned file; optional rich-output settings now compose outside the upstream Pick. Current scoped evidence and reused identical-byte renderer evidence are separated in the description; finite deadlines are unchanged. Parent358 coverage is historical, not this head full completion.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Full review finished.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optional Claude terminal rich output with Markdown and media rendering

1 participant