GeezerVison is showing github.com — fix(mobile): new thread starts in the thread list's filtered project by juliusmarminge · Pull Request #36234 · pingdotgg/t3code
Conversation
On mobile, New thread ignored the thread list's project filter and fell back to the remembered last project. The single new-thread handler (AdaptiveWorkspaceLayout.handleStartNewTask, used by every New thread button, the Android FAB, the empty-pane buttons and the keyboard shortcut) now resolves the list's filter the same way the list does, and newTaskDestination takes it after the current thread's project and before the remembered one. resolveHomeProjectFilterScope is extracted so HomeRouteScreen, ThreadNavigationSidebar and the handler share it, which keeps the legacy scratch-key and archived-scope handling. newTaskFilteredProject picks a live copy of a multi-machine project: the remembered copy if it is one, otherwise a connected machine. Turning off 'Use last project' still always opens the picker. The user docs paragraph is updated. I merged origin/main into the author's head; the only conflict was an import block in HomeRouteScreen.tsx (main added runWhenHomeCovered). The author's approach and tests were kept unchanged. The push to fix/issue-29034 was refused, so the branch is on the factory fallback.
Fixes #29034
Supersedes #29075. The change is @juliusmarminge's; their commits are kept.
Reproduction on main
On mobile, connect to an environment containing projects Alpha and Bravo and enable Settings → General → Use last project. Open New thread, choose Bravo, then return to Chats. Select Filter → Project → Alpha and press New thread. Main opens the draft in Bravo; this change should open it in Alpha. These steps were read from the issue and PR, not executed.
Evidence
Pixel 9 · Android 16 · 1080×2424 · light theme · separate fresh environments with synthetic Alpha and Bravo projects.
With Use last project enabled, choose Bravo in New thread and return to Chats. Reopen Bravo to confirm it was remembered, return to Chats, select Filter → Project → Alpha, then press New thread. Base incorrectly opens Bravo; head opens Alpha. Environment labels are redacted.
Recorded interaction driver · Synthetic project seed script
Not shown:
- iOS: the scenario runner stopped before reproduction because base device leasing failed and head video startup timed out; proof was completed manually on Android.
- Grouped project copies across multiple environments and archived, offline, or removed-connection fallback cases were outside this reproduction.
Tests
vp test run src/features/threads/new-task-project-selection.test.ts (apps/mobile): 24 passed. vp run check:changed: format, lint, knip 1/2 and 2/2, typecheck (2 packages), tests (2 files, 28 passed, plus 11 related), react compiler (6 files): all pass.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
When the Chats list is filtered to one project, New thread now starts in
that project ahead of the remembered last project. The open thread's
project still wins, and "Use last project" off still opens the picker.
The list and the sidebar share one helper to resolve the filter scope.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
# apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
# apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
Approvability
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — New mobile threads now prefer the list's filtered project over the remembered project when no current thread supplies one. Human review is required for this change to the default project-selection behavior.
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.
coderabbitai
Bot
commented
Nov 13, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Mobile New thread selection now uses the thread-list project filter as a project candidate. The current thread project remains first in destination precedence, followed by the filtered project and then the remembered project.
Changes: Mobile project-filtered new-thread selection
| Layer / File(s) |
Summary |
Resolve the selected project filter apps/mobile/src/features/home/HomeRouteScreen.tsx, apps/mobile/src/features/home/homeThreadList.ts, apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx |
The home route and thread sidebar use resolveHomeProjectFilterScope to resolve the selected key to a pickable scope. The resolver handles scratch-project compatibility and returns null when no pickable scope matches. |
Use the filter scope for new-thread selection apps/mobile/src/state/use-remote-environment-registry.ts, apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx, apps/mobile/src/features/threads/new-task-project-selection.ts, apps/mobile/src/features/threads/new-task-project-selection.test.ts, docs/user/thread-sidebar.md |
The layout resolves a filtered-project candidate using the saved filter and connected environments. Destination selection checks the current project first, then the filtered project, then the remembered project. Tests cover candidate selection and precedence. The mobile instructions describe the fallback order. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Low
Sequence Diagram(s)
sequenceDiagram
participant AdaptiveWorkspaceLayout
participant savedConnectionsByIdAtom
participant resolveHomeProjectFilterScope
participant newTaskFilteredProject
participant newTaskDestination
AdaptiveWorkspaceLayout->>savedConnectionsByIdAtom: validate saved environment filter
AdaptiveWorkspaceLayout->>resolveHomeProjectFilterScope: resolve saved project filter
resolveHomeProjectFilterScope-->>AdaptiveWorkspaceLayout: matching scope or null
AdaptiveWorkspaceLayout->>newTaskFilteredProject: select live project from scope
newTaskFilteredProject-->>AdaptiveWorkspaceLayout: filtered project or undefined
AdaptiveWorkspaceLayout->>newTaskDestination: choose destination using precedence
Loading
Suggested reviewers: t3dotgg, maria-rcks
Merge Risk: Minimal · up to 67a03
-
On mobile, New thread now prefers the project the thread list is filtered to, then falls back to the remembered project. The open thread's project still comes first, and turning off Use last project still opens the picker. No concrete defect was found, and the change looks ready to merge.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the mobile New thread action now starts in the project that the thread list filter selects. It follows the conventional commit form and fits the summary, the objective… |
| Linked Issues check |
 |
Directly linked issue #29034 requires that a New thread started while the thread list has a single-project filter preselects the filtered project instead of the remembered new-session project. At the … |
| Out of Scope Changes check |
 |
The changes map to the #29034 objective or are direct support for it. The filtered-project selection and destination ordering are the core fix. resolveHomeProjectFilterScope is extracted so HomeRouteS… |
| Description check |
 |
The PR description follows the repository template closely. It includes a Problem section (New thread ignores the thread list's project filter and falls back to the remembered last project), a Change … |
Full details: Title check
-
Explanation
The title names the main change: the mobile New thread action now starts in the project that the thread list filter selects. It follows the conventional commit form and fits the summary, the objectives, and the linked issue #29034. The title is concise and specific.
Full details: Linked Issues check
-
Explanation
Directly linked issue #29034 requires that a New thread started while the thread list has a single-project filter preselects the filtered project instead of the remembered new-session project. At the reviewed head, newTaskDestination in apps/mobile/src/features/threads/new-task-project-selection.ts resolves the project in this order: currentProject, then filteredProject, then lastProject (only when useLastProject is not false). The new newTaskFilteredProject helper returns a live (non-archived) copy of the filtered project, preferring the remembered copy and otherwise a connected machine. AdaptiveWorkspaceLayout supplies the filtered project from the saved list filter, and resolveHomeProjectFilterScope is shared with the list so both use the same filter. The PR tests cover filtered-over-remembered precedence and the 'Use last project' off case, which still opens the picker. Two points to note: the open thread's project still outranks the filter, which matches existing behavior and the PR's stated intent; and the test suite was not re-run during this assessment. Runtime behavior on a device was not verified; the Evidence section is still pending.
Full details: Out of Scope Changes check
-
Explanation
The changes map to the #29034 objective or are direct support for it. The filtered-project selection and destination ordering are the core fix. resolveHomeProjectFilterScope is extracted so HomeRouteScreen, ThreadNavigationSidebar, and the handler share one filter rule, which is a supporting refactor. The export of savedConnectionsByIdAtom is needed by the handler. Tests cover the new behavior. The docs/user/thread-sidebar.md update describes the new fallback order. The HomeRouteScreen import conflict resolved during the origin/main merge is a merge artifact and does not add behavior. No unrelated change was found in the reviewed diff.
Full details: Description check
-
Explanation
The PR description follows the repository template closely. It includes a Problem section (New thread ignores the thread list's project filter and falls back to the remembered last project), a Change section explaining the shared handler, resolver extraction, and newTaskFilteredProject, and a Scope section that links issue #29034 and the superseded PR #29075. The Verification section lists focused test results, a full check run, and before/after screenshots and recordings for the UI behavior. It also states what was not checked: iOS was not verified, and grouped multi-environment copies and archived/offline/removed-connection fallbacks were outside the reproduction. The template's closing line asks for the model and harness used, and the description does include this (Claude Opus 5.5 in Claude Code, with reviewers listed). The reproduction steps were read from the issue and not executed, which the author states openly. The description is thorough and mostly complete.
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
-
Commits
-
Reviewing files that changed from the base of the PR and between 9b6dde9 and 67a031d.
Files selected for processing: 8
-
apps/mobile/src/features/home/HomeRouteScreen.tsx
apps/mobile/src/features/home/homeThreadList.ts
apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
apps/mobile/src/features/threads/new-task-project-selection.test.ts
apps/mobile/src/features/threads/new-task-project-selection.ts
apps/mobile/src/state/use-remote-environment-registry.ts
docs/user/thread-sidebar.md
Limit details: You’ve used all 10 included reviews currently available.
|
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.
This was referenced Nov 18, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
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.
|