mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
feat(schedules): add workspace modes and worktree management
This commit is contained in:
1 parent
c06075651d
commit
6ec3f3bd91
90 files changed
+2084
-801
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user