Skip to content

fix(client): a re-pair no longer shows a person the legacy "Pair again" notice - #1142

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/fix-1127-repair-permission-notice
Nov 21, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/fix-1127-repair-permission-notice

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

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. permissionNoticeApplies treated 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.

State Before After
Android Owner Chats, light Owner Chats after Viewer to Owner re-pair, Android light, before Owner Chats after Viewer to Owner re-pair, Android light, after
Android Owner Chats, dark Owner Chats after Viewer to Owner re-pair, Android dark, before Owner Chats after Viewer to Owner re-pair, Android dark, after

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
State Before After
iOS Owner Chats, light Owner Chats after Viewer to Owner re-pair, iOS light, before Owner Chats after Viewer to Owner re-pair, iOS light, after

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 4778ae9776 and head f681183da939af07543f247f28a8bf52b3304a5e, 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

Delegate Round 1 (code) Round 2 (code, after ruling) Evidence pass
Claude Opus 9/10 — 9/10
GPT Sol 6/10 (scope: defect carve-out) 9/10 under the Captain's ruling 9/10

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction (iOS dark omitted under the Captain's reduced scope; the base didn't reproduce the dialog)
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR (none edited)
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md (none: a server from before people keeps upstream's notice)
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md): web and mobile share the function; no provider, contract or entry-point change
  • Docs: definitions under docs/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

…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]>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 21, 2026 9:15pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 3 included reviews currently available. Your 47 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4778ae9 and f681183.

Files selected for processing: 2

  • packages/client-runtime/src/j5/sharing.test.ts
  • packages/client-runtime/src/j5/sharing.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 21, 2026
@github-actions github-actions Bot added the size:S 10-29 effective changed lines (test files excluded in mixed PRs). label 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 21, 2026
@Jacksondr5
Jacksondr5 merged commit bc0ddf1 into j5/main Nov 21, 2026
36 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/fix-1127-repair-permission-notice branch November 21, 2026 21:40
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

1 active deployment
Preview — f681183d Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-pairing can show the legacy "Permissions have changed … Pair again" notice to a person

1 participant