Repository navigation
fix(client): a re-pair no longer shows a person the legacy "Pair again" notice - #1142
Merged
Merged
Conversation
…n" notice The notice qualified a connection whenever its access read settled without a person answer, so a read that failed while a re-pair reconnected showed it. Only a server answer, or a server from before people refusing the read as an unknown method, now decides. Fixes #1127 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 3 minutes for your next included review. View limit details
|
Jacksondr5
added a commit
that referenced
this pull request
Nov 21, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 21, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 21, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After re-pairing a phone from a Viewer back to an Owner, a person could see upstream's legacy "Permissions have changed for … Pair again" dialog, which J5 hides for people.
permissionNoticeAppliestreated any settled access read with no person answer as "not a person", so a read that failed while the re-pair reconnected qualified the connection. Closes #1127.What changed
permissionNoticeApplies(packages/client-runtime/src/j5/sharing.ts) now treats a failed read as no answer. One failure still counts: a server from before people, such as plain T3 Code, refuses the read with a defect ("Unknown request tag"), and it keeps upstream's notice as before. A transport failure (closed socket, connection attempt, environment unavailable) is a typed failure and no longer shows it.Why defects still count (Captain's ruling): J5 clients still connect to plain T3 Code servers, and hiding every failure would take upstream's notice away from them, a change to upstream's product. A defect from a J5 server's access read is a server bug and should fail visibly.
Web uses the same function for its
PermissionUpdateNotice, so the fix covers web too.UI changes
Viewer→Owner re-pair through to the settled Owner Chats. The intermittent legacy dialog didn't reproduce on the base build (2 completed attempts on Android, 1 on iOS), and no head run showed it. So these pairs show nothing regressed; the focused failing test proves the fix. iOS coverage uses one light-theme base/head pair per the Captain’s reduced capture scope after a slow Mac launch.
Android light, before: Viewer→Owner re-pair through settled Chats.
1142-android-before-light.mp4
Android light, after: Viewer→Owner re-pair through settled Chats.
1142-android-after-light.mp4
Android dark, before: Viewer→Owner re-pair through settled Chats.
1142-android-before-dark-v2.mp4
Android dark, after: Viewer→Owner re-pair through settled Chats.
1142-android-after-dark.mp4
iOS light, before: Viewer→Owner re-pair; dialog not reproduced.
1142-ios-before-light.mp4
iOS light, after: Viewer→Owner re-pair; no legacy dialog.
1142-ios-after-light.mp4
Live testing
Pass for the captured re-pair flow: Android emulator and iOS Simulator, base
4778ae9776and headf681183da939af07543f247f28a8bf52b3304a5e, isolated live-test home. Project Viewer→Owner re-pair exercised in light and dark, with full-screen stills and videos. Base did not reproduce the intermittent dialog in two completed attempts; head showed no dialog. Native fingerprint reused from cache. Android session and isolated services have been stopped.iOS light base/head Viewer→Owner re-pair completed; no dialog appeared. Cached iOS client fingerprint
9eea42de1e2e8eb24fb9f5b26930dc57b6f8e4ab. Simulator, Metro, backend and SSH tunnel stopped. iOS dark omitted under the Captain’s reduced capture scope after a slow boot/load spike; no layout changed.Plain T3 Code server, failing access read injection, web, relay/tunnel, physical devices, and real provider turns not exercised. Shared logic and failed-read behavior remain covered by the builder’s focused tests and council source review.
Council review
Checklist
FORK.md(case text and file-table row) in this PR (none edited)docs/j5/product/upstream.md(none: a server from before people keeps upstream's notice)AGENTS.md): web and mobile share the function; no provider, contract or entry-point changedocs/j5/product/and user docs rewritten where this changes them (no change needed)Built by Claude Opus 5.5 in Claude Code (J5 Code Crew builder seat).
🤖 Generated with Claude Code