Skip to content

Commit 4eb2256

Browse files
committed
Use default interaction mode in composer draft tests
- Import `DEFAULT_INTERACTION_MODE` in the draft store test - Assert project draft thread mapping against the shared default instead of hardcoded `chat`
1 parent 117b224 commit 4eb2256

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/web/src/composerDraftStore.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
type TerminalContextDraft,
1515
} from "./lib/terminalContext";
1616
import { createDebouncedStorage } from "./lib/storage";
17+
import { DEFAULT_INTERACTION_MODE } from "./types";
1718

1819
function makeImage(input: {
1920
id: string;
@@ -483,7 +484,7 @@ describe("composerDraftStore project draft thread mapping", () => {
483484
worktreePath: "/tmp/worktree-test",
484485
envMode: "worktree",
485486
runtimeMode: "full-access",
486-
interactionMode: "chat",
487+
interactionMode: DEFAULT_INTERACTION_MODE,
487488
createdAt: "2026-01-01T00:00:00.000Z",
488489
});
489490
expect(useComposerDraftStore.getState().getDraftThread(threadId)).toEqual({
@@ -493,7 +494,7 @@ describe("composerDraftStore project draft thread mapping", () => {
493494
worktreePath: "/tmp/worktree-test",
494495
envMode: "worktree",
495496
runtimeMode: "full-access",
496-
interactionMode: "chat",
497+
interactionMode: DEFAULT_INTERACTION_MODE,
497498
createdAt: "2026-01-01T00:00:00.000Z",
498499
});
499500
});

0 commit comments

Comments
 (0)