Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): archiving a thread keeps its linked-environment tasks under it #30266

Closedpsick22(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/30266/headopened View on GitHub

Showing 6 changed files with 10 additions and 0 deletions (loading 3).

x
0 of 6 viewed, 6 left
4 additions and 0 deletionsapps/mobile/src/state/threads.tsModified
View file
@@ -21,6 +21,7 @@
pendingThreadCreationOutcomesAtom,
selectThreadCreationDetail,
} from "./pending-thread-creation";
+import { orchestrationEnvironment } from "./orchestration";
import { serverEnvironment } from "./server";
import { environmentShell } from "./shell";
import { threadOutboxManager } from "./thread-outbox";
@@ -45,6 +46,9 @@
catalogValueAtom: environmentCatalog.catalogValueAtom,
snapshotAtom: threadEnvironment.snapshotAtom,
hiddenThreadTagsAtom: serverEnvironment.hiddenThreadTagsAtom,
+ archivedSnapshotAtom: (environmentId) =>
+ orchestrationEnvironment.archivedShellSnapshot({ environmentId, input: {} }),
+ shellStateAtom: environmentShell.stateAtom,
});
export const childThreadApprovalsAtom = createChildThreadApprovalsAtom({
childThreadInputsAtom: environmentThreadShells.childThreadInputsAtom,
2 additions and 0 deletionsapps/mobile/src/state/use-composer-drafts.test.tsModified
View file
@@ -315,6 +315,8 @@
catalogValueAtom,
snapshotAtom: () => snapshotAtom,
hiddenThreadTagsAtom: () => Atom.make(null),
+ archivedSnapshotAtom: () => Atom.make(AsyncResult.initial()),
+ shellStateAtom: () => shellResultAtom,
});