Repository navigation
test(mobile): pin the decoded screencast frame with the base64 it now carries (OTA phase C, C6) - #21769
Conversation
… carries (OTA phase C, C6) C6.1 (#21758) pinned the frame `decodeBridgeScreencastFrame` hands back with an exact `toEqual`; C6.2 (#21754) made that decoder carry the wire's `b64` on the frame so the page's data URI can reuse it. Each PR was green against the main it branched from, and their squashes together red two of C6.1's cases on main. The pins stay exact and gain the field, with the encoded string spelled out rather than wildcarded. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
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 (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe screencast tests now verify that decoding preserves the original base64 payload in addition to frame data, metadata, and image bytes.
Priority: ⬇️ Low 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, scope, implementation, and verification results. However, it does not follow the required template and omits required sections such as ELI5, What Changed, Why, Linked Issue with a Fixes reference, Visual Proof or N/A, Testing checkboxes, AI Disclosure, Review, Notes, and Checklist. Resolution Rewrite the description using all required template sections. Add an ELI5 explanation, explicit before-and-after behavior, the reason for the approach, a valid
✨ 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 — test-only repair for the semantic merge that reddened main @ 6f0fb3fe39; no product code changes.
- Host screencast pin updated —
bridge-host-screencast.test.tsnow expects{ ...frame(41, IMAGE), b64: binary?.b64 }, matching theb64thatdecodeBridgeScreencastFramegained in C6.2 while keepingimage/metadata/seqexact. - Encoder pin made exact —
bridge-screencast-encoder.test.tsassertsb64: 'AQID'for bytes[1,2,3]on the decoded side, verified against the base64 alphabet, instead of letting a wildcard absorb a re-encode.
Verified by running both files (pnpm --dir mobile exec vitest run …): 2 files, 27 tests pass. I also checked the other mobile tests that touch decoded frames or b64; the remaining decodeBridgeScreencastFrame assertions compare ?.image or round-trip the pair, so no other stale exact pins are left behind.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Summary
Main is red at
6f0fb3fe39on two mobile tests:bridge-host-screencast.test.ts"reconstructs the frame the native listener was handed" andbridge-screencast-encoder.test.ts"carries every metadata field, the format and the screencast seq". A semantic merge: C6.1 (#21758) pinned the decoded frame with an exacttoEqual, and C6.2 (#21754) madedecodeBridgeScreencastFramecarry the wire'sb64on the frame so the page's data URI can reuse it (pinned inbridge-rpc-client-frames.test.ts). Each PR was green against the main it branched from; their squashes together are not.Test-only: the two pins stay exact and gain
b64, spelled out as the encoded string ('AQID'for bytes 1, 2, 3; the wire's ownb64in the host test), notexpect.any. No product code changes.Verified
Reproduced on pristine
origin/main6f0fb3fe39(2 failed, 25 passed); with this change both files pass (27), mobile tsc 0, tests-typecheck ratchet 0, oxlint clean, oxfmt applied. Found by the C6.3+C6.4 lane while merging main into #21760.Part of the mobile OTA plan (Phase C). Reference PR #13386, never merged.