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 e333fdb
Browse filesBrowse the repository at this point in the historyBrowse files
* An interrupted execution a takeover may still run again: its run still admits tools. Another
762
774
* call's wait or workbench access must not revoke it as interrupted before that re-run.
763
775
*/
764
-
constrerunnableSimExecution=and(
776
+
constrerunnableSimExecution=allOf(
765
777
interruptedSimExecution,
766
778
sql`EXISTS (SELECT 1 FROM ${copilotRuns} r WHERE r.id = ${copilotAsyncToolCalls.runId} AND r.tool_admission_closed_at IS NULL AND r.status NOT IN (${sql.join(
@@ -1021,10 +1033,7 @@ export async function revokeExpiredSimToolExecutions(input: {
1021
1033
tx,
1022
1034
and(
1023
1035
sql`EXISTS (SELECT 1 FROM ${copilotRuns} r WHERE r.id = ${copilotAsyncToolCalls.runId} AND r.id = ${input.runId}::uuid AND r.user_id = ${input.userId})`,
@@ -1387,7 +1396,7 @@ export async function prepareWorkbenchAccess(
1387
1396
and(
1388
1397
sql`EXISTS (SELECT 1 FROM ${copilotRuns} r WHERE r.id = ${copilotAsyncToolCalls.runId} AND r.chat_id = ${owner.chatId} AND r.user_id = ${input.userId})`,
1389
1398
/** This run was just verified to admit tools; every older run's admission just closed. */
0 commit comments