Skip to content

The agent that grows with you

test(desktop): add branchSessionAtMessage to the tile-action and session-state delegate harnesses

Brooklyn Nicholson6588fcffcbf1
diff --git a/apps/desktop/src/app/chat/session-tile-actions.test.ts b/apps/desktop/src/app/chat/session-tile-actions.test.ts
index 90a144d008e..bd9ef82d075 100644
--- a/apps/desktop/src/app/chat/session-tile-actions.test.ts
+++ b/apps/desktop/src/app/chat/session-tile-actions.test.ts
@@ -247,6 +247,7 @@ describe('useSessionTileActions reloadFromMessage failed-submit rollback (#95745
setSessionTileDelegate({
archiveSession: vi.fn(async () => undefined),
branchSession: vi.fn(async () => undefined),
+ branchSessionAtMessage: vi.fn(async () => true),
deleteSession: vi.fn(async () => undefined),
executeSlash: vi.fn(async () => undefined),
interruptSession: vi.fn(async () => undefined),
diff --git a/apps/desktop/src/store/session-states.test.ts b/apps/desktop/src/store/session-states.test.ts
index 53fa072b59c..58a9bbc7aa9 100644
--- a/apps/desktop/src/store/session-states.test.ts
+++ b/apps/desktop/src/store/session-states.test.ts
@@ -276,6 +276,7 @@ function runtimeBindingDelegate(
return {
archiveSession: vi.fn(),
branchSession: vi.fn(),
+ branchSessionAtMessage: vi.fn(async () => true),
deleteSession: vi.fn(),
executeSlash: vi.fn(),
interruptSession: vi.fn(),