@devries-cameron20 / t3code-1 / commits / 6b47939e60
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): thread list project filter lists recently active projects first (#36433)

Julius Marminge committed Nov 13, 2026 at 15:46 UTC 6b47939e606b17fc6fab278eec3fcbde65995514
3 files changed +36 -6
apps/mobile/src/features/home/HomeRouteScreen.tsx
+14 -3
@@ -28,7 +28,11 @@ import {
28 useAtomValueWhileVisible,
29 useHomeRouteVisible,
30 } from "./home-route-visibility";
31 -import { buildHomeProjectScopes, resolveHomeProjectFilterScope } from "./homeThreadList";
31 +import {
32 + buildHomeProjectScopes,
33 + resolveHomeProjectFilterScope,
34 + sortHomeProjectScopes,
35 +} from "./homeThreadList";
36 import { usePendingTaskListActions } from "./usePendingTaskListActions";
37 import { useThreadListActions } from "./useThreadListActions";
38 import { useWorkspaceTabs } from "../layout/workspace/WorkspaceTabsContext";
@@ -138,11 +142,18 @@ export function HomeRouteScreen() {
142 );
143 const projectFilterOptions = useMemo(
144 () =>
141 - pickableProjectGroups(projectScopes).map((scope) => ({
145 + pickableProjectGroups(
146 + sortHomeProjectScopes({
147 + scopes: projectScopes,
148 + threads,
149 + pendingTasks: [],
150 + projectSortOrder: "updated_at",
151 + }),
152 + ).map((scope) => ({
153 key: scope.key,
154 label: scope.title,
155 })),
145 - [projectScopes],
156 + [projectScopes, threads],
157 );
158 const selectedProjectKey =
159 resolveHomeProjectFilterScope(projectScopes, projects, listOptions)?.key ?? null;
apps/mobile/src/features/home/HomeScreen.tsx
+9 -1
@@ -92,6 +92,7 @@ import {
92 buildHomeProjectScopes,
93 findHomeProjectScope,
94 type HomeProjectSortOrder,
95 + sortHomeProjectScopes,
96 } from "./homeThreadList";
97 import { createSwipeRowActivation } from "./swipe-row-activation";
98 import { SwipeableScrollGateProvider, useSwipeableScrollGate } from "./thread-swipe-actions";
@@ -678,7 +679,14 @@ export function HomeScreen(props: HomeScreenProps) {
679 <ThreadListFilters
680 gutter={sidebarSurface ? 8 : 0}
681 environments={props.environments}
681 - projects={pickableProjectGroups(projectScopes).map((scope) => ({
682 + projects={pickableProjectGroups(
683 + sortHomeProjectScopes({
684 + scopes: projectScopes,
685 + threads: props.threads,
686 + pendingTasks: [],
687 + projectSortOrder: "updated_at",
688 + }),
689 + ).map((scope) => ({
690 key: scope.key,
691 label: scope.title,
692 }))}
apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
+13 -2
@@ -45,7 +45,11 @@ import { requestThreadMessageJump } from "./threadMessageJump";
45 import { useThreadListSearchMatches } from "./useThreadListSearchMatches";
46 import { useHomeListOptions } from "../home/home-list-options";
47 import { buildHomeListFilterMenuItems } from "../home/home-list-filter-menu";
48 -import { buildHomeProjectScopes, resolveHomeProjectFilterScope } from "../home/homeThreadList";
48 +import {
49 + buildHomeProjectScopes,
50 + resolveHomeProjectFilterScope,
51 + sortHomeProjectScopes,
52 +} from "../home/homeThreadList";
53 import { SwipeableScrollGateProvider, useSwipeableScrollGate } from "../home/thread-swipe-actions";
54 import { usePendingTaskListActions } from "../home/usePendingTaskListActions";
55 import { useThreadListActions } from "../home/useThreadListActions";
@@ -178,7 +182,14 @@ function ThreadNavigationSidebarPane(props: ThreadNavigationSidebarProps) {
182 }),
183 [projects, options.selectedEnvironmentId, options.projectGroupingMode],
184 );
181 - const projectFilterOptions = pickableProjectGroups(projectScopes).map((scope) => ({
185 + const projectFilterOptions = pickableProjectGroups(
186 + sortHomeProjectScopes({
187 + scopes: projectScopes,
188 + threads,
189 + pendingTasks: [],
190 + projectSortOrder: "updated_at",
191 + }),
192 + ).map((scope) => ({
193 key: scope.key,
194 label: scope.title,
195 }));