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 — refactor(mobile): stop writing the resolved project filter back from an effect by juliusmarminge · Pull Request #26049 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 27, 2026

Copy link
Copy Markdown
Member

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.

All reactions
@juliusmarminge @claude
refactor(mobile): stop writing the resolved project filter back from …
4fd02c0
…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]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 27, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 27, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: effect/split-a3-mobile-project-filter-writeback
  • File: .coderabbit.config.ts
  • Commit: 4fd02c0
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 9ac7cb53-4ea0-47e7-b636-bf75436d6a46
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

  • pingdotgg/t3code#24827: Removes the same effect-based selected-project-key updates in both screens.
  • pingdotgg/t3code#24826: Changes how Home list scope preferences are saved.
  • pingdotgg/t3code#24646: Uses selected project scopes for thread filtering and search in Home and the sidebar.

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: Passed 4
Check name Status Explanation
Title check Passed 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 Passed 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 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 "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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge
juliusmarminge merged commit d1c4b52 into main Oct 27, 2026
29 checks passed

Uh oh!

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

@juliusmarminge
juliusmarminge deleted the effect/split-a3-mobile-project-filter-writeback branch October 27, 2026 18:50
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Oct 28, 2026
@github-actions
nightly: 0.1.4-nightly.20261027.3796
fb46928
## 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
@adampeterhiggins adampeterhiggins mentioned this pull request Oct 29, 2026
chore: sync upstream through 07f7f976 adampeterhiggins/t3code#512
Merged
19 tasks done
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Nov 4, 2026
@juliusmarminge @claude @incognitojam
refactor(mobile): stop writing the resolved project filter back from …
0eeb2f0
…an effect (pingdotgg#26049)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d1c4b52)
Upstream-PR: 26049
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 9504a09f08 hal-c2/hal-c2#1189
Merged
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:M 30-99 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

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