Repository navigation
fix(omp): publish parent transcript paths for native chat - #20615
Merged
Merged
Conversation
nwparker
marked this pull request as ready for review
September 14, 2026 12:23
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the OMP hook/metadata path that lets native chat read custom session directories, plus its WSL-authority and proof coverage.
- OMP hook publishes
session_file—getPiAgentStatusExtensionSourcenow emits the owning session manager's file path alongsidesession_idin both the dedicated-OMP and Pi-routed-OMP runtime metadata. The existing both-id-and-file gate is unchanged, so ephemeral sessions still publish no metadata. - Extraction maps
session_file→transcriptPath—extractAgentProviderSession('omp')uses the sharedwithTranscriptPathvalidator (trim, reject empty/control-char paths). Resume stays id-based:getAgentResumeArgv('omp')ignorestranscriptPath, andagentProviderSessionsEqualignores it for OMP, so sleeping/live records do not churn. - SSH gate unchanged —
nativeChatRequiresLocalTranscriptstill returns true for OMP; only its doc comment changed, so Model-A SSH chat stays closed even with a hook path. - WSL authority now covered for OMP — the codex guest-path cases in
session-file-resolver-wsl.test.tsare parameterized overcodex/omp, asserting an attested distro wins and a guest hook path never falls back to a host/other-guest id match. - Proof tooling —
tests/tools/omp-transcript-runtime-smoke.mjs(real OMP loader + persistentSessionManager→ HTTP metadata → Orca reader, lazy creation, new-session switch, child suppression) andomp-transcript-rendered/(hidden-Electron render of the production message list using exported reader output). Manual runbook, not CI-wired.
Verified locally: the five focused suites (omp-transcript-metadata, omp-session-status-owner, session-file-resolver-wsl, agent-session-resume, agent-status-extension-source) pass (102 tests). The new assertions are exact-equality on session_file/transcriptPath, so they fail against the pre-change behavior rather than absorbing it.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This was referenced Sep 14, 2026
nwparker
force-pushed
the
nwparker/omp-child-session-owner
branch
from
September 19, 2026 07:26
2ddd31d to
6fb1c19
Compare
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
force-pushed
the
nwparker/omp-transcript-path
branch
from
September 19, 2026 07:45
f835a5c to
47db83b
Compare
nwparker
changed the base branch from
nwparker/omp-child-session-owner
to
main
September 19, 2026 07:45
This was referenced Sep 19, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

OMP now tells Orca exactly where its parent conversation is saved, so native chat can read custom session directories without guessing. Resume still uses the session ID; child callbacks cannot replace the parent transcript path.
Stacked on #20611 (
nwparker/omp-child-session-owner) because transcript ownership must use its root-session fence. Takes over #19529 with Brennan Benson co-author credit. The optional metadata keeps old-extension discovery fallback and leaves plain SSH support gated.Validation
ORCA_BACKGROUND_LAUNCH=1 bun tests/tools/omp-transcript-runtime-smoke.mjs /path/to/oh-my-pi; rendered reproduction is documented intests/tools/omp-transcript-rendered/README.md.Rebase and final verification
Rebased onto current
mainafter #20611 merged; duplicate ownership commits were removed rather than replayed.ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/pi/omp-transcript-metadata.test.ts src/main/pi/omp-session-status-owner.test.ts src/main/native-chat/session-file-resolver-wsl.test.ts src/main/pi/agent-status-extension-source.test.ts— 66 passed.pnpm tc:nodeandpnpm run check:code-quality:changed— passed.ORCA_BACKGROUND_LAUNCH=1 bun tests/tools/omp-transcript-runtime-smoke.mjs /Users/nwparker/projects/oh-my-pi /tmp/omp-transcript-reader-proof.json— actual OMP loader, persistent SessionManager, custom roots, new-session switch, HTTP metadata, reader output, and child suppression; zero model calls.ORCA_BACKGROUND_LAUNCH=1 node tests/tools/omp-transcript-rendered/run.mjs /tmp/omp-transcript-reader-proof.json— hidden Electron production-component rendering passed and wrote the fixture evidence under.bench-fixtures/omp-transcript-*.