Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Cover runtime undefined draft thread options in store test
Julius Marmingea574d9c936ad
diff --git a/apps/web/src/composerDraftStore.test.ts b/apps/web/src/composerDraftStore.test.tsindex c2dd5c124..c994fcb79 100644--- a/apps/web/src/composerDraftStore.test.ts+++ b/apps/web/src/composerDraftStore.test.ts@@ -282,10 +282,14 @@ describe("composerDraftStore project draft thread mapping", () => {branch: "main",worktreePath: "/tmp/main-worktree",});- store.setProjectDraftThreadId(projectId, threadId, {+ const runtimeUndefinedOptions = {branch: undefined,worktreePath: undefined,- });+ } as unknown as {+ branch?: string | null;+ worktreePath?: string | null;+ };+ store.setProjectDraftThreadId(projectId, threadId, runtimeUndefinedOptions);expect(useComposerDraftStore.getState().getDraftThread(threadId)).toMatchObject({projectId,