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 4aab23c
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -2071,6 +2078,18 @@ const make = Effect.gen(function* () {
2071
2078
: "bindToCurrentThread binds to this thread, which belongs to a different project.",
2072
2079
);
2073
2080
}
2081
+
// A save keeps a bound thread unless the task goes back to new threads, so this pair
2082
+
// would leave runs in the old thread.
2083
+
if(
2084
+
input.bindToCurrentThread===false&&
2085
+
input.freshSession===true&&
2086
+
existing.threadId!==null
2087
+
){
2088
+
returnyield*failure(
2089
+
"invalid_request",
2090
+
"To move this task to a new thread with fresh sessions, first unbind it with bindToCurrentThread: false, then set freshSession: true in a second call.",
2091
+
);
2092
+
}
2074
2093
constthreadId=
2075
2094
input.bindToCurrentThread===undefined
2076
2095
? existing.threadId
@@ -2090,6 +2109,18 @@ const make = Effect.gen(function* () {
0 commit comments