Repository navigation
test(omp): keep transcript smoke proof current - #21661
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe OMP transcript runtime smoke test now expects Priority: ⬇️ Low 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation 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
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Path-based OMP resume assertion —
tests/tools/omp-transcript-runtime-smoke.mjsnow expects['omp', '--resume', <transcript file>]instead of the session id, matchinggetAgentResumeArgv'sompResumeFilePath ?? transcriptPath ?? idprecedence insrc/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.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

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
SessionManagerproduce the path-basedomp --resumeargv 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.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.