Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): cmd+k search hides subagents and favors recent, whole-word matches #24032

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/24032/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 4 changed files with 141 additions and 17 deletions (loading 1).

x
0 of 4 viewed, 4 left
4 additions and 1 deletionapps/mobile/src/features/keyboard/CommandPalette.tsxModified
View file
@@ -324,7 +324,10 @@
}),
}));
const threadItems: CommandPaletteItem[] = threads
- .filter((thread) => thread.archivedAt === null)
+ .filter(
+ (thread) =>
+ thread.archivedAt === null && thread.lineage.relationshipToParent !== "subagent",
+ )
.sort((left, right) =>
(right.latestUserMessageAt ?? right.updatedAt).localeCompare(
left.latestUserMessageAt ?? left.updatedAt,
110 additions and 0 deletionsapps/web/src/components/CommandPalette.logic.test.tsModified
View file
@@ -300,6 +300,116 @@
expect.objectContaining({ value: `thread:${idThread.id}` }),
]);
});
+​
+ it("hides subagent threads but keeps forks", () => {
+ const parentId = ThreadId.make("parent");
+ const items = buildThreadActionItems({
+ threads: [
+ makeThread({ id: parentId, title: "Parent" }),
+ makeThread({
+ id: ThreadId.make("subagent"),
+ title: "Subagent",
+ lineage: {