You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb07d5f
Browse filesBrowse the repository at this point in the historyBrowse files
"When you create a worktree outside the current working directory and intend to use it as your primary working directory, wait for the command creating it to finish before using `execute` to call `tools.opencode.session_move`.",
98
+
"When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` to make the worktree the session's working directory after the command creating it has finished.",
99
99
),
100
100
)
101
101
})
@@ -139,7 +139,7 @@ export const Plugin = {
139
139
execute: (input,context)=>
140
140
Effect.gen(function*(){
141
141
constsessionID=input.sessionID??context.sessionID
142
-
yield*ctx.session.move({
142
+
yield*sessions.move({
143
143
sessionID,
144
144
directory: input.directory,
145
145
delivery: "steer",
@@ -149,21 +149,18 @@ export const Plugin = {
149
149
content: `Moved session ${sessionID} to ${input.directory}.`,
150
150
}
151
151
}).pipe(
152
-
Effect.catch((error)=>{
153
-
if(errorinstanceofSessionErrors.NotFoundError)
154
-
returnEffect.fail(newToolFailure({message: `Session not found: ${error.sessionID}`, error }))
0 commit comments