@devries-cameron20 / t3code-1 / commits / 03b55a228d
Fork 0

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

fix(web): hide native subagent threads in the legacy sidebar (#20808)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Lancy committed Oct 20, 2026 at 12:13 UTC 03b55a228ddda6c64e22003837ffadad34397285
1 file changed +13 -16
apps/web/src/components/LegacySidebar.tsx
+13 -16
@@ -185,6 +185,7 @@ import {
185 archiveSelectedThreadEntries,
186 buildMultiSelectThreadContextMenuItems,
187 deleteSelectedThreadEntries,
188 + filterSidebarV2VisibleThreads,
189 getSidebarThreadIdsToPrewarm,
190 resolveAdjacentThreadId,
191 isContextMenuPointerDown,
@@ -1157,7 +1158,7 @@ function useProjectThreads(project: SidebarProjectSnapshot) {
1158 ]),
1159 );
1160 const visibleProjectThreads = sortThreads(
1160 - sidebarThreads.filter((thread) => thread.archivedAt === null),
1161 + filterSidebarV2VisibleThreads(sidebarThreads, null),
1162 threadSortOrder,
1163 );
1164 const projectStatus = resolveProjectStatusIndicator(
@@ -3103,18 +3104,16 @@ function useSortedLegacySidebarProjects(input: {
3104 ...project,
3105 id: project.projectKey,
3106 }));
3106 - const sortableThreads = sidebarThreads
3107 - .filter((thread) => thread.archivedAt === null)
3108 - .map((thread) => {
3109 - const physicalKey =
3110 - projectPhysicalKeyByScopedRef.get(
3111 - scopedProjectKey(scopeProjectRef(thread.environmentId, thread.projectId)),
3112 - ) ?? scopedProjectKey(scopeProjectRef(thread.environmentId, thread.projectId));
3113 - return {
3114 - ...thread,
3115 - projectId: (physicalToLogicalKey.get(physicalKey) ?? physicalKey) as ProjectId,
3116 - };
3117 - });
3107 + const sortableThreads = filterSidebarV2VisibleThreads(sidebarThreads, null).map((thread) => {
3108 + const physicalKey =
3109 + projectPhysicalKeyByScopedRef.get(
3110 + scopedProjectKey(scopeProjectRef(thread.environmentId, thread.projectId)),
3111 + ) ?? scopedProjectKey(scopeProjectRef(thread.environmentId, thread.projectId));
3112 + return {
3113 + ...thread,
3114 + projectId: (physicalToLogicalKey.get(physicalKey) ?? physicalKey) as ProjectId,
3115 + };
3116 + });
3117 const sortedProjects = sortProjectsForSidebar(
3118 sortableProjects,
3119 sortableThreads,
@@ -3178,9 +3177,7 @@ function useLegacySidebarThreads(input: {
3177 }
3178 const visibleSidebarThreadKeys = sortedProjects.flatMap((project) => {
3179 const projectThreads = sortThreads(
3181 - (threadsByProjectKey.get(project.projectKey) ?? []).filter(
3182 - (thread) => thread.archivedAt === null,
3183 - ),
3180 + filterSidebarV2VisibleThreads(threadsByProjectKey.get(project.projectKey) ?? [], null),
3181 sidebarThreadSortOrder,
3182 );
3183 const projectExpanded = resolveProjectExpanded(