Skip to content

test(e2e): open the oracle's headless layout stream with a paired connection - #27601

Merged
Jinwoo-H merged 2 commits into
mainfrom
layout-oracle-paired-connection-fix
Oct 11, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
layout-oracle-paired-connection-fix

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 11, 2026 •

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

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.ts wraps the decoded pairing offer in pairedRuntimeConnectionFromOffer before calling subscribeRemoteRuntimeRequest. Before: TypeError: Cannot read properties of undefined (reading 'deviceToken') at remote-runtime-subscription-transport.ts:58 in 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.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

tests/e2e/helpers/paired-mobile-client.ts had the same stale call (a type error) and gets the same fix.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…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.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in 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: ed3f13db-d965-427c-bb9e-c4118fc4789d


📥 Commits

Reviewing files that changed from the base of the PR and between c180ba6 and 69c85ae.



📒 Files selected for processing (2)
  • tests/e2e/helpers/paired-mobile-client.ts
  • tests/e2e/helpers/workspace-layout-oracle-stream.ts


Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

The paired mobile client and workspace layout oracle now convert decoded pairing data into paired runtime connections before passing it to remote runtime requests or subscriptions.



Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 69c85

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 | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check Passed The title clearly identifies the main change: opening the oracle's headless layout stream with a paired connection.
Description check Passed The description is mostly complete. It explains the failure, the code change, the reason, testing results, scope, and the test-only visual proof. The unchecked command checklist is a minor omission be…

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



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Jinwoo-H
Jinwoo-H merged commit 3c84201 into main Oct 11, 2026
37 checks passed
@Jinwoo-H Jinwoo-H mentioned this pull request Oct 11, 2026
7 of 8 tasks
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