Skip to content

feat(native-chat): add OMP RPC chat adapter - #18618

Closed
rhlsthrm wants to merge 6 commits into
stablyai:mainfrom
rhlsthrm:feat/omp-rpc-chat-adapter
Closed

rhlsthrm wants to merge 6 commits into
stablyai:mainfrom
rhlsthrm:feat/omp-rpc-chat-adapter

Conversation

@rhlsthrm

@rhlsthrm rhlsthrm commented Sep 4, 2026 •

Copy link
Copy Markdown

ELI5

An OMP pane in Orca normally runs as a terminal. This change lets Native Chat talk to OMP over OMP's structured JSONL RPC mode, keeping the same session when the user switches between Terminal and Chat. Orca takes exclusive ownership of the session before using RPC, streams structured turn data, and only hands the session back once the RPC owner is proven gone.

What Changed

  • Added the first built-in OMP RPC integration for Native Chat: process transport, protocol-v2 negotiation, frame validation and reassembly, command correlation, structured history, turn streaming, slash commands, extension UI, tool/advisor/subagent projection, and session lifecycle ownership.
  • Added exact OMP session identity resolution from terminal breadcrumbs via a daemon getSlavePath request, with a bounded fallback.
  • Added main/preload/IPC contracts for OMP RPC and OMP RPC Chat, including proof-gated Terminal ↔ Chat hand-back.
  • Added pane-anchored renderer ownership so Terminal ↔ Chat toggles keep the same pane and session while fencing stale generations.
  • Command output is stored raw and stripped of ANSI colour codes at the display boundary, so /usage renders readable text (see Why below).
  • Added regression coverage across the daemon, main process, preload, shared protocol, renderer state, transcript decoding, ownership, release, and hand-back paths.
  • Documented the parity contract and dependency follow-ups in docs/omp-rpc-chat-adapter-plan.md and docs/omp-rpc-dependency-followups.md.

Rebase note

The branch was transplanted onto ffff6eac as a single squashed commit, plus three small follow-up commits (the colour-code fix, the max-lines repair, and decoder coverage). Upstream had moved since the previous head, so the integration was re-ported into the current domain modules rather than restoring the older structure. Conflicts resolved by keeping the current upstream architecture:

  • NativeChatComposer.tsx — kept upstream's useNativeChatComposerCatalog (including its new sessionSkillNames) for the static catalog and layered the branch's useOmpRpcCommands / useOmpRpcProbeCwd over it. The branch's now-superseded useNativeChatComposerCommands wrapper was deleted.
  • worker-transcript-read.ts — upstream extracted the local read into worker-transcript-local-read.ts and added worker-transcript-remote-read.ts. Took upstream's structure and re-ported the branch's widened decoder contract (a decoder may return several messages for one transcript line) into both new readers.
  • use-native-chat-composer-send.ts — the branch had moved the structured-send call into this hub, so upstream's new draft composition guard was re-threaded through it. Without this the guard silently could not fire.
  • store/index.ts, en.json, NativeChatResolvedView.tsx — kept upstream's withDevelopmentStoreProbes, conversationCommand strings, and useNativeChatLinkActions respectively, with the branch's additions layered in.
  • terminal-pane-hook-order-parity.test.ts — hook order hash recomputed for the merged tree. Totals are unchanged (still 207 hooks, 8 useMemo); only the flattened order moved.

Why

OMP already exposes a structured RPC surface. Terminal scraping loses reasoning, tool lifecycle, subagent, extension-UI, and command data, and it cannot safely support two writers to one session. The ownership fence here gives Native Chat structured OMP fidelity while preventing the terminal PTY and the RPC child from writing the same session concurrently.

On the colour-code fix: /usage paints truecolour SGR sequences, and the raw bytes were reaching the chat as visible 38;2;… text. Stripping at ingest cannot work, because output arrives as a stream of command-output frames and one sequence can straddle two of them — on the partial accumulation ESC [, the generic two/three-byte escape pattern consumes the bare introducer and the next frame's parameter bytes are left behind as garbage. Reducer state and the marker cache therefore keep the raw capture, and both projections (the live overlay row and the pane-scoped command marker) strip when they render.

Linked Issue

Related to #10099.

#10099 asks for a versioned, provider-neutral structured-agent adapter contract. This PR does not implement that registry and does not generalize the existing Codex path. It is the first built-in OMP RPC integration: one concrete provider wired directly into Native Chat. It informs the later provider-neutral work but must not close #10099.

Visual Proof

Rendered Electron dev build driven over Playwright CDP at http://127.0.0.1:9333, isolated profile, ORCA_BACKGROUND_LAUNCH=1. main has no Chat view for an OMP pane at all, so the meaningful comparison is the same pane across Terminal and Chat.

Before — the OMP pane as a terminal (this is all main can do). A prompt sent in the TUI ran a real turn and set the tab breadcrumb.

OMP pane in Terminal view after a real turn, breadcrumb set

After — the same pane toggled to Chat. RPC ownership acquired, the terminal-created turn hydrated into the transcript, composer still enabled even though the acquire killed the pane's PTY.

OMP Native Chat showing the hydrated terminal-created exchange with an enabled composer

/usage rendered from the live command catalog — the colour-code fix. Complete output, no escape sequences, and no fabricated assistant turn.

/usage rendered in Native Chat as clean text with no ANSI escape sequences

After a full Terminal ↔ Chat round trip, all three exchanges plus the /usage row are retained in order on the same session.

OMP Native Chat after a Terminal round trip showing three exchanges and the usage row

The /usage screenshot is cropped above the account-identifier and quota rows; only the model list is shown.

Testing

Platform: macOS (Apple Silicon) only. Not exercised manually: Windows, Linux, SSH/remote panes, or mobile. RPC acquisition is deliberately limited to locally executed panes; SSH, WSL, and runtime-owned panes keep the terminal path.

Manual UAT — six checks, one clean cycle at this head

Rendered Electron dev build over Playwright CDP, isolated profile, a disposable scratch git repo (/private/tmp/orca-uat-repo-Qjho), real omp 18.1.13, real session 01a07b03-ea82-71c9-9fa2-2c2272b3a13b. A persistent in-page console.error/warn/error/unhandledrejection sink recorded zero errors for the entire cycle (one benign xterm.js: task queue exceeded allotted deadline by 31ms warning).

Throughout, RPC children were told apart by argv: omp --mode rpc --no-session is the pooled session-less probe; omp --mode rpc is the session-owning child.

  1. Terminal send creates the OMP session and breadcrumb. A pane launched through Orca's OMP agent path ran a real turn in the TUI (reply ORCAUAT). The tab breadcrumb became OMP - User requests specific text output - orca-uat-repo-Qjho, and the session JSONL appeared under ~/.omp/agent/sessions/--private-tmp-orca-uat-repo-Qjho--/.
  2. Toggle to Chat acquires RPC ownership and hydrates history. Ownership reached status: 'acquired', generation 1, with 301 commands published by the session. The pane's PTY was torn down (ptyId: null), the prior exchange rendered, and the composer stayed enabled (disabled=false) with no PTY behind it.
  3. RPC send transitions idle → working → idle. A store poller captured the complete transition; final assistantText was RPCSEND and it rendered in the transcript.
  4. /usage uses the live catalog and renders complete, colour-code-free output with no assistant turn. The session's published catalog contained usage. Reducer state held the raw 6,522-character capture with ESC bytes present, while the rendered text contained no ESC byte, no 38;2;, and no [0m — the display-boundary fix. commandInvokedAgent: false and the previous assistantText was unchanged, so no assistant turn was fabricated.
  5. Toggle to Terminal. Passed, with one correction to how this check was previously described. RPC ownership is deliberately retained across an ordinary Terminal ↔ Chat toggle so that toggling can never abort a live turn — see the Why (F9) rationale in use-omp-rpc-chat-pane-ownership.ts and the test holds the acquired session across a visibility toggle (view-away then back), which asserts release is not called and acquire runs exactly once. Observed accordingly: exactly one session-owning RPC child existed and it was the same PID before and after, no duplicate was spawned, and the terminal view exposes a Show chat view button so the pane is never a dead end. The release path that is specified — real unmount (pane/tab close) — was exercised separately: the ownership map cleared to {} and the session-owning child exited, leaving only the session-less probe. No session-owning RPC child survived.
  6. Toggle back to Chat and send again. viewMode: chat, ownership still acquired, a further send completed working → idle with assistantText: SECONDSEND, and all three exchanges plus the /usage row rendered in order — on the same single RPC child PID, with no re-spawn and no leak.

Automated verification at this head

The pnpm binary on this machine's PATH is an uninstalled placeholder that dies before running anything, so the canonical scripts were run through npx pnpm@12, which works.

  • pnpm typecheck (node + cli + web projects): pass, exit 0.
  • Focused suites over every changed test file (124 files): 1,586 passed, 3 skipped, 0 failed.
  • pnpm lint: pass, exit 0 end to end — default oxlint, the native and type-aware code-quality audits, check:reliability-gates (109 gates), check:max-lines-ratchet, check:ts-nocheck-ratchet, check:runtime-electron-ratchet, the bundled-skill and skill-manifest verifiers, and all four localization gates.
  • pnpm run check:code-quality:changed -- upstream/main: 0 new findings across all three scans (default, type-aware, React Doctor), 318 changed files.
  • git diff --check upstream/main...HEAD: no whitespace errors.
  • pnpm build: the TypeScript/Vite work succeeds — main, preload, and renderer all bundle (✓ built in 4.11s, out/renderer/** emitted). The run then fails in native/computer-use-macos, a Swift package this PR does not touch (no native/ or .swift file is in the diff), because this machine's Command Line Tools Swift 6.2.3 cannot compile against an SDK built with Swift 6.2. The same toolchain error appears when starting the dev app.

Note on CI coverage. This is a cross-repository (fork) PR, so this repo's own workflows — verify, typecheck, test, e2e, package and the rest — do not trigger for it; recently merged same-repo PRs show 24–26 check runs while this one shows only pullfrog. Nothing is queued or awaiting approval either. So the local results above are the only automated evidence available on this PR, and the native/computer-use-macos Swift build in particular is covered by neither. A maintainer re-running this from a branch in stablyai/orca (or enabling fork workflow runs) is what would exercise the real matrix. mergeStateStatus reads UNSTABLE for the same reason it does on merged PRs here — this repo posts no legacy commit-status contexts, so the combined status is always pending; it is not a failure signal.

Two honest notes:

  • oxfmt --check reports pre-existing formatting drift on 25 of this branch's files. It was deliberately not fixed: the repo has no format:check script and pnpm lint never invokes oxfmt, whereas formatting those files pushes three of them over their max-lines budgets — a check pnpm lint does run — which would then require splitting already-reviewed test files. Churning 25 reviewed files inside a rebase to satisfy a non-gating check was the worse trade.
  • One genuine max-lines regression was introduced by the rebase and fixed: merging both sides' imports pushed daemon-pty-router.ts to 301 counted lines. Fixed by collapsing one call's object argument, not by raising the budget.

Separately, a pre-existing upstream defect was found while adding the decoder coverage and deliberately left alone, since it is not this branch's: a forward readWorkerTranscript (an explicit offset) with a limit smaller than the remaining lines returns transcript_parse_failed. scanForwardPage's early return from inside its for await loop destroys the FileHandle read stream, closing the handle, so the following boundary-checkpoint reads throw file closed. Reproduced on pristine upstream/main with a plain codex decoder and no OMP involvement. The new tests therefore assert the multi-message decode on paths that work today.

  • I manually tested these changes locally
  • Automated tests added/updated — new coverage for the display-boundary colour-code fix (including a sequence split across two frames) and for the multi-message transcript decode in both of upstream's new worker-transcript readers

AI Disclosure

The implementation, the rebase onto current main, gate triage, and the CDP-driven UAT were performed with Claude Opus 5 via Claude Code, under human direction and review. A human owns the merge decision.

Review

Round-one CodeRabbit and Pullfrog feedback was addressed on the previous head, including the ready-frame coupling finding, with regression coverage and per-thread replies. That work is preserved in this transplant.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: the local-command allowlist is enforced in the main process before spawning. RPC acquisition is limited to panes this client executes, and session hand-back requires owner-exit proof.
  • Cross-platform: path parsing accepts both separators and the symlink identity test is skipped on Windows. Windows and Linux adapter execution remain unexercised manually.
  • Remote SSH / folder workspaces: an ssh:, WSL, or runtime-owned pane is classified non-local and refused RPC acquisition, preserving today's terminal behavior. Folder workspaces are handled explicitly in the runtime-context resolution.
  • Mobile: not exercised; this is a desktop pane integration.
  • Compatibility: the ready-frame framing envelope is adopted from the OMP server after protocol-v2 negotiation rather than pinned to one OMP release. With the feature flag off, the existing terminal path is unchanged.
  • Performance: pane listeners and render hooks are pinned by the TerminalPane ratchet tests; the merged tree holds the documented budget (207 hooks, 8 useMemo).

Checklist

  • This PR is small and focused — it is large (about 40k added lines, mostly tests and design documentation) but is one coherent integration; splitting it would leave an unsafe partial ownership path.
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass — lint, typecheck, and the focused suites all pass cleanly; build completes its TypeScript/Vite bundling but cannot finish the native/computer-use-macos Swift package on this machine's toolchain, as disclosed above. No native/ file is in this diff.

@greptile-apps

greptile-apps Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Too many files changed for review (328 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds a full JSONL RPC v2 client and IPC surface for OMP, replacing PTY-only interaction with a session-owning RPC client, chunk reassembly, frame validation/dispatch, and turn/session commands. It introduces a main-process ownership registry that hands sessions between PTY and RPC with kill-and-resume semantics, plus a probe pool and executable resolver for session-less catalog/local-command queries. On the renderer, a pure turn reducer projects RPC frames into overlay messages (assistant, reasoning, tool calls, subagent roster, advisor cards, recap), while pane-ownership hooks acquire/release sessions, handle hand-back after refused acquires, and route composer sends/commands. Pagination, history-merge, store slices, preload bridges, shared protocol types, and design documentation support the feature end to end.

Merge Risk: 🟡 Moderate · up to 11436

Several bounded but material lifecycle and command-routing defects remain, including probe processes potentially surviving shutdown and recovery tests not exercising their intended paths. These should be resolved before merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 37.40% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 123 functions across 51 files. (199 skipp… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The description links issue #10099 with Fixes #10099``, and the issue directly covers the structured agent adapter and OMP session ownership objectives.
Out of Scope Changes check ✅ Passed The implementation, tests, renderer changes, IPC layers, transcript updates, handback logic, and documentation all support the stated OMP RPC chat adapter objective. No unrelated feature area is evide…
Title check ✅ Passed The title clearly and concisely identifies the main change: adding an OMP RPC chat adapter for Native Chat.
Description check ✅ Passed The description includes all required sections, explains the scope and rationale, links issue #10099, provides visual proof, documents testing and limitations, and completes the disclosure and checkli…
Full details: Docstring Coverage

Explanation

Docstring coverage is 37.40% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 123 functions across 51 files. (199 skipped: 6 unsupported, 193 over the file limit.)

  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

🧹 Nitpick comments (3)
src/main/ipc/omp-rpc-probe-pool.ts (1)

196-205: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

dispose leaves an in-flight start able to register a new probe.

dispose clears probes, but it does not clear starting. A start(cwd) that is still pending resolves afterwards and runs probes.set(cwd, probe) in acquire, so a child spawned during teardown is registered with nobody left to dispose it. disposeOmpRpcProbes runs on will-quit, so this child can outlive the pool.

Mark the pool disposed and dispose any probe that resolves after that point.

src/main/ipc/omp-rpc.ts (1)

88-94: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Quit teardown cannot prove the probe children exited.

disposeOmpRpcProbes is synchronous, but the pool holds deferred clients whose dispose only schedules the real teardown (void resolved.then((client) => client.dispose()) at Line 140). On will-quit the app can reach exit before that continuation runs, so a probe child can outlive the app.

src/main/ipc/omp-rpc-chat.ts already solved this shape by exporting shutdownOmpRpcChatSessions() as an awaitable that src/main/index.ts joins into the will-quit barrier. Consider exposing probe teardown the same way instead of a fire-and-forget listener.

src/main/omp-rpc/omp-rpc-process-transport.ts (1)

81-87: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Bound a single stdout line with OMP_RPC_MAX_FRAME_BYTES.

stdoutBuffer grows until a newline arrives. A child that stops emitting newlines grows main-process memory without bound. OMP_RPC_MAX_FRAME_BYTES already declares the single-frame limit in omp-rpc-transport-limits.ts, but no line-length check applies it here. Fail the transport through handlers.onStreamError once the buffered line exceeds that limit.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: e56801d5-e482-44a3-a87e-432d089ee0f0

📥 Commits

Reviewing files that changed from the base of the PR and between 637dc30 and 03a654922c6164450b3456eaec2e571c4fae1f5a.

📒 Files selected for processing (237)
  • .gitignore
  • docs/omp-rpc-chat-adapter-plan.md
  • docs/omp-rpc-dependency-followups.md
  • src/main/index.ts
  • src/main/ipc/native-chat.test.ts
  • src/main/ipc/native-chat.ts
  • src/main/ipc/omp-rpc-chat.test.ts
  • src/main/ipc/omp-rpc-chat.ts
  • src/main/ipc/omp-rpc-executable-resolver.test.ts
  • src/main/ipc/omp-rpc-executable-resolver.ts
  • src/main/ipc/omp-rpc-probe-pool.test.ts
  • src/main/ipc/omp-rpc-probe-pool.ts
  • src/main/ipc/omp-rpc.test.ts
  • src/main/ipc/omp-rpc.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.test.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/native-chat/agent-session-journal/journal-legacy-import.ts
  • src/main/native-chat/omp-terminal-session-identity.test.ts
  • src/main/native-chat/omp-terminal-session-identity.ts
  • src/main/native-chat/transcript-incremental-reader.ts
  • src/main/native-chat/transcript-line-decoders-omp.ts
  • src/main/native-chat/transcript-line-decoders.omp.test.ts
  • src/main/native-chat/transcript-reader.test.ts
  • src/main/native-chat/transcript-reader.ts
  • src/main/native-chat/transcript-stream-lines.ts
  • src/main/native-chat/transcript-tail-reader.ts
  • src/main/native-chat/transcript-watch-engine.ts
  • src/main/native-chat/transcript-watch.ts
  • src/main/omp-rpc/fake-omp-rpc-child-script.mjs
  • src/main/omp-rpc/fake-omp-rpc-child.cmd
  • src/main/omp-rpc/fake-omp-rpc-child.ts
  • src/main/omp-rpc/omp-rpc-acquire-fatal-frame-gap.test.ts
  • src/main/omp-rpc/omp-rpc-chat-acquire-identity.test.ts
  • src/main/omp-rpc/omp-rpc-chat-failed-acquire.test.ts
  • src/main/omp-rpc/omp-rpc-chat-release-single-flight.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-registry.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-registry.ts
  • src/main/omp-rpc/omp-rpc-chat-session-retirement.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-shutdown.ts
  • src/main/omp-rpc/omp-rpc-chat-session.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session.ts
  • src/main/omp-rpc/omp-rpc-chat-shutdown-race.test.ts
  • src/main/omp-rpc/omp-rpc-chunk-reassembler.ts
  • src/main/omp-rpc/omp-rpc-client-event-fanout.ts
  • src/main/omp-rpc/omp-rpc-client-turn-events.test.ts
  • src/main/omp-rpc/omp-rpc-client.test.ts
  • src/main/omp-rpc/omp-rpc-client.ts
  • src/main/omp-rpc/omp-rpc-command-correlation.ts
  • src/main/omp-rpc/omp-rpc-frame-dispatch.ts
  • src/main/omp-rpc/omp-rpc-frame-validation.ts
  • src/main/omp-rpc/omp-rpc-history-decode.test.ts
  • src/main/omp-rpc/omp-rpc-history-decode.ts
  • src/main/omp-rpc/omp-rpc-history-page.test.ts
  • src/main/omp-rpc/omp-rpc-history-page.ts
  • src/main/omp-rpc/omp-rpc-live-recap-probe.test.ts
  • src/main/omp-rpc/omp-rpc-live.test.ts
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.test.ts
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.test.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.ts
  • src/main/omp-rpc/omp-rpc-process-exit.ts
  • src/main/omp-rpc/omp-rpc-process-transport.ts
  • src/main/omp-rpc/omp-rpc-pty-exit-verdict.ts
  • src/main/omp-rpc/omp-rpc-session-commands.ts
  • src/main/omp-rpc/omp-rpc-session-owner.test.ts
  • src/main/omp-rpc/omp-rpc-session-owner.ts
  • src/main/omp-rpc/omp-rpc-session-settle-and-exit-proof.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.test.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.ts
  • src/main/omp-rpc/omp-rpc-switched-session-claim.ts
  • src/main/omp-rpc/omp-rpc-tool-execution-frames.ts
  • src/main/omp-rpc/omp-rpc-transport-limits.ts
  • src/main/omp-rpc/omp-rpc-turn-commands.ts
  • src/main/pi/agent-status-extension-omp-session-start.test.ts
  • src/main/pi/agent-status-extension-source.test.ts
  • src/main/pi/agent-status-handler-source.ts
  • src/main/providers/local-pty-provider.ts
  • src/main/providers/pty-provider-contract.ts
  • src/main/runtime/orchestration/worker-transcript-read.ts
  • src/main/runtime/rpc/methods/native-chat.ts
  • src/preload/api-types.ts
  • src/preload/api/native-chat-api.ts
  • src/preload/api/omp-rpc-api.ts
  • src/preload/api/omp-rpc-chat-api.ts
  • src/preload/index.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.test.tsx
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-command-marker.ts
  • src/renderer/src/components/native-chat/native-chat-composer-autogrow.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-composition.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-target.test.ts
  • src/renderer/src/components/native-chat/native-chat-composer-target.ts
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.test.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.ts
  • src/renderer/src/components/native-chat/native-chat-incremental-assembler.test.ts
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.test.ts
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.ts
  • src/renderer/src/components/native-chat/native-chat-live-message-preparation.ts
  • src/renderer/src/components/native-chat/native-chat-message-grouping.test.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.test.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.test.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.ts
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.test.ts
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.ts
  • src/renderer/src/components/native-chat/native-chat-pending.ts
  • src/renderer/src/components/native-chat/native-chat-preassembled-session-parity.test.ts
  • src/renderer/src/components/native-chat/native-chat-record-order-hydration.test.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.test.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-contract.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.ts
  • src/renderer/src/components/native-chat/native-chat-stream-teardown.ts
  • src/renderer/src/components/native-chat/native-chat-transcript-read-phase.ts
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-marker-output.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-extension-ui-queue.ts
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.ts
  • src/renderer/src/components/native-chat/omp-rpc-hydrated-history-coverage.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.ts
  • src/renderer/src/components/native-chat/omp-rpc-overlay-retention.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-release-obligation.ts
  • src/renderer/src/components/native-chat/omp-rpc-picker-command-routing.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-session-config-projection.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.ts
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-command-side-channels.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-overlay.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-overlay.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-state.ts
  • src/renderer/src/components/native-chat/use-native-chat-assembled-messages.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-text-editing.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session-pagination.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.ts
  • src/renderer/src/components/native-chat/use-native-chat-pending-sends.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-pending-sends.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-command-dispatch.ts
  • src/renderer/src/components/native-chat/use-native-chat-retained-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.test.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-locality.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-release.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-send.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-send.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-commands.test.tsx
  • src/renderer/src/components/native-chat/use-omp-rpc-commands.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-hydrated-history.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-local-command-send.ts
  • src/renderer/src/components/terminal-pane/TerminalPane.tsx
  • src/renderer/src/components/terminal-pane/TerminalPaneOverlayLayer.tsx
  • src/renderer/src/components/terminal-pane/terminal-cold-park-exempt-flip.react185.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.test.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.ts
  • src/renderer/src/hooks/ipc-events/agent-status-event-applicator.ts
  • src/renderer/src/hooks/useIpcEvents-agent-status-batch-projection.test.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-failure-notice.test.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-failure-notice.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-ownership.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/terminal-layout-pty-clear.test.ts
  • src/renderer/src/store/terminals/terminal-actions.ts
  • src/renderer/src/store/terminals/terminal-layout-state.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/web/preload-api/web-native-chat-api.ts
  • src/renderer/src/web/web-preload-api-agent-providers.test.ts
  • src/shared/agent-hook-listener-pi-compatible.test.ts
  • src/shared/agent-hook-listener.ts
  • src/shared/agent-hook-listener/providers/pi-family-events.ts
  • src/shared/agent-session-host-authority.ts
  • src/shared/claimed-agent-pty-owner-snapshot.ts
  • src/shared/claimed-agent-pty-owner.ts
  • src/shared/claimed-agent-rpc-owner.ts
  • src/shared/native-chat-streaming.test.ts
  • src/shared/native-chat-streaming.ts
  • src/shared/native-chat-types.test.ts
  • src/shared/native-chat-types.ts
  • src/shared/omp-advisor-notes.test.ts
  • src/shared/omp-advisor-notes.ts
  • src/shared/omp-rpc-chat-ipc-contract.ts
  • src/shared/omp-rpc-ipc-contract.ts
  • src/shared/omp-rpc-protocol.ts
  • src/shared/omp-rpc-session-event-frames.ts
  • src/shared/omp-rpc-subagent-protocol.ts

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

Comment thread src/main/ipc/omp-rpc-probe-pool.ts Resolved

@pullfrog pullfrog 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.

ℹ️ One rough edge worth a look — nothing blocking.

Reviewed changes

  • OMP JSONL RPC wire contract and client — new src/shared/omp-rpc-protocol.ts plus a main-process OmpRpcClient (spawn, ready-frame validation, protocol-v2 negotiation, chunk reassembly, command correlation with response deadlines), with strict per-frame validation in omp-rpc-frame-validation.ts / omp-rpc-frame-dispatch.ts.
  • Proof-gated session ownership — OmpRpcSessionOwner + OmpRpcChatSessionRegistry hand a session between the pane's PTY and an omp --mode rpc child only on a proven exit, with fail-closed release, late-exit claim release, and a disposeAll joined into the will-quit teardown barrier.
  • IPC and preload surface — ompRpc:getCommands/runLocalCommand probe (allowlisted /usage), ompRpcChat:* acquire/release/send/abort/respond/subscribe, and a retained, lease-based hand-back push (omp-rpc-pane-handback-delivery.ts).
  • Renderer integration — omp-rpc-turn-reducer overlay, pane-anchored use-omp-rpc-chat-pane-ownership, slash-command routing, extension-UI cards, subagent roster, advisor cards, and hydrated-history merge into the transcript list.
  • Transcript decoder widening — the OMP reasoning-before-reply split across every read/tail/incremental/orchestration decode path, plus beforeOffset cursor pagination and hasMore provenance grading.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@pullfrog pullfrog 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.

✅ No new issues found in this delta — the prior wire-compatibility concern is addressed cleanly.

Reviewed changes

  • Decoupled the ready-frame framing envelope from Orca's constants — parseOmpRpcReadyFrame now validates only the shape of maxFrameBytes/maxReassembledFrameBytes (positive safe integers, reassembled ≥ frame), the chunk reassembler is constructed from the advertised envelope, and the transport's stdout line cap adopts ready.maxFrameBytes, so any OMP release negotiating protocol v2 is consumed instead of faulting.
  • Made the session-less probe pool's teardown provable — dispose() is now async and awaits each child's whenExited(), a disposed flag retires any spawn that resolves after teardown, and disposeOmpRpcProbes joins the will-quit barrier alongside shutdownOmpRpcChatSessions.
  • Serialized overlapping local-command runs per probe — a localCommandChain queues /usage runs so two panes' command_output frames can't cross-collect (those frames carry no request id).
  • Bounded a runaway stdout line and fixed multi-byte decoding — StringDecoder('utf8') stops a UTF-8 sequence straddling two data events from corrupting into U+FFFD, and a newline-less line past the cap faults through onLineOverflow instead of growing main-process memory unbounded.
  • Graded transcript pagination provenance — the tail reader now distinguishes "reached file start" from "window full" (hasMore), keeps a reasoning+reply record whole across page boundaries, and parses session ids off Windows paths whose parent dirs contain underscores.
  • Made claim release idempotent — a releasedSessions WeakSet lets a retry after a late-exit binding read as released rather than "claim changed", and buildOmpRpcResumeLaunch moved to its own module.
  • Hardened session-identity readback and composer send — a child switching to a session with no id is reported unreadable; pasted images block send until their save lands (hasPendingAttachment); tool stdout/error is no longer rendered as the streaming reply (previewIsToolOutput).
  • Split the preload surface and folded renderer store subscriptions — omp-rpc/omp-rpc-chat bridges extracted from index.ts; probe-cwd inputs and store actions folded into one useShallow subscription (listener budget 17→18).

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@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

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: faa1f8e8-60d0-47cf-97b1-563d61f41c3c

📥 Commits

Reviewing files that changed from the base of the PR and between 637dc30 and 1143621f0ae33d321ebf7e2f36cc2169dff6ac04.

📒 Files selected for processing (249)
  • .gitignore
  • docs/omp-rpc-chat-adapter-plan.md
  • docs/omp-rpc-dependency-followups.md
  • src/main/ipc/native-chat.test.ts
  • src/main/ipc/native-chat.ts
  • src/main/ipc/omp-rpc-chat.test.ts
  • src/main/ipc/omp-rpc-chat.ts
  • src/main/ipc/omp-rpc-executable-resolver.test.ts
  • src/main/ipc/omp-rpc-executable-resolver.ts
  • src/main/ipc/omp-rpc-probe-pool.test.ts
  • src/main/ipc/omp-rpc-probe-pool.ts
  • src/main/ipc/omp-rpc.test.ts
  • src/main/ipc/omp-rpc.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.test.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/native-chat/agent-session-journal/journal-legacy-import.ts
  • src/main/native-chat/omp-terminal-session-identity.test.ts
  • src/main/native-chat/omp-terminal-session-identity.ts
  • src/main/native-chat/transcript-incremental-reader.ts
  • src/main/native-chat/transcript-line-decoders-omp.ts
  • src/main/native-chat/transcript-line-decoders.omp.test.ts
  • src/main/native-chat/transcript-reader.test.ts
  • src/main/native-chat/transcript-reader.ts
  • src/main/native-chat/transcript-stream-lines.ts
  • src/main/native-chat/transcript-tail-reader.ts
  • src/main/native-chat/transcript-watch-engine.ts
  • src/main/native-chat/transcript-watch.ts
  • src/main/omp-rpc/fake-omp-rpc-child-script.mjs
  • src/main/omp-rpc/fake-omp-rpc-child.cmd
  • src/main/omp-rpc/fake-omp-rpc-child.ts
  • src/main/omp-rpc/omp-rpc-acquire-fatal-frame-gap.test.ts
  • src/main/omp-rpc/omp-rpc-chat-acquire-identity.test.ts
  • src/main/omp-rpc/omp-rpc-chat-failed-acquire.test.ts
  • src/main/omp-rpc/omp-rpc-chat-release-single-flight.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-registry.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-registry.ts
  • src/main/omp-rpc/omp-rpc-chat-session-retirement.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-shutdown.ts
  • src/main/omp-rpc/omp-rpc-chat-session.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session.ts
  • src/main/omp-rpc/omp-rpc-chat-shutdown-race.test.ts
  • src/main/omp-rpc/omp-rpc-chunk-reassembler.ts
  • src/main/omp-rpc/omp-rpc-client-event-fanout.ts
  • src/main/omp-rpc/omp-rpc-client-turn-events.test.ts
  • src/main/omp-rpc/omp-rpc-client.test.ts
  • src/main/omp-rpc/omp-rpc-client.ts
  • src/main/omp-rpc/omp-rpc-command-correlation.ts
  • src/main/omp-rpc/omp-rpc-frame-dispatch.ts
  • src/main/omp-rpc/omp-rpc-frame-validation.ts
  • src/main/omp-rpc/omp-rpc-history-decode.test.ts
  • src/main/omp-rpc/omp-rpc-history-decode.ts
  • src/main/omp-rpc/omp-rpc-history-page.test.ts
  • src/main/omp-rpc/omp-rpc-history-page.ts
  • src/main/omp-rpc/omp-rpc-live-recap-probe.test.ts
  • src/main/omp-rpc/omp-rpc-live.test.ts
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.test.ts
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.test.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.ts
  • src/main/omp-rpc/omp-rpc-process-exit.ts
  • src/main/omp-rpc/omp-rpc-process-transport.test.ts
  • src/main/omp-rpc/omp-rpc-process-transport.ts
  • src/main/omp-rpc/omp-rpc-pty-exit-verdict.ts
  • src/main/omp-rpc/omp-rpc-resume-launch.ts
  • src/main/omp-rpc/omp-rpc-session-commands.ts
  • src/main/omp-rpc/omp-rpc-session-owner.test.ts
  • src/main/omp-rpc/omp-rpc-session-owner.ts
  • src/main/omp-rpc/omp-rpc-session-settle-and-exit-proof.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.test.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.ts
  • src/main/omp-rpc/omp-rpc-switched-session-claim.ts
  • src/main/omp-rpc/omp-rpc-tool-execution-frames.ts
  • src/main/omp-rpc/omp-rpc-transport-limits.ts
  • src/main/omp-rpc/omp-rpc-turn-commands.ts
  • src/main/pi/agent-status-extension-omp-session-start.test.ts
  • src/main/pi/agent-status-extension-source.test.ts
  • src/main/pi/agent-status-handler-source.ts
  • src/main/providers/local-pty-provider.ts
  • src/main/providers/pty-provider-contract.ts
  • src/main/runtime/orchestration/worker-transcript-read.ts
  • src/main/runtime/rpc/methods/native-chat.ts
  • src/main/startup/main-process-quit.ts
  • src/preload/api-types.ts
  • src/preload/api/native-chat-api.ts
  • src/preload/api/native-chat-bridge.ts
  • src/preload/api/omp-rpc-api.ts
  • src/preload/api/omp-rpc-bridge.ts
  • src/preload/api/omp-rpc-chat-api.ts
  • src/preload/api/omp-rpc-chat-bridge.ts
  • src/preload/index.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.test.tsx
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/native-chat-command-marker.ts
  • src/renderer/src/components/native-chat/native-chat-composer-autogrow.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-composition.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-target.test.ts
  • src/renderer/src/components/native-chat/native-chat-composer-target.ts
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.test.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.ts
  • src/renderer/src/components/native-chat/native-chat-incremental-assembler.test.ts
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.test.ts
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.ts
  • src/renderer/src/components/native-chat/native-chat-live-message-preparation.ts
  • src/renderer/src/components/native-chat/native-chat-live-session-types.ts
  • src/renderer/src/components/native-chat/native-chat-message-grouping.test.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.test.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.test.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.ts
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.test.ts
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.ts
  • src/renderer/src/components/native-chat/native-chat-pending.ts
  • src/renderer/src/components/native-chat/native-chat-preassembled-session-parity.test.ts
  • src/renderer/src/components/native-chat/native-chat-record-order-hydration.test.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.test.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-contract.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.ts
  • src/renderer/src/components/native-chat/native-chat-stream-teardown.ts
  • src/renderer/src/components/native-chat/native-chat-transcript-read-phase.ts
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-marker-output.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-extension-ui-queue.ts
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.ts
  • src/renderer/src/components/native-chat/omp-rpc-hydrated-history-coverage.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.ts
  • src/renderer/src/components/native-chat/omp-rpc-overlay-retention.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-release-obligation.ts
  • src/renderer/src/components/native-chat/omp-rpc-picker-command-routing.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-session-config-projection.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.ts
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-command-side-channels.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-overlay.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-overlay.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-state.ts
  • src/renderer/src/components/native-chat/use-native-chat-assembled-messages.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-text-editing.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session-pagination.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.ts
  • src/renderer/src/components/native-chat/use-native-chat-pending-sends.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-pending-sends.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-command-dispatch.ts
  • src/renderer/src/components/native-chat/use-native-chat-retained-session.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.test.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-ownership-actions.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-locality.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-release.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-send.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-send.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-commands.test.tsx
  • src/renderer/src/components/native-chat/use-omp-rpc-commands.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-hydrated-history.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-local-command-send.ts
  • src/renderer/src/components/terminal-pane/TerminalPaneOverlayLayer.tsx
  • src/renderer/src/components/terminal-pane/terminal-cold-park-exempt-flip.react185.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-pane-hook-order-parity.test.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.test.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-store-subscription-budget.test.tsx
  • src/renderer/src/components/terminal-pane/use-terminal-pane-chat-state.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-projection.ts
  • src/renderer/src/hooks/ipc-events/agent-status-event-applicator.ts
  • src/renderer/src/hooks/useIpcEvents-agent-status-batch-projection.test.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-failure-notice.test.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-failure-notice.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-ownership.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/terminal-layout-pty-clear.test.ts
  • src/renderer/src/store/terminals/terminal-actions.ts
  • src/renderer/src/store/terminals/terminal-layout-state.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/web/preload-api/web-native-chat-api.ts
  • src/renderer/src/web/web-preload-api-agent-providers.test.ts
  • src/shared/agent-hook-listener-pi-compatible.test.ts
  • src/shared/agent-hook-listener.ts
  • src/shared/agent-hook-listener/providers/pi-family-events.ts
  • src/shared/agent-session-host-authority.ts
  • src/shared/claimed-agent-pty-owner-snapshot.ts
  • src/shared/claimed-agent-pty-owner.ts
  • src/shared/claimed-agent-rpc-owner.ts
  • src/shared/native-chat-streaming.test.ts
  • src/shared/native-chat-streaming.ts
  • src/shared/native-chat-types.test.ts
  • src/shared/native-chat-types.ts
  • src/shared/omp-advisor-notes.test.ts
  • src/shared/omp-advisor-notes.ts
  • src/shared/omp-rpc-chat-ipc-contract.ts
  • src/shared/omp-rpc-ipc-contract.ts
  • src/shared/omp-rpc-protocol.ts
  • src/shared/omp-rpc-session-event-frames.ts
  • src/shared/omp-rpc-subagent-protocol.ts
🚧 Files skipped from review as they are similar to previous changes (216)
  • src/renderer/src/components/native-chat/native-chat-composer-autogrow.test.tsx
  • src/renderer/src/store/types.ts
  • src/renderer/src/components/native-chat/native-chat-pending.ts
  • src/preload/api/omp-rpc-api.ts
  • src/main/native-chat/transcript-watch.ts
  • src/shared/claimed-agent-pty-owner-snapshot.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-local-command-send.ts
  • src/main/pi/agent-status-extension-source.test.ts
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/native-chat-stream-teardown.ts
  • src/renderer/src/hooks/ipc-events/agent-status-event-applicator.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.test.ts
  • src/main/pi/agent-status-extension-omp-session-start.test.ts
  • src/main/omp-rpc/omp-rpc-history-decode.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.ts
  • src/main/native-chat/agent-session-journal/journal-legacy-import.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.test.ts
  • src/shared/native-chat-types.test.ts
  • src/main/omp-rpc/omp-rpc-chat-session-shutdown.ts
  • src/renderer/src/components/native-chat/native-chat-effective-pty-id.test.ts
  • src/main/omp-rpc/omp-rpc-live-recap-probe.test.ts
  • src/main/omp-rpc/fake-omp-rpc-child.ts
  • src/main/omp-rpc/omp-rpc-history-page.test.ts
  • src/main/native-chat/transcript-reader.ts
  • src/main/providers/local-pty-provider.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.ts
  • src/main/native-chat/transcript-stream-lines.ts
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/components/terminal-pane/TerminalPaneOverlayLayer.tsx
  • src/renderer/src/components/native-chat/omp-rpc-command-marker-output.test.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.ts
  • src/preload/api/omp-rpc-chat-api.ts
  • src/shared/agent-hook-listener/providers/pi-family-events.ts
  • src/main/omp-rpc/omp-rpc-chat-session.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.ts
  • src/main/pi/agent-status-handler-source.ts
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-target.test.ts
  • src/shared/agent-session-host-authority.ts
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.ts
  • src/main/omp-rpc/omp-rpc-pty-exit-verdict.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.test.tsx
  • src/renderer/src/store/index.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.test.tsx
  • src/main/omp-rpc/omp-rpc-history-page.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-state.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.test.ts
  • src/main/ipc/omp-rpc-executable-resolver.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.ts
  • src/main/omp-rpc/omp-rpc-chat-release-single-flight.test.ts
  • .gitignore
  • src/renderer/src/components/native-chat/omp-rpc-pane-release-obligation.ts
  • src/shared/omp-rpc-ipc-contract.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-commands.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-picker-command-dispatch.ts
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.test.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.ts
  • src/main/omp-rpc/omp-rpc-acquire-fatal-frame-gap.test.ts
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/omp-rpc-pane-locality.test.ts
  • src/main/omp-rpc/omp-rpc-process-exit.ts
  • src/main/omp-rpc/omp-rpc-chat-acquire-identity.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-extension-ui-queue.ts
  • src/renderer/src/components/native-chat/use-omp-pane-session-identity.test.ts
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.test.tsx
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-transport.test.ts
  • src/renderer/src/components/native-chat/native-chat-record-order-hydration.test.ts
  • src/main/native-chat/transcript-line-decoders.omp.test.ts
  • src/main/omp-rpc/omp-rpc-session-settle-and-exit-proof.ts
  • src/main/omp-rpc/omp-rpc-session-owner.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-adoption.test.ts
  • src/main/omp-rpc/omp-rpc-frame-dispatch.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.test.ts
  • src/shared/omp-rpc-protocol.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.test.ts
  • src/main/omp-rpc/omp-rpc-chat-failed-acquire.test.ts
  • src/main/omp-rpc/omp-rpc-client-event-fanout.ts
  • src/main/omp-rpc/omp-rpc-chat-session-retirement.test.ts
  • src/main/omp-rpc/omp-rpc-client-turn-events.test.ts
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.test.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.test.ts
  • src/preload/api/native-chat-api.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-command-failure-notice.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.test.ts
  • src/renderer/src/components/native-chat/native-chat-incremental-assembler.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.test.ts
  • src/renderer/src/components/native-chat/NativeChatExtensionUiCard.tsx
  • src/main/omp-rpc/omp-rpc-transport-limits.ts
  • src/shared/claimed-agent-pty-owner.ts
  • src/renderer/src/hooks/useIpcEvents-agent-status-batch-projection.test.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.test.ts
  • src/main/omp-rpc/omp-rpc-history-decode.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-picker-command-routing.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-tool-block-projection.ts
  • src/renderer/src/store/terminals/terminal-actions.ts
  • src/main/omp-rpc/omp-rpc-chat-session.ts
  • src/renderer/src/store/slices/terminal-layout-pty-clear.test.ts
  • src/main/omp-rpc/omp-rpc-process-transport.ts
  • src/main/native-chat/transcript-watch-engine.ts
  • src/renderer/src/components/native-chat/native-chat-live-message-preparation.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-handback-listener.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-release.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.test.ts
  • src/main/omp-rpc/omp-rpc-command-correlation.ts
  • src/main/ipc/omp-rpc-executable-resolver.test.ts
  • src/main/omp-rpc/omp-rpc-switched-session-claim.ts
  • src/renderer/src/components/terminal-pane/terminal-cold-park-exempt-flip.react185.test.tsx
  • src/renderer/src/components/native-chat/native-chat-preassembled-session-parity.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-hydrated-history.ts
  • src/main/omp-rpc/omp-rpc-chat-shutdown-race.test.ts
  • src/renderer/src/components/native-chat/NativeChatComposerActions.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-hydrated-history-coverage.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.ts
  • src/main/omp-rpc/omp-rpc-pane-release-handback.test.ts
  • src/main/providers/pty-provider-contract.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.ts
  • src/renderer/src/components/native-chat/use-native-chat-assembled-messages.ts
  • src/main/omp-rpc/omp-rpc-tool-execution-frames.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-contract.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts
  • src/renderer/src/components/native-chat/native-chat-rpc-history-merge.test.ts
  • src/main/omp-rpc/omp-rpc-session-commands.ts
  • src/renderer/src/store/terminals/terminal-layout-state.ts
  • src/renderer/src/components/native-chat/use-native-chat-retained-session.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.test.ts
  • src/shared/omp-advisor-notes.test.ts
  • src/main/native-chat/transcript-incremental-reader.ts
  • src/renderer/src/components/native-chat/omp-rpc-chat-handback.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-send.test.tsx
  • src/main/runtime/orchestration/worker-transcript-read.ts
  • src/renderer/src/components/native-chat/native-chat-message-grouping.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-command-catalog.ts
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/main/ipc/native-chat.ts
  • src/preload/api-types.ts
  • src/renderer/src/components/native-chat/omp-rpc-overlay-retention.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-owner.ts
  • src/shared/native-chat-types.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-command-side-channels.test.ts
  • src/main/omp-rpc/omp-rpc-subagent-frames.ts
  • src/main/omp-rpc/omp-rpc-live.test.ts
  • src/main/native-chat/transcript-line-decoders-omp.ts
  • src/renderer/src/web/web-preload-api-agent-providers.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.ts
  • src/renderer/src/web/preload-api/web-native-chat-api.ts
  • src/main/ipc/omp-rpc-chat.ts
  • src/shared/agent-hook-listener.ts
  • src/renderer/src/store/slices/omp-rpc-chat-pane-ownership.ts
  • src/main/ipc/omp-rpc-probe-pool.test.ts
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/main/ipc/omp-rpc.ts
  • src/main/ipc/omp-rpc-chat.test.ts
  • src/renderer/src/i18n/locales/en.json
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.test.ts
  • src/main/omp-rpc/omp-rpc-frame-validation.ts
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.test.tsx
  • src/main/omp-rpc/omp-rpc-chat-session-registry.ts
  • src/renderer/src/components/native-chat/native-chat-composer-composition.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-session-config-projection.ts
  • src/shared/agent-hook-listener-pi-compatible.test.ts
  • src/shared/claimed-agent-rpc-owner.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.ts
  • src/renderer/src/components/native-chat/omp-rpc-local-command-route.ts
  • src/renderer/src/components/native-chat/use-native-chat-omp-rpc-integration.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-subagent-roster.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session-pagination.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.test.ts
  • src/shared/omp-rpc-subagent-protocol.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/store/slices/omp-rpc-chat-pane-failure-notice.test.ts
  • src/shared/omp-rpc-session-event-frames.ts
  • src/renderer/src/components/native-chat/native-chat-composer-target.ts
  • src/renderer/src/components/native-chat/native-chat-transcript-read-phase.ts
  • src/renderer/src/components/native-chat/native-chat-pagination.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership-locality.test.ts
  • src/main/ipc/omp-rpc-probe-pool.ts
  • src/main/ipc/native-chat.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-omp-rpc-send.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-history-hydration.test.ts
  • src/main/omp-rpc/omp-rpc-pane-handback-delivery.test.ts
  • src/shared/omp-advisor-notes.ts
  • src/shared/native-chat-streaming.ts
  • src/main/runtime/rpc/methods/native-chat.ts
  • src/renderer/src/components/native-chat/use-native-chat-live-session.ts
  • src/main/omp-rpc/omp-rpc-chunk-reassembler.ts
  • src/main/native-chat/omp-terminal-session-identity.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-text-editing.ts
  • src/renderer/src/components/native-chat/native-chat-command-marker.ts
  • src/shared/omp-rpc-chat-ipc-contract.ts
  • src/main/omp-rpc/omp-rpc-chat-session-registry.test.ts
  • src/main/omp-rpc/omp-rpc-session-owner.ts
  • src/renderer/src/components/native-chat/native-chat-pending-retraction.ts
  • src/main/omp-rpc/omp-rpc-client.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-list-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-pending-sends.test.tsx
  • src/renderer/src/components/native-chat/omp-rpc-acquire-failure-pty-recovery.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-send.test.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-command-send.ts
  • src/renderer/src/components/native-chat/omp-rpc-advisor-card.test.ts
  • src/main/omp-rpc/fake-omp-rpc-child-script.mjs
  • src/renderer/src/components/native-chat/omp-rpc-turn-overlay.test.ts
  • src/renderer/src/components/native-chat/omp-rpc-turn-reducer.ts
  • src/renderer/src/components/native-chat/use-omp-rpc-chat-pane-ownership.test.ts

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

@rhlsthrm
rhlsthrm force-pushed the feat/omp-rpc-chat-adapter branch from 1143621 to 97eb310 Compare September 5, 2026 09:01

@pullfrog pullfrog 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.

✅ No new issues found in this delta — the single-writer fence and daemon physical-exit proof are fail-closed and well-covered.

Reviewed changes

  • Introduced a main-process single-writer fence — a module-level OmpRpcLocalSessionWriteFence (plus DaemonPtySessionWriteFence, omp-rpc-local-pty-access.ts, and omp-rpc-local-pty-session-writer-proof.ts) that reserves a session .jsonl path for whichever writer owns it. The RPC registry, the daemon DaemonPtyRouter.spawn, and the local spawnLocalPty all share the same singleton, so a competing omp --resume spawn that would write a fenced session fails closed with agent_session_conflict; the fence is released only on a proven physical exit.
  • Added a daemon physical-PTY-exit proof — protocol v37 shutdown returns physicalPtyExitVerified, cleanupDaemonForProtocol throws without it, and runRestartDaemon reordered so synthetic exits fan out only after physical teardown, so renderer hand-back can never reserve an OMP session beside the outgoing daemon process.
  • Tightened session-identity resolution — the mtime fallback now applies only when no live PTY remains (POSIX) or for a Windows ConPTY without a slave path; a live POSIX PTY with a stale or missing breadcrumb is refused rather than guessed, and acquisition consults hasOtherLocalOmpRpcPtySessionWriter (fail-closed on any probe error).
  • Reworked OMP launch resolution — resolveOmpRpcLaunch tokenizes the configured OMP command and threads commandArgs (wrapper + flags) into the RPC spawn via the new resolveCommandOnLocalPath.
  • Extracted turn-response settlement — omp-rpc-turn-response-settlement.ts now owns the prompt acknowledgement + turn-terminal correlation, including immediate-ack and async-error frames, alongside the existing omp-rpc-command-correlation.ts.
  • Added a switch-session readback reconciler — OmpRpcChatSessionReadbackReconciler transfers the claim and moves/queues the fence on a session switch, retiring the child on conflict.

ℹ️ Platform coverage for the fence and identity branches remains unverified

The writer fence's Windows-specific logic (isWindowsSessionPath, win32.normalize().toLocaleLowerCase()) and the Windows-only mtime-fallback branch, plus the entire adapter, are exercised only on macOS — the author flags "Windows/Linux runs of the adapter itself are still owed." This is mergeable (acquisition is gated to local panes and degrades to PTY behavior), but the fence's correctness on a Windows ConPTY where a breadcrumb cannot be derived is currently backed by reasoning and unit stubs rather than a real-binary run.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found in this delta.

Reviewed changes

  • Split three daemon modules off their 300-line budget — daemon-session-path-protocol.ts (GetCwdRequest/GetSlavePathRequest), session-final-snapshot.ts (prepareSessionFinalSnapshot), and terminal-host-inspect-guard.ts (assertInspectableSession) now hold logic previously inlined in types.ts / session.ts / terminal-host.ts. Verified equivalent to the inlined originals.
  • Extracted the pure OMP pane-eligibility gate — isOmpRpcChatSessionEligible moved to omp-rpc-pane-eligibility.ts and re-exported so call sites and tests are unchanged.
  • Fixed a real false-failure in daemon cleanup — cleanupDaemonForProtocol no longer treats a lost shutdown reply as a failed shutdown (the daemon exits before the socket closes); only an answer that withholds physicalPtyExitVerified throws, and an unanswered shutdown still has to clear waitForDaemonEndpointExit. Fail-closed preserved.
  • Restored the dropped localization entries and bumped the PROTOCOL_VERSION test pin 36 → 37.
  • Corrected the daemon-init mocks so shutdown answers with the physical-PTY-exit proof a current-protocol daemon returns, rather than the listSessions shape.
  • Introduced a shared frozen INITIAL_NATIVE_CHAT_READ_WINDOW and extracted nativeChatTranscriptSourceKey, satisfying the lazy-useRef and max-lines ratchets. Verified every windowRef.current write replaces the ref (never mutates in place), so the frozen instance is safe.
  • Fixed a test-isolation leak — worktree-creation-flow.test.ts now installs the globalThis.window surface once per test rather than inside a single test body.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@rhlsthrm
rhlsthrm force-pushed the feat/omp-rpc-chat-adapter branch from 7a819f8 to 32af69c Compare September 5, 2026 10:36

@pullfrog pullfrog 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.

✅ No new issues found in this delta.

Reviewed changes

  • Contained synchronous OMP command-probe failures — useOmpRpcCommands now routes the getCommands IPC call through Promise.resolve().then(...), so a synchronous throw from the preload bridge (e.g. renderer released during teardown) becomes a rejection the existing .catch(() => null) fallback absorbs instead of escaping the render hook. A regression test exercises the throw path.
  • Dropped the now-redundant process-table gate repair — the process-table-snapshot-ttl.ts extraction and the renderer-process-global-boundary.test.ts guard are removed; main's typeof process !== 'undefined' guard in process-table-snapshot.ts makes that module renderer-safe, and the cadence scheduler now imports the staleness constant directly from it.
  • Reconciled localization with main — structuredSessionFellBackToTerminal / structuredSessionLaunchFailedDescription entries are picked up from the current main rather than re-added, and the daemon max-lines splits re-land cleanly on the re-ported domain modules.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@rhlsthrm
rhlsthrm force-pushed the feat/omp-rpc-chat-adapter branch from 7ecf3ea to 888b918 Compare September 7, 2026 08:52

@pullfrog pullfrog 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.

✅ No new issues found in this delta.

Reviewed changes

  • Rebased the adapter onto main tip e95d247b and re-squashed it — the integration was re-ported into the current domain modules (preload *-bridge.ts split, daemon/providers re-integration). Verified the OMP core (src/main/omp-rpc/, src/shared/omp-rpc-*, src/preload/api/omp-rpc*, the claimed-owner/host-authority types) is byte-identical to the prior head, and the single-writer fence in DaemonPtyRouter.spawn plus localOmpRpcSessionWriteFence wiring is intact. The claude trust preset is also unchanged from the prior head, not new to this delta.
  • Stripped command-output colour codes at the display boundary — /usage paints truecolour SGR whose raw sequences reached chat as visible 38;2;… text. Reducer state and the marker cache now keep the raw capture, and both projections (omp-rpc-turn-overlay.ts, native-chat-command-marker.ts) strip via the shared stripAnsiEscapeSequences, so a sequence split across two command-output frames is whole before it is stripped. Regression tests cover the split-frame cases.
  • Kept the daemon PTY router inside its max-lines budget — collapsed the attach-only spawn call's object argument rather than raising the budget.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found in this delta.

Reviewed changes

  • Added coverage for the multi-message transcript decode — worker-transcript-multi-message-decode.test.ts pins the widened decoder contract across both readers: one OMP line (a mixed thinking+reply turn) decodes into a reasoning message ahead of the assistant message, in decoded order, and a limit counts messages so a line yielding two messages is never split. Exercises the local initial read, local forward read, limit boundary, and remote read (legacy snapshot window). Test-only; both readers already spread the array-decode case (worker-transcript-local-read.ts, worker-transcript-remote-read.ts).

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@rhlsthrm

rhlsthrm commented Sep 7, 2026

Copy link
Copy Markdown
Author

@pullfrog review

Heads-up on the delta since your last pass on 888b9188: the only new commit is 8471c69a, which is test-only. It adds worker-transcript-multi-message-decode.test.ts to pin the widened decoder contract (one omp line decoding into a reasoning message plus an assistant one) through upstream's two new readers, worker-transcript-local-read.ts and worker-transcript-remote-read.ts. The rebase re-ported that spread by hand and nothing exercised it.

One thing worth flagging that I deliberately did not touch, because it is not this branch's: a forward readWorkerTranscript (explicit offset) with a limit smaller than the remaining lines returns transcript_parse_failed. scanForwardPage's early return from inside its for await loop destroys the FileHandle read stream, closing the handle, so the following boundary-checkpoint reads throw file closed. I reproduced it on pristine main with a plain codex decoder and no OMP involvement, so the new tests assert the multi-message decode on the paths that work today.

@pullfrog

pullfrog Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Reviewed the test-only delta (commit 8471c69a, adding worker-transcript-multi-message-decode.test.ts): no new issues. The four cases pin the widened decoder contract (one OMP line → reasoning + assistant, in decoded order) across the local initial read, local forward read, limit boundary, and remote legacy-snapshot read — each targeting a distinct array-spread site in worker-transcript-local-read.ts / worker-transcript-remote-read.ts. Verified the suite passes (4 passed) and the exact role/text assertions fail if the split regresses to nesting/flattening. Confirmed the flagged forward-offset-with-small-limit defect (scanForwardPage closing the FileHandle → file closed → transcript_parse_failed) is pre-existing on main and correctly left out of scope.

Note: submitting the approved review via create_pull_request_review failed repeatedly with API rate limit already exceeded for installation ID 157638837, so the review is recorded here instead.

Task list (1/6 completed)
  • Checkout PR feat(native-chat): add OMP RPC chat adapter #18618 and read incremental + full diff
  • Read and retire prior Pullfrog review threads
  • Triage incremental changes (test-only commit 8471c69)
  • Dispatch specialists if unresolved questions remain
  • Aggregate findings and draft review
  • Submit review or report no-review

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@rhlsthrm
rhlsthrm force-pushed the feat/omp-rpc-chat-adapter branch from 8471c69 to 75ab025 Compare September 7, 2026 11:16

@pullfrog pullfrog 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.

✅ No new issues found in this delta — the re-transplant onto the new main tip is clean.

Reviewed changes

  • Rebased the adapter onto main @ 9d29e68 — the four adapter commits (feat, colour-code strip, max-lines collapse, decoder coverage) were re-applied onto a main that moved ~15 commits since e95d247b. A tree-diff between the prior head 8471c69a and 75ab025a shows no OMP adapter file changed: src/main/omp-rpc/, src/shared/omp-rpc-*, src/preload/api/omp-rpc*, and the daemon fence/claim modules are byte-identical, and no branch file was dropped.
  • en.json conflict resolved cleanly — the only localization delta between the two heads is main's MiniMax expiry strings; the branch's OMP/native-chat strings are present and unchanged.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Added a self-terminating session-identity re-probe for the chat-first flow — a visible, unresolved OMP pane now re-resolves its identity on a fixed 3s cadence until a session materializes, so a fresh Chat tab with no session file yet hydrates its transcript once the first send lazily creates it (previously the identity stayed null forever). The probe chain lives outside the effect, stops on first non-null resolution, suspends while hidden (restarted by a visibility nonce), and never starts from a null re-probe on an already-resolved pane; sticky-merge semantics are unchanged.
  • Added three fake-timer regression tests covering chat-first termination, hidden-suspend/resume, and no-re-poll after an already-resolved pane's null dep-probe.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@rhlsthrm
rhlsthrm force-pushed the feat/omp-rpc-chat-adapter branch from 69de016 to 12abb5f Compare September 7, 2026 14:53
rhlsthrm and others added 6 commits September 8, 2026 17:37
Add an OMP RPC chat adapter so a native-chat pane can take structured RPC
ownership of an OMP agent session, hydrate history over RPC, and hand the
pane back to the PTY on toggle.

Related to #10099
/usage paints truecolour SGR, and the raw sequences reached the chat as
visible '38;2;...' text. Stripping at ingest cannot work: output arrives as
a stream of command-output frames and one sequence can straddle two of them,
where the generic escape pattern eats the bare introducer and leaves the
parameter bytes behind. Reducer state and the marker cache therefore keep the
raw capture, and both projections -- the live overlay row and the pane-scoped
command marker -- strip when they render.
The rebase brought upstream's WriteSettlement import alongside the branch's
three, pushing the file to 301 counted lines. Collapse the attach-only spawn
call's object argument instead of raising the budget.
…h readers

The rebase re-ported the branch's widened decoder contract (one omp line can
decode into a reasoning message plus an assistant one) into upstream's new
worker-transcript-local-read.ts and worker-transcript-remote-read.ts. Nothing
exercised that spread, so pin it in both readers.
…materializes

Post-rebase live UAT (chat-first flow): a fresh agent tab toggled to Chat
before any prompt resolves identity to null — correctly, since no session
file exists yet — but no identity-hook input changes when OMP lazily
creates the session on the first send, so resolvedSessionId stayed null
forever and the transcript never hydrated.

A visible, unresolved pane now re-probes on a fixed cadence until an
identity lands. The chain self-terminates on the first non-null
resolution, suspends while hidden (a visibility-transition nonce restarts
it), and never starts from a null re-probe on an already-resolved pane.
Sticky-merge semantics are unchanged.
Upstream #19381-era change made omitsOlderRecords required on
NativeChatLiveSession; the tool-stream-cost fixture predates it.
@nwparker

Copy link
Copy Markdown
Contributor

Review status from the current OMP audit:

  • The PR is currently CONFLICTING / DIRTY against main and has only the fork pullfrog check; the repository's required matrix did not run.
  • The body has strong ELI5, screenshots, and extensive local UAT, but the reported validation is macOS-only. Windows, Linux, SSH/remote, and mobile execution remain unverified.
  • The change is a large cross-cutting integration (roughly 40k added lines across daemon, IPC, renderer, protocol, and tests), so it is not low merge risk while conflicted and without same-repository CI.

Recommendation: keep open for the original author to rebase and split or otherwise reduce the integration surface, then run the repository matrix plus Windows/Linux/remote smoke coverage. I am not taking ownership of the branch in this review pass.

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.

[Feature]: Versioned structured-agent adapter contract for Chat UI

2 participants