GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): show push alerts while the open chat is reconnecting by SSHdotCodes · Pull Request #41625 · pingdotgg/t3code

Conversation

@SSHdotCodes

@SSHdotCodes SSHdotCodes commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Problem

While the app is in the foreground, foregroundNotificationBehavior silences any agent notification whose deep link matches the thread on screen, on the assumption that the live feed already shows the event. That assumption fails when the thread on screen is not live: the environment is reconnecting, or the thread is showing its cached copy while it catches up. In that state the "turn finished" or "needs your input" notification is suppressed, and the screen doesn't show the event either, so the user gets no sign of it until the feed recovers.

Expected: the notification stays silent only when the thread on screen is connected and its feed is live. Otherwise it shows like any other notification.

Change

  • foregroundNotificationBehavior takes a hasLiveFeed(deepLink) check and suppresses only when the target is the thread on screen and that check passes.
  • notificationNavigation.ts passes a check that reads the app's atom registry. It returns true only when the environment's presentation phase is connected and the thread's detail state is live. The detail is read only if the thread screen already holds it (appAtomRegistry.getNodes().has(...), the same guard threadPromptLink.ts uses), so a notification never starts loading a thread.
  • New foregroundNotificationBehavior.test.ts with two cases: silent when the feed is live, shown when it isn't.

Scope

Small mobile bug fix; no tracking issue.

Verification

  • How I found it: a bug hunt over a fork of T3 Code, where alerts for the open chat went missing while the phone reconnected.
  • RED on origin/main (1002934541): vp test run src/features/agent-awareness/foregroundNotificationBehavior.test.ts in apps/mobile: 1 failed | 1 passed (2); "shows the alert while the thread on screen is cached or reconnecting" fails with expected false to be true on shouldShowBanner.
  • GREEN on this branch: same file 2 passed (2); src/features/agent-awareness/ 41 passed (41).
  • Checks: effect-tsgo tsrs --noEmit in apps/mobile, vp lint on the folder, and the pre-commit vp fmt, vp lint and knip:check all passed.

Agent: GPT-6.2 Sol (Codex) found and fixed this in a fork of T3 Code; Claude Opus 5.5 (Claude Code) ported and tested it here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SSHdotCodes
fix(mobile): show push alerts while the open chat is reconnecting
5b57dd1
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Foreground notification handling now checks whether the on-screen thread has a live feed before suppressing a matching notification. The notification handler supplies the feed check, which requires a connected environment and a held thread atom with live status.

Changes: Foreground notifications

Layer / File(s) Summary
Resolve live-feed status
apps/mobile/src/features/agent-awareness/notificationNavigation.ts
The new helper parses the deep link and returns false when required identifiers are missing, the environment is disconnected, or the thread atom is not held. Otherwise, it checks whether the thread value has live status.
Gate notification suppression
apps/mobile/src/features/agent-awareness/foregroundNotificationBehavior.ts, apps/mobile/src/features/agent-awareness/notificationNavigation.ts, apps/mobile/src/features/agent-awareness/foregroundNotificationBehavior.test.ts
The notification handler passes the live-feed check to the foreground behavior function. The function suppresses a matching notification only when the check returns true. Tests cover live and non-live feed results.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#12045: Adds the iOS foreground notification handler whose suppression behavior this change updates.

Suggested reviewers: macroscopeapp

Merge Risk: Minimal · up to 5b57d

Foreground alerts now show when the open thread has no live feed, such as during reconnects or catch-up. The change is small and tested, and no merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(mobile): show push alerts while the open chat is reconnecting" follows conventional commit format and names the main change: foreground push alerts for the open thread are no longer sup…
Description check Passed The description follows the template sections (Problem, Change, Scope, Verification) and fills each one with specific content. The Problem explains the suppression bug and expected behavior. The Chang…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(mobile): show push alerts while the open chat is reconnecting" follows conventional commit format and names the main change: foreground push alerts for the open thread are no longer suppressed while the thread is reconnecting or showing cached data. The changeset adds a hasLiveFeed check to foregroundNotificationBehavior and wires it through notificationNavigation.ts, which matches the title.

Full details: Description check

Explanation

The description follows the template sections (Problem, Change, Scope, Verification) and fills each one with specific content. The Problem explains the suppression bug and expected behavior. The Change lists the new hasLiveFeed check, the atom registry guard, and the new test file. Scope explains this is a small bug fix with no tracking issue. Verification gives RED and GREEN test results and the commands run. The template's conventional-commit reminder and agent line are handled by the author's title and the final Agent line. One gap: the Verification section does not state what was not checked, which the template asks for. The description also does not link an issue or explain why one is absent beyond 'no tracking issue'. These gaps are minor.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 1002934
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8b55252d-1d13-4a97-af1a-adf8349b40e5
Commits

Reviewing files that changed from the base of the PR and between 1002934 and 5b57dd1.

Files selected for processing: 3

  • apps/mobile/src/features/agent-awareness/foregroundNotificationBehavior.test.ts
  • apps/mobile/src/features/agent-awareness/foregroundNotificationBehavior.ts
  • apps/mobile/src/features/agent-awareness/notificationNavigation.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@SSHdotCodes
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.