GeezerVison is showing github.com — refactor(mobile): stop writing the resolved project filter back from an effect by juliusmarminge · Pull Request #26049 · pingdotgg/t3code
Conversation
Problem
Mobile Home and the split-view thread sidebar resolve a legacy per-environment scratch project filter key to the shared scratch key during render, and then also wrote that resolved key back into the list options (and mobile preferences) from a useEffect. Every reader already uses the resolved key, so the write-back was state synchronization: an extra render and a preferences write after a legacy key resolved, duplicated in two screens.
Change
Delete both write-back effects. The key is still resolved in render exactly as before; the stored key now changes only when the user picks a filter (setSelectedProjectKey from the menu handlers).
What this improves
- Sync removed: two set-in-effect write-backs of a render-derived value into persisted state.
- Renders avoided: the extra render each screen did after a legacy key resolved (one-time per migration).
- No bug fix is claimed.
Behavior changes
- A legacy per-environment scratch key stored by older app versions is no longer rewritten to the shared scratch key in mobile preferences; it resolves again on every read. The UI shows the same filter.
- Edge case: if every scratch project that matches the legacy key disappears and an unrelated scratch project appears later, that new project is no longer auto-selected as the filter.
Effects
apps/mobile/src/features/home/HomeRouteScreen.tsx: 1 -> 0
apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx: 1 -> 0
Verification
vp test run src/features/home/home-list-options.test.tsx (apps/mobile): pass
vp run check:changed: format, lint, knip 1/2, knip 2/2, typecheck all pass
Model: Claude Opus 5.5, Claude Code harness.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…an effect
Home and the split-view sidebar resolve a legacy per-environment scratch
project filter key to the shared scratch key in render, then also wrote
that resolved key back to the list options (and mobile preferences) from
a useEffect. Every reader already uses the resolved key, so the write-back
only caused an extra render and a preferences write after a legacy key
resolved.
Delete both write-back effects. The stored key now changes only when the
user picks a filter. One edge case changes: an unmigrated legacy key keeps
resolving on each render, so if every matching scratch project disappears
and an unrelated one appears later, it is no longer auto-selected.
Effects: HomeRouteScreen.tsx 1 -> 0, ThreadNavigationSidebar.tsx 1 -> 0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at 4fd02c0
Macroscope's review found this PR approvable — This is a small, localized mobile refactor that removes redundant effect-driven preference writes while preserving the resolved project filter used by the UI and thread search. The remaining behavior change is limited to legacy filter keys staying persisted instead of being rewritten.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between dc84b09 and 4fd02c0.
Files selected for processing: 2
-
apps/mobile/src/features/home/HomeRouteScreen.tsx
apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Walkthrough
-
Home and thread sidebar screens continue to resolve project keys during render. They no longer update the stored selection when the resolved key differs.
Changes: Project key resolution
| Layer / File(s) |
Summary |
Render-only project key resolution apps/mobile/src/features/home/HomeRouteScreen.tsx, apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx |
Both screens keep the resolved project key for filtering and remove the effect that wrote a differing key to the stored selection. Both also remove the unused useEffect import. |
Priority: Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
Suggested reviewers: pixpmusic, maria-rcks, t3dotgg
Merge Risk: Minimal · up to 4fd02
-
The filters continue to display the appropriate selection, and an unrelated project is not selected when an old project disappears. No merge-blocking issue is established.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "refactor(mobile): stop writing the resolved project filter back from an effect" matches the changeset. The diff removes the useEffect write-backs in HomeRouteScreen.tsx and ThreadNavigation… |
| Description check |
 |
The description follows the template's sections: Problem, Change, Scope and approval, and Verification. The Problem and Change sections explain the write-back removal and its reason clearly. Scope and… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "refactor(mobile): stop writing the resolved project filter back from an effect" matches the changeset. The diff removes the useEffect write-backs in HomeRouteScreen.tsx and ThreadNavigationSidebar.tsx, so the stored project filter changes only on user selection. The title is specific, follows conventional commit form, and names the main change.
Full details: Description check
-
Explanation
The description follows the template's sections: Problem, Change, Scope and approval, and Verification. The Problem and Change sections explain the write-back removal and its reason clearly. Scope and approval is missing. The description does not link a triaged issue or maintainer-approved discussion, and it does not explain why the change qualifies as a small, focused fix without one. Verification lists focused test and check results. It gives no UI before/after evidence, but the change alters no visual UI. The description also includes a behavior change that a maintainer should weigh. The description is mostly complete, but the missing scope and approval section is a real gap.
Resolution
Consider adding to the Scope and approval section a link to the triaged issue or maintainer-approved discussion. If none exists, explain why this refactor qualifies without prior approval. Also consider noting in Verification that no UI behavior changed, so no screenshots are needed.
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
github-actions Bot
added a commit
to omarcresp/t3code-flake
that referenced
this pull request
Oct 28, 2026
## What's Changed
* fix(mobile): center Android sheets and fit book-mode sheets in the left pane by @PixPMusic in pingdotgg/t3code#18492
* fix(mobile): keep the collapsed Android rail square by @PixPMusic in pingdotgg/t3code#26039
* fix(web): closing the last Browser tab hides the right panel again by @juliusmarminge in pingdotgg/t3code#26058
* refactor(web): pull requests Cmd+F focuses the topbar search directly by @juliusmarminge in pingdotgg/t3code#26045
* refactor(web): install draft model reconciliation at app start by @juliusmarminge in pingdotgg/t3code#26046
* perf(mobile): project favicons mount their image in one commit by @juliusmarminge in pingdotgg/t3code#26047
* refactor(web): the upload queue alone records finished file uploads on drafts by @juliusmarminge in pingdotgg/t3code#26050
* feat(mobile): Usage uses the width on iPad and unfolded phones by @juliusmarminge in pingdotgg/t3code#26061
* fix(gitcafe): PR panel follows renumbered pull requests by @juliusmarminge in pingdotgg/t3code#26079
* chore(infra): bump Alchemy to 2.0.0-beta.84 by @juliusmarminge in pingdotgg/t3code#26057
* refactor(mobile): stop writing the resolved project filter back from an effect by @juliusmarminge in pingdotgg/t3code#26049
* fix(mobile): a pairing link fills the open Add environment form instead of stacking another by @juliusmarminge in pingdotgg/t3code#26052
* fix(mobile): snooze menu times advance with the clock by @juliusmarminge in pingdotgg/t3code#26043
* fix(clients): prompt links find projects cloned from git.cafe by @juliusmarminge in pingdotgg/t3code#26042
* fix(server): retry Codex capacity failures with empty input by @Yash-Singh1 in pingdotgg/t3code#25611
* fix(server): recover handoffs when target context is exhausted by @Yash-Singh1 in pingdotgg/t3code#25610
* fix(web): chips drop their pill and stay readable on every theme by @flamboh in pingdotgg/t3code#25066
* fix(mobile): switching pull request tabs no longer jumps the page by @flamboh in pingdotgg/t3code#26064
* feat(mobile): report crashes to Axiom with symbolicated stacks by @gabrielelpidio in pingdotgg/t3code#19093
* fix(web): chip palette test follows the single design by @juliusmarminge in pingdotgg/t3code#26131
* feat(server): /mcp narrows a client's modes from T3-Mode-Limit by @juliusmarminge in pingdotgg/t3code#16653
* feat(server): t3_thread_launch takes clientRequestId by @juliusmarminge in pingdotgg/t3code#16654
* feat(server): link to another environment by @juliusmarminge in pingdotgg/t3code#16655
* feat(server): agents use linked environments through any T3 tool by @juliusmarminge in pingdotgg/t3code#16684
* feat(server): work a linked environment starts stays within its link by @juliusmarminge in pingdotgg/t3code#16695
* feat(web,mobile): linked environments in Connections by @juliusmarminge in pingdotgg/t3code#16698
* feat(server): delegate_task to a linked environment by @juliusmarminge in pingdotgg/t3code#16719
* feat(server,web,mobile): an agent sets up a link to another environment by @juliusmarminge in pingdotgg/t3code#17129
* feat(server,web,mobile): @-mention a machine, and linked environments become a Labs beta by @juliusmarminge in pingdotgg/t3code#17130
* fix(mobile): dragging a microphone or environment route now saves its new place by @juliusmarminge in pingdotgg/t3code#26096
* feat(web): channel artwork choice on Latest, plus nightly or dev art on any channel by @maria-rcks in pingdotgg/t3code#26138
* feat(mobile): browse ZIP attachments with the shared archive reader by @Bil0000 in pingdotgg/t3code#19463
* fix(server): Claude --settings launch args merge with T3's settings instead of being dropped by @t3dotgg in pingdotgg/t3code#22864
* feat(server,web): see and stop the dev servers a thread started by @t3dotgg in pingdotgg/t3code#22542
* fix(web): composer no longer jumps when a second line is added by @maria-rcks in pingdotgg/t3code#26155
* feat(web,mobile): queued messages show who sent them by @juliusmarminge in pingdotgg/t3code#26159
* fix(preview): agent and browser panel show the same page after a late desktop attach by @t3dotgg in pingdotgg/t3code#22877
* fix(web): pairing, connect, error, and Clerk sign-in surfaces match the app's dialog style by @maria-rcks in pingdotgg/t3code#25281
* fix(server): parallel worktree launches no longer fail on .git/config lock by @juliusmarminge in pingdotgg/t3code#25700
* fix(task-cache): the hook test waits for every flusher it starts by @juliusmarminge in pingdotgg/t3code#26148
* chore(lint): every React effect states its reason at the call site by @juliusmarminge in pingdotgg/t3code#26161
* test(server): the link-card retry test names a new MCP credential by @juliusmarminge in pingdotgg/t3code#26143
* perf(web): stop measuring table cells while replies stream by @t3dotgg in pingdotgg/t3code#26152
* feat(desktop): add a remote server by clicking its t3code://pair link by @t3dotgg in pingdotgg/t3code#24111
* fix(server): agent questions stay answerable after a server restart by @SunkenInTime in pingdotgg/t3code#19229
* chore(lint): the effect lint error walks the alternatives before the suppression by @juliusmarminge in pingdotgg/t3code#26181
* fix(web): settings avatar no longer hugs the modal corner by @t3dotgg in pingdotgg/t3code#26180
* fix(mobile): shared file names can no longer write outside the Android cache by @juliusmarminge in pingdotgg/t3code#26175
* fix(server): repository lookups no longer send GitHub tokens to arbitrary hosts by @juliusmarminge in pingdotgg/t3code#26176
* fix(github): long period runs no longer freeze reference autolinking by @juliusmarminge in pingdotgg/t3code#26177
* fix(mobile): Android diff ellipsis no longer measures text quadratically by @juliusmarminge in pingdotgg/t3code#26174
* fix(server): Codex works again after its app-server is killed by @t3dotgg in pingdotgg/t3code#26188
**Full Changelog**: pingdotgg/t3code@v0.1.4-nightly.20261027.3783...v0.1.4-nightly.20261027.3796
Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.4-nightly.20261027.3796
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:trusted
Author is trusted by repo permissions or the VOUCHED list.
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.
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.
|