Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): cascade conversation lifecycle to subagent descendants #17245

ClosedQuicksaver(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/17245/headopened View on GitHub

Showing 21 changed files with 163 additions and 1 deletion (loading 18).

x
0 of 21 viewed, 21 left
55 additions and 0 deletionsapps/mobile/src/features/archive/archivedThreadList.test.tsModified
View file
@@ -78,6 +78,61 @@
expect(result[0]?.threads.map((thread) => thread.id)).toEqual(["thread-newer", "thread-older"]);
});
​
+ it("lists an archived parent without its archived subagents", () => {
+ const project = makeProject({ id: ProjectId.make("project-1"), title: "T3 Code" });
+ const parent = makeThread({
+ id: ThreadId.make("thread-parent"),
+ projectId: project.id,
+ title: "Parent",
+ });
+ const subagent = {
+ ...makeThread({ id: ThreadId.make("thread-subagent"), projectId: project.id, title: "Sub" }),
+ lineage: {
+ parentThreadId: parent.id,
+ relationshipToParent: "subagent" as const,
+ rootThreadId: parent.id,
+ },
+ };
+​
+ const result = buildArchivedThreadGroups({
+ snapshots: [makeSnapshot([project], [parent, subagent])],
+ environmentLabels: {},
+ environmentId: null,
+ searchQuery: "",
+ sortOrder: "newest",
+ });
+​
+ expect(result[0]?.threads.map((thread) => thread.id)).toEqual(["thread-parent"]);
+ });