Skip to content

feat(mobile): own-team builds register with each computer for direct push alerts - #82

Merged
maschwenk merged 2 commits into
mainfrom
feat/mobile-direct-push
Nov 16, 2026
Merged

maschwenk merged 2 commits into
mainfrom
feat/mobile-direct-push

Conversation

@maschwenk

@maschwenk maschwenk commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

the phone half of direct push. a T3 Fork build signed with my own team can't get pushes from the relay, so now it registers its apns token with every computer it's connected to, and those computers send the alerts with my key

  • only builds with T3CODE_IOS_TEAM_ID set do this (extra.directPush). store, preview and dev builds keep the t3 connect path untouched, and the config test pins both cases
  • registers with each connected computer that grants orchestration:read, and again when a computer connects, the push token rotates, or the app comes back to the foreground (so a computer that just got t3 push key flips over)
  • settings → notifications in these builds is a simpler screen: one switch for permission, then each computer with its state: sends alerts, needs t3 push key, or its t3 code can't send directly (404 from an older or non-fork server)
  • the apns environment comes from the embedded provisioning profile, not the variant: a release build installed straight to a phone is development-signed, so its token only works against the sandbox
  • taps already open the thread, since the server sends the same payload shape the relay does
  • readme's own-team section says how to set up the key now

built and installed on my phone (team HT3D6A9A8H, com.maschwenk.t3code). the apns key works against both sandbox and production (BadDeviceToken for a fake token, so the key and topic pass). an end to end alert still waits on the desktop running #81 and the phone registering. the local unused patches check and release smoke both fail on an unmet unenv peer in infra/relay, same as main

stacked on the server side:

Claude Opus 5.5 in T3 Code did the work.

@maschwenk
maschwenk added this pull request to stack #83 November 16, 2026 14:38
@maschwenk maschwenk added the coder-task-generated Created from a coding task label Nov 16, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Baseline: a0fa223 · PR result: 4cbded6 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@maschwenk
maschwenk force-pushed the feat/mobile-direct-push branch from 6dd7248 to 2cb4949 Compare November 16, 2026 15:27
Base automatically changed from feat/direct-apns-push to main November 16, 2026 15:46
…push alerts

A build signed by your own Apple team can't get pushes from T3 Connect's relay,
so it now registers its APNs token with every connected computer that grants
orchestration:read, and those computers send alerts with your key. It
re-registers when a computer connects, on token rotation and on return to the
foreground. Notifications settings in these builds turn on permission and show
each computer's state: sending, needs `t3 push key`, or can't send directly.
A Release build installed straight to a phone is development-signed, so its
APNs token only works against the sandbox even though the variant is
production. Read the environment from the embedded provisioning profile and
fall back to the variant only when there is none.
@maschwenk
maschwenk force-pushed the feat/mobile-direct-push branch from 2cb4949 to 4cbded6 Compare November 16, 2026 15:46
@maschwenk
maschwenk marked this pull request as ready for review November 16, 2026 15:59
@maschwenk
maschwenk merged commit 7d35bfb into main Nov 16, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coder-task-generated Created from a coding task size:L 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.

1 participant