feat(schedules): add workspace modes and worktree management

This commit is contained in:
Chris Scott committed 2026-10-06 10:16:34 -04:00
1 parent c06075651d
commit 6ec3f3bd91
90 files changed
+2084 -801

No files matched your search

+4 -2
View File
@@ -180,11 +180,13 @@ export const useCreateSession = (
title?: string;
agent?: string;
model?: string;
directory?: string;
}) => {
if (!directory) {
const targetDirectory = data.directory ?? directory;
if (!targetDirectory) {
throw new Error('A directory is required to create a session');
}
return createSession({ directory, ...data });
return createSession({ ...data, directory: targetDirectory });
},
onSuccess: (session) => {
invalidateSessionListCaches(queryClient);