[Bug]: Every agent-activity publish queues a push while any thread waits for input (burst of identical "Input:" pushes) #28932
Version: T3 Code server 0.1.5 (linked environment, linkedEnvironmentsEnabled: true), macOS arm64.
What happened: A thread made one question (state waiting_for_input). T3 showed exactly one pending request. The phone got about 12 pushes within 2 minutes, all titled " / Input: ".
What the server trace shows (server.trace.ndjson, spans relay.agent_activity.publish, reason snapshot):
- The thread published
waiting_for_inputexactly once (20:52:19 UTC). The relay answereddeliveries: {total: 1, queued: 1, successful: 0, kinds: ["push_notification"]}. - Across the environment, a
push_notificationis queued for publishes of other threads too (starting,running,completed), but only while some thread iswaiting_for_input. When the last waiting thread resumes, queued drops to 0 (seen in two time windows, 20:31-21:01 and 22:11-22:39 UTC, 11-01). - Between 20:52:19 and 20:56:22 UTC the environment queued 13 pushes across 5 threads.
Controlled test (11-01, 22:45-22:47 UTC): thread A asked one question while thread B (a real one, also asking) and three trivial threads ran. The phone got 3 pushes titled for A and 13 titled for B. The trace shows 3 publishes (A's waiting_for_input, then two of thread 1) while A was the newest pending question, and 14 queued publishes (starting/running/completed/state-clear from 5 threads) while B was. So: every publish from any thread in the environment, while a question is pending, queues one push, titled after the newest pending question.
Not claimed: that the server republishes the waiting thread (it does not).
Expected: one push per new waiting_for_input request on a thread; none for starting/running/completed unless that is a setting.
Not known: which pushes reached the phone, and whether the phone is registered more than once. The relay side is not visible from the server.
Settings: nothing in settings.json controls this (no notification keys).
Related (different trigger): #25582.
Another data point, plus one related request.
Data point: desktop nightly 0.1.8 (linked environment), iOS app, Claude provider, one long-lived chat plus many short-lived background threads. In about 30 minutes the phone showed 10 lock-screen pushes, all titled with the same thread and all "Input: ", then one "Done: ". That matches the pattern in this issue (publishes from other threads re-alerting a waiting thread) and the fix in #28940. Not verified: the relay-side delivery trace. I am going by the phone and the timing.
Related request (happy to move to Ideas if you prefer): all of this happened while I was actively working at the desktop in that same thread. Today nothing suppresses a phone push for that case: the mobile app only suppresses a notification when its own screen shows that thread (
foregroundNotificationBehavior), and the mobile registration hardcodes all fournotifyOn*flags totrue(makeRelayDeviceRegistrationRequest, see #21515). A small proposal: have the desktop report "active within the last N seconds" (or "this thread is focused") with its publish, and let the relay skip the alert push in that case, keeping pushes for when the user is away. Per-event toggles on the phone (#21515) would be the cheaper partial fix.tanstack-source added labelsbug
Additional triage report: settled threads continue generating input notifications.
What happened The reporter receives repeated phone notifications asking for input on two threads they describe as settled. They left the questions unanswered because they had already resolved the underlying problem.
Diagnosis The symptom closely matches this issue and #20087. In v0.1.9, projectThreadAwarenessV2 gives a pending user_input request priority over the run status, and settlement alone does not suppress a waiting_for_input activity.
The iOS fallback delivery path can select the first row of the user's entire activity aggregate rather than the thread whose activity was published. Waiting requests sort first. Unrelated thread activity can therefore alert an old input request again when Live Activities are enabled but there is no activity push token. PR #28940 addresses this and remains open at investigation time. The relevant agentAwareness.ts and ApnsDeliveries.ts files are identical in v0.1.9 and current main.
Repro candidate Leave an input request unanswered, then let another thread start or finish while the phone has Live Activity Updates enabled but no activity card running. Check whether the push names the old waiting thread. This was not reproduced during this triage.
Version and environment The reporter confirmed an iPhone 16 Pro Max running T3 Code mobile 2.3.0 on iOS 26.6.2. The affected remote server version is unconfirmed. The separate local triage environment is T3 Code Desktop/server 0.1.9 on macOS arm64, Darwin 25.3.0, Node 24.22.1. That local version is not evidence of the affected remote server's version.
Evidence and limits Both referenced threads belong to a linked environment that was unreachable over both advertised addresses. Their histories, settled flags, pending requests, and delivery traces could not be read. Diagnosis is based on the reporter's symptom, source review, and existing upstream reports. Notification frequency and Live Activity settings have not been confirmed. The running cloud relay's deployment version was not verified.
Workaround For an iPhone, try turning off Live Activity Updates in T3 Code Settings > Notifications while leaving ordinary Device Notifications enabled. Alternatively, archive the two finished threads after reconnecting to their host, which should publish activity removals. Neither workaround was applied or verified here.
Prepared by GPT-6.1 Sol through the Codex harness in T3 Code.
juliusmarminge closed this
Sign in to join this conversation.
Note
🤖 Claude Opus 5.5 commenting on this issue on behalf of Will
I'm hitting the same relay behavior, but with "done" alerts. My iPhone got 40+ copies of one thread's "done" alert, twice this morning.
Setup: desktop app and server 0.1.6 on macOS arm64. iOS App Store app 2.2.0. Live Activities off.
What I see: each burst starts when one thread publishes
completedonce. Over the next two minutes, about 89 publishes follow. All of them are state-clears (state: null) for other, long-finished threads. The phone rings once for each one, always with the same thread's "done" alert. Server trace, 2026-11-02 UTC:Why I think it rings: with no Live Activity token,
chooseDeliveryfalls back tonotificationForAggregate(infra/relay/src/agentActivity/ApnsDeliveries.ts:292). That takesaggregate.activities[0]and only checksshouldAlertForActivity. Forcompleted, that's a 2-minute freshness window (TERMINAL_NOTIFICATION_FRESHNESS_MS). Nothing compares against the previous aggregate or the thread being published. So any publish within 2 minutes of a completion sends that completion again.waiting_for_inputhas no freshness window, which fits the "Input:" bursts here.#15015 looks like the fix for the "done" case. It has been open since Oct 3.
My bursts are this big because the server sends far more publishes than it should. I filed that as #29358.
Not verified: relay-side deliveries. I'm going by the phone, the timing, and the code.