GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(mobile): live activity toggle no longer re-links saved environments by Deji-Techh · Pull Request #32779 · pingdotgg/t3code ConversationProblemTurning Live Activity Updates (iOS) or Ongoing Agent Activity (Android) on in Settings → Notifications fails on every device with:
The toggle re-linked every saved environment that grants Reproduced on this machine with the Android app: the host logged two ChangeThe toggle now only updates this device's relay registration preference and no longer links environments from the phone:
The server's loopback-only link-proof check is unchanged. This follows the direction in #27412 and is the mobile counterpart to #32426's clearer message for remote desktop clients. Scope and approvalFixes #27412 This is @juliusmarminge's #27432 rebased onto current Verification
AI-assisted: diagnosed from the host's server trace for the real failing request, then rebased and re-verified locally.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsTurning Live Activity updates (Android ongoing activity) on or off re-linked every saved environment through the host's link-proof endpoint, which only accepts loopback hosts. A real phone reaches the host over LAN, Tailscale or the tunnel, so the toggle always failed with "Invalid managed endpoint origin." The relay already gates Live Activity delivery on each device's registration preference, and desktop, web and CLI links enable activities at the link level. The toggle now only updates this device's registration preference. The unused mobile environment-link module and its Clerk token plumbing are gone. Android registrations restore the stored native activity configuration when the permission lookup, preference update, or relay write fails, unless a newer registration has configured the device since. Fixes pingdotgg#27412 Rebased from pingdotgg#27432 onto current main.
|
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The activity toggle now changes only this device's preference instead of re-linking saved environments. Android failure recovery restores prior native settings, keeping the change bounded without altering product defaults or access permissions. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 799f229f48
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| clerkToken: tokenResult.value, | ||
| connections, | ||
| }), | ||
| updateAgentAwarenessRegistrationPreferences({ liveActivitiesEnabled: true }), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Restore legacy environment opt-ins when enabling
When an upgraded device has a relay link whose liveActivitiesEnabled was set to false by an older mobile version, this path updates only the device registration. The relay still filters out activities for that environment in AgentActivityRows.listForUser, so the toggle can report success while no activities arrive until the link is re-enabled elsewhere. Preserve a reset or migration path for those legacy link preferences.
AGENTS.md reference: AGENTS.md:L75-L75
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Direct device preference updates apps/mobile/src/features/settings/SettingsNotificationsRouteScreen.tsx, apps/mobile/src/features/agent-awareness/liveActivityPreferences.ts, apps/mobile/src/features/agent-awareness/liveActivityPreferences.test.ts, apps/mobile/src/features/cloud/linkEnvironment.ts, apps/mobile/src/features/cloud/linkEnvironment.test.ts, apps/mobile/src/features/cloud/managedRelayState.ts |
The settings screen updates the device registration preference when enabling or disabling Live Activity updates. It uses updating status in place of linking. The previous environment-linking workflow, related tests, and managed-relay refresh helper are removed. |
Guarded Android preference restoration apps/mobile/src/features/agent-awareness/remoteRegistration.ts, apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts |
Android notification preferences are configured before push-token lookup. Errors restore stored preferences only when the registration generation and configuration-write counter are still current. Tests cover relay and permission failures, plus a newer update following an older failed request. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Severity of issue fixed: Medium
Possibly related issues
Possibly related PRs
Suggested reviewers: juliusmarminge, pixpmusic
30747The Live Activity toggle now updates the device registration preference directly instead of relinking saved environments. No actionable merge-blocking risk was found, though the change was not verified on a physical device.
Explanation
The description includes complete Problem, Change, Scope and approval, and Verification sections. It explains the failure, implementation, linked issue, test results, and known verification limits. It also states that physical-device testing and UI screenshots were not completed.
Explanation
Issue [#27412] requires the mobile Live Activities toggle to work without obtaining a new environment link proof. The settings screen now updates only the device relay registration preference. It no longer reads a Clerk token or calls the mobile environment-link flow. The removed flow included the phone-side link-proof request. The server loopback-only check remains unchanged because no server file changed. Android registration now applies activity configuration before the relay write and restores the stored configuration on failure. New tests cover relay failure, permission lookup failure, and stale concurrent registration. The reported typecheck and mobile test suite pass. The relay implementation is outside this repository, so end-to-end delivery cannot be independently verified here, but the required mobile code path is implemented.
Explanation
The changes stay within issue [#27412]. The deleted link modules, tests, managed-relay refresh, and settings authentication plumbing remove the phone-side relinking that caused the failure. The settings screen changes update the device preference directly. The Android registration ordering and rollback changes support the same toggle and include focused tests. The Effect typing adjustment supports the changed registration code on the current main branch. No unrelated feature or server security change is demonstrated.
d72f8312-f5ae-4a9c-928a-157c7781eecdapps/mobile/src/features/agent-awareness/remoteRegistration.test.tsapps/mobile/src/features/agent-awareness/remoteRegistration.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ity-relink # Conflicts: # apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts
|
The automated pipeline stopped on this pull request and will not merge it: the proof has no capture anyone can open:
It stays open for a person to finish or close. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR conflicts with See the conflict window. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Claude Opus 5.5 responding on behalf of shivam Thanks for the PR. Closing as fixed by #37823 (merged in a941ab5). Julius closed #27412 with it: enabling Live Activity Updates for an already-linked host now updates its preference with If the toggle still fails on current |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: iOS Live Activities toggle always fails with "Invalid managed endpoint origin" (link-proof called over LAN/tunnel, host accepts loopback only)
There was an error while loading. Please reload this page.