Skip to content

test(omp): keep transcript smoke proof current - #21661

Merged
nwparker merged 1 commit into
mainfrom
fix/omp-transcript-smoke-contract
Sep 19, 2026
Merged

nwparker merged 1 commit into
mainfrom
fix/omp-transcript-smoke-contract

Conversation

@nwparker

@nwparker nwparker commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4
Prod 0 0 0 0

ELI5

The OMP transcript smoke test expected Orca to resume OMP by an id even after Orca had learned the exact transcript file. OMP now publishes that file path so mobile/native chat can read the host's transcript directly and avoid a slow directory scan; the smoke test was still asserting the old command.

This keeps the end-to-end proof aligned with the behavior already shipped for #18663.

What changed

  • Assert that the real OMP loader and SessionManager produce the path-based omp --resume argv when a transcript path is published.

Verification

  • bun tests/tools/omp-transcript-runtime-smoke.mjs /Users/nwparker/projects/oh-my-pi — passed against the read-only OMP checkout: 5 reports, actual OMP loader, persistent session manager, lazy transcript creation, session switch, HTTP metadata, Orca transcript reader, and child suppression.
  • pnpm test src/main/pi/omp-transcript-metadata.test.ts — 11 tests passed.
  • pnpm tc:node — passed.
  • pnpm run check:code-quality:changed — 0 findings.
  • Pre-commit lint, React Doctor, and formatting hooks passed.

The smoke proof is runtime/CLI evidence rather than a UI screenshot; visual proof is not applicable to this test-contract correction.

Merge risk

Low. Test-only change; production behavior is unchanged.

@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0e3c948d-f0f5-4597-b639-a6feb25aa96a

📥 Commits

Reviewing files that changed from the base of the PR and between c22c442 and f16fe93.

📒 Files selected for processing (1)
  • tests/tools/omp-transcript-runtime-smoke.mjs

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


📝 Walkthrough

Walkthrough

The OMP transcript runtime smoke test now expects getAgentResumeArgv('omp', session) to return ['omp', '--resume', root.getSessionFile()]. The assertion previously expected root.getSessionId().

Priority: ⬇️ Low

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change, reason, verification, and low merge risk. However, it omits several required template sections, including Why, Linked Issue with a Fixes reference, Visual Proof wi… Add all missing template sections. Include a Why section, a Linked Issue section with Fixes #18663`` or the correct issue reference, a Visual Proof section containing N/A and the reason, a Testing section with the required checklist and p…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the focused change: updating the OMP transcript smoke test. It is concise and related to the primary change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the change, reason, verification, and low merge risk. However, it omits several required template sections, including Why, Linked Issue with a Fixes reference, Visual Proof with the exact N/A statement, Testing with the required checklist, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist.

Resolution

Add all missing template sections. Include a Why section, a Linked Issue section with Fixes #18663`` or the correct issue reference, a Visual Proof section containing N/A and the reason, a Testing section with the required checklist and platform details, and the remaining required sections and checklist items.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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.

@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

  • Path-based OMP resume assertion — tests/tools/omp-transcript-runtime-smoke.mjs now expects ['omp', '--resume', <transcript file>] instead of the session id, matching getAgentResumeArgv's ompResumeFilePath ?? transcriptPath ?? id precedence in src/shared/agent-session-resume.ts:279.

The assertion sits directly below assert.equal(session.transcriptPath, root.getSessionFile()), so it can only pass when the loader actually publishes session_file; a regression back to id-based argv fails it. This mirrors the unit contract in src/main/pi/omp-transcript-metadata.test.ts:47-52, including the explicit-path override. Test-only, no production change.

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

@nwparker
nwparker merged commit eca2ff6 into main Sep 19, 2026
31 checks passed
@nwparker
nwparker deleted the fix/omp-transcript-smoke-contract branch September 19, 2026 12:10
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.

1 participant