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): the thread list shows server changes after a tab round trip by t3dotgg · Pull Request #35325 · pingdotgg/t3code

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Nov 12, 2026

Copy link
Copy Markdown
Member

On iPhone, after a tab round trip (Chats > Settings > Chats, and the same through PRs or Usage) the thread list stopped showing server changes. A rename on the server stayed stale for 20+ seconds, until the app went to the background and back or you did another round trip.

Cause

Each iOS tab slot shows its own copy of the Home route, and all copies report to one visibility store in home-route-visibility.ts. A tab switch ends on the leaving slot's disappear, so the store ended on "hidden" while Chats was on screen. useAtomValueWhileVisible then stopped reading thread data.

#27894 fixed this same event order for the iPad sidebar. The phone has no primary column, so it kept the bug.

Fix

  • A disappear hides Home only when another route has the focus (a pushed Thread, Settings, a sheet).
  • A list in a tab slot that is not the selected one stays paused, so the hidden copies do not rebuild.

The hold from #34596 is not changed.

Which commit introduced it

Not #34596. The bundle from the commit before it (5e2438ce946) shows the same stale row. The cause is older: the Home pause from #15705 together with one Home copy per tab slot from #18126 (5495cc44459, October 11). That is from reading the code and history. I did not bisect older commits on a device.

Proof

Unit test: home-route-visibility.test.tsx has two new cases (round trip through PRs and through Settings). Both fail on main with expected 1 to be 3 and pass with the fix.

iPhone 17 Pro simulator, iOS 26.5, two live environments plus 15 dead saved ones:

Result
Before, main Rename after Chats > Settings > Chats not shown in 15 s. 📹 before
After Rename shown in 0.4 to 0.8 s, 13 of 13 round trips (Settings, PRs, Usage), both environments. 📹 after
After, thread push and back Rename shown in 0.5 s

Cold launch with two environments that answer 1.0 s apart (socket ticket delayed 4 s and 5 s by a proxy). The list still changes once, in one frame, in 2 of 2 runs:

fix: both rows change in the same frame

📹 cold launch with the fix

Control, the bundle before #34596 with the same delays: the list changes twice, 0.9 s apart.

control before #34596: one row, then the other

📹 control

Not verified on a device: Android, iPad split view (its code path is not changed), and a simulator with no dead saved environments. The cause does not read environment state, and the unit test reproduces it with none.

Created with Claude Fable 5.2 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@t3dotgg @claude
fix(mobile): the thread list shows server changes after a tab round trip
45ebb05
On iPhone each tab slot shows its own copy of the Home route, and all of
them report to one visibility store. A tab switch ends on the leaving
slot's disappear, so after Chats > Settings > Chats (or PRs, or Usage) the
store said Home was hidden and the list stopped reading thread data until
the next focus event.

A disappear now hides Home only when another route has the focus, and a
list in a tab slot that is not the selected one stays paused.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 12, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 12, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 45ebb05

Macroscope's review found this PR approvable — The mobile thread list resumes updates after switching away and back, while inactive tabs remain paused. The change is confined to display subscriptions and does not alter stored data or product defaults.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Home route visibility now accounts for workspace tab activity and screen focus during transition-end events. Tests cover Home visibility across phone tab-slot changes and Thread focus, and retain the existing iPad sidebar assertion.

Changes: Home route visibility

Layer / File(s) Summary
Visibility rules
apps/mobile/src/features/home/home-route-visibility.ts
useHomeRouteVisible returns false for an inactive workspace tab after checking the primary column’s presented state. Closing transitions hide Home only when Home is not focused.
Transition wiring and tests
apps/mobile/src/Stack.tsx, apps/mobile/src/features/home/home-route-visibility.test.tsx
The Home transition-end listener passes the screen’s focused state. Tests cover inactive phone tab slots, returning to Chats, Thread focus, and the iPad sidebar transition.

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

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#24827: Adds the transition-end recorder and listener that this change updates.
  • pingdotgg/t3code#28324: Adds queued behavior that uses the Home visibility outcome changed here.
  • pingdotgg/t3code#27894: Updates the same visibility hook and its iPad primary-column behavior.

Suggested labels: bugfix

Suggested reviewers: juliusmarminge, macroscopeapp, maria-rcks

Merge Risk: Minimal · up to 45ebb

This change fixes stale thread-list updates after switching tabs on iPhone, and the tests cover the fixed cases. No merge-blocking issue was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a fix for the thread list not showing server changes after a tab round trip on mobile. It matches the objectives and the described visibility-store change. It follows …
Description check Passed The description follows the template well. It has a clear Problem (stale thread list after a tab round trip on iPhone), a Change section explaining the visibility-store fix, and a detailed Verificatio…
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 names the main change: a fix for the thread list not showing server changes after a tab round trip on mobile. It matches the objectives and the described visibility-store change. It follows the conventional commit format the template suggests.

Full details: Description check

Explanation

The description follows the template well. It has a clear Problem (stale thread list after a tab round trip on iPhone), a Change section explaining the visibility-store fix, and a detailed Verification section with unit test results, simulator measurements, and screenshots or recordings. The Scope section is weak: it does not link an issue that shows the bug, and it does not explain why no issue is needed. It cites related PRs (#27894, #34596) but not a tracked issue. It also names the model used, which the template asks for. The Verification section lists what was not checked, as the template requires.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • 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: t3/fix-mobile-thread-list-stale
  • File: .coderabbit.config.ts
  • Commit: 45ebb05
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 2dc912fb-a9b0-4a42-b1e9-690fa7c44a19
Commits

Reviewing files that changed from the base of the PR and between 2482b03 and 45ebb05.

Files selected for processing: 3

  • apps/mobile/src/Stack.tsx
  • apps/mobile/src/features/home/home-route-visibility.test.tsx
  • apps/mobile/src/features/home/home-route-visibility.ts

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@t3dotgg
t3dotgg merged commit fd8e386 into main Nov 12, 2026
35 checks passed

Uh oh!

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

@t3dotgg
t3dotgg deleted the t3/fix-mobile-thread-list-stale branch November 12, 2026 16:27
7331 pushed a commit to 7331/t3code that referenced this pull request Nov 12, 2026
@t3dotgg @claude @7331
fix(mobile): the thread list shows server changes after a tab round t…
03c0e92
…rip (pingdotgg#35325)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Yarden-zamir Yarden-zamir mentioned this pull request Nov 12, 2026
chore(sync): merge pingdotgg/t3code main Yarden-zamir/t3code#535
Merged
only21mil added a commit to only21mil/t3code that referenced this pull request Nov 12, 2026
@only21mil
Merge branch 'main' into fix/audit-m017
7857c8c
Resolved apps/mobile/src/features/home/home-route-visibility.ts by hand: took main's recordHomeTransitionEnd(closing, homeFocused) signature, doc comment and hide condition from pingdotgg#35325, and kept this branch's queued search clear, which now runs under that same condition (closing and not focused).
@only21mil only21mil mentioned this pull request Nov 12, 2026
fix(mobile): opening a search result clears Home's search on iPhone #28324
Merged
@t3dotgg t3dotgg mentioned this pull request Nov 12, 2026
fix(mobile): a cold launch shows the cached thread rows with the first frame #35683
Merged
@mfituri mfituri mentioned this pull request Nov 15, 2026
sync: upstream through 7b17bdbcef (54 commits) 1001-ai/1001-code#64
Merged
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Nov 23, 2026
@t3dotgg @claude @incognitojam
fix(mobile): the thread list shows server changes after a tab round t…
5519c0b
…rip (pingdotgg#35325)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit fd8e386)
Upstream-PR: 35325
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Nov 23, 2026
@t3dotgg @claude @incognitojam
fix(mobile): the thread list shows server changes after a tab round t…
9ccc55c
…rip (pingdotgg#35325)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit fd8e386)
Upstream-PR: 35325
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Nov 23, 2026
@t3dotgg @claude @incognitojam
fix(mobile): the thread list shows server changes after a tab round t…
6cb9c73
…rip (pingdotgg#35325)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit fd8e386)
Upstream-PR: 35325
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 26, 2026
@t3dotgg @claude @Pipyakas
fix(mobile): the thread list shows server changes after a tab round t…
e241b97
…rip (pingdotgg#35325)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit fd8e386)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or 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

@t3dotgg
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.