@devries-cameron20 / t3code-1 / commits / a574d9c936
Fork 0

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

Cover runtime undefined draft thread options in store test

- Build options object with runtime `undefined` values via cast - Pass object into `setProjectDraftThreadId` to verify handling path

Julius Marminge committed Mar 1, 2026 at 19:18 UTC a574d9c936adcf0a8ccc9b10d8f65e0127d13adc
1 file changed +6 -2
apps/web/src/composerDraftStore.test.ts
+6 -2
@@ -282,10 +282,14 @@ describe("composerDraftStore project draft thread mapping", () => {
282 branch: "main",
283 worktreePath: "/tmp/main-worktree",
284 });
285 - store.setProjectDraftThreadId(projectId, threadId, {
285 + const runtimeUndefinedOptions = {
286 branch: undefined,
287 worktreePath: undefined,
288 - });
288 + } as unknown as {
289 + branch?: string | null;
290 + worktreePath?: string | null;
291 + };
292 + store.setProjectDraftThreadId(projectId, threadId, runtimeUndefinedOptions);
293
294 expect(useComposerDraftStore.getState().getDraftThread(threadId)).toMatchObject({
295 projectId,