Repository navigation
test(e2e): open the oracle's headless layout stream with a paired connection - #27601
Conversation
…nection The remote subscription now takes a paired connection rather than a pairing offer; build one from the offer the way the CLI does.
Same stale call as the oracle stream after the subscription and request functions took a paired connection.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The two helpers now pass paired runtime connections to the relevant runtime operations. No actionable merge risk is identified in the supplied change context. Pre-merge checks |
|
ELI5
A recent change made the remote subscription function take a ready-made paired connection instead of a raw pairing offer. The layout checker's headless stream still passed the raw offer, so its Electron-serve scenarios crashed before checking anything. This builds the connection from the offer the same way the CLI already does.
What Changed
tests/e2e/helpers/workspace-layout-oracle-stream.tswraps the decoded pairing offer inpairedRuntimeConnectionFromOfferbefore callingsubscribeRemoteRuntimeRequest. Before:TypeError: Cannot read properties of undefined (reading 'deviceToken')atremote-runtime-subscription-transport.ts:58in every headless oracle case. After: the stream opens and the cases run.Why
It reuses the existing offer-to-connection helper that the CLI's remote pairing uses (
runtime-remote-pairing.ts), with no new pairing path.Linked Issue
N/A (maintainer; follow-up to #27560 and #27533)
Visual Proof
N/A: test-only change.
Testing
Local macOS, hidden (
ORCA_BACKGROUND_LAUNCH=1): window oracle (20) + headless oracle on orcad and Electron serve (18): 38 passed (9.1 min). Specs using the paired mobile client (paired-mobile-serve-restart-terminal-tabs,paired-mobile-desktop-mirror-baseline): 2 passed. The e2e typecheck shows no errors in the touched files; its remaining errors are already on main in unrelated files.Review
Agent skill upstream boundary
Notes
tests/e2e/helpers/paired-mobile-client.tshad the same stale call (a type error) and gets the same fix.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)