Skip to content

fix(omp): deliver transcript paths through status metadata - #19529

Closed
brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/omp-transcript-metadata-20260907
Closed

brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/omp-transcript-metadata-20260907

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​165 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​128
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2

ELI5

OMP already knows where it stores a conversation. Orca now receives that path so native chat can open an existing custom-directory transcript directly.

What Changed

Both the dedicated OMP extension and the Pi extension running under OMP publish session_file. The existing provider-session extractor retains it as optional transcriptPath, feeding the existing execution-host resolver. Session-ID resume, explicit resume-file overrides, ephemeral-session suppression, and the SSH availability gate retain their behavior.

Why

The path was lost at both the producer and extractor boundaries. Delivering it through the existing metadata owner removes those omissions without introducing another transcript locator.

Linked Issue

Addresses the metadata-delivery portion of STA-3650. Plain-SSH native-chat enablement remains separate and is not claimed complete.

Visual Proof

Hidden Electron startup was inspected in an isolated profile. The real native-chat IPC reader returned both expected messages from a synthetic custom-directory OMP transcript; the chat view itself was not exercised, so no before/after rendered transcript proof is claimed.

Testing

  • 171 tests pass across eight files, covering both generated producers, exact-path resolution with zero scans, delayed creation, cancellation, session switches, ephemeral sessions, legacy fallback, WSL attestation, and existing remote ingestion/fanout controls.
  • Manual loopback HTTP delivery passes for both generated producers with synthetic session managers; the pinned pre-change extractor ignores the optional field and keeps the same resume command.
  • Removing either delivery step independently produces four expected test failures; restored files match their committed backups byte-for-byte.
  • Scoped lint and the prescribed sequential node/web/CLI typechecks pass. Fresh Electron main/preload development builds pass.
  • Real OMP no-inference startup answered its state request but emitted no lifecycle hooks; actual provider persistence, Windows/WSL runtime, SSH runtime, and the rendered chat journey remain unverified.

Review

Independent architecture review pending. This is a scoped draft, not full-ticket closure or merge approval.

Agent skill upstream boundary

  • Not applicable; no upstream skill material changed.

@brennanb2025 brennanb2025 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review of exact head ff72735b0181285c3b8a55e888cb61315fee2fec (local HEAD, remote branch and draft head matched).

SCOPED CLEAN: no issues found in OMP transcript metadata delivery. This is not merge approval, full STA-3650 closure or plain-SSH enablement.

  • Functional correctness: independently reproduced 171/171 tests across eight files, scoped lint, and all three sequential node/web/CLI typechecks. Removing either producer delivery or extractor retention caused the same four expected failures (both modes: existing custom-path resolution and delayed creation), with seven controls passing; cp restoration compared byte-for-byte and tracked source stayed clean.
  • Architectural fit: both producers already had the provider-owned path, and the extractor separately discarded it. Delivering the optional field through the existing owner removes both omissions. A parallel locator, scan retry or file-based OMP resume would add a new mechanism without addressing another demonstrated failure. ID resume, explicit resume-file override, ephemeral suppression and the SSH availability gate remain intact.
  • Concrete precedent / deviations: inspected Claude/Codex optional path extraction, Pi's session_file extraction, the existing exact-path resolver and metadata fanout/path invalidation. Pi requires a persisted path for resume; OMP intentionally remains ID-resumable before file creation. No external provider-source alignment is claimed.
  • Observed manual validation / gaps: four real loopback HTTP cases exercised current and pinned pre-change generated producers in both modes against current/pinned extraction; optional-path compatibility and resume identity held. A fresh isolated hidden Electron build matched the child/branch and actual preload/main native-chat IPC returned both independent synthetic custom-transcript messages. The uncropped renderer screenshot showed onboarding with OMP listed, not the changed chat view. Actual persistent provider turn, provider-to-rendered-chat journey, Windows/WSL runtime, full mixed-peer runtime, SSH and mobile remain unverified; no inference or real profiles were used.

The performance oracle passed: existing custom paths resolve with zero directory walks; absent/delayed paths retain fallback and cancellation controls. The patch adds one optional string per event, with no new polling, scan or subprocess. The standalone PR body accurately limits its scope and validation claims. Owned Electron processes were command-verified before termination, ports cleared, and source/HEAD preserved.

nwparker added a commit that referenced this pull request Sep 19, 2026
Adopt #19529 on the child-session ownership fence. Preserve id-based resume and execution-host transcript boundaries.

Co-authored-by: Brennan Benson <[email protected]>
nwparker added a commit that referenced this pull request Sep 19, 2026
* fix(omp): publish owning session transcript paths

Adopt #19529 on the child-session ownership fence. Preserve id-based resume and execution-host transcript boundaries.

Co-authored-by: Brennan Benson <[email protected]>

* test(omp): render authoritative transcript reader output

---------

Co-authored-by: Brennan Benson <[email protected]>
@nwparker

Copy link
Copy Markdown
Contributor

Superseded by #20615 (OMP transcript path publication), which contains the current implementation and verification on . Closing this stale duplicate so review stays on the maintained PR.

@nwparker

Copy link
Copy Markdown
Contributor

Superseded by #20615.

@nwparker nwparker closed this Sep 19, 2026
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.

2 participants