fix(prompt-gate): harden sync and team prompt dispatch
This commit is contained in:
@@ -66,6 +66,7 @@ export function promptAsyncInDirectory(
|
||||
input: routedArgs,
|
||||
source: "session-route",
|
||||
settleMs: 0,
|
||||
queueBehavior: "defer",
|
||||
}).then((result) => {
|
||||
if (result.status === "failed") {
|
||||
throw result.error
|
||||
@@ -82,7 +83,7 @@ export function promptWithRetryInDirectory(
|
||||
args: PromptRetryArgs,
|
||||
directory: string,
|
||||
): Promise<void> {
|
||||
return promptWithModelSuggestionRetry(client, routePromptRetry(args, directory))
|
||||
return promptWithModelSuggestionRetry(client, routePromptRetry(args, directory), { queueBehavior: "defer" })
|
||||
}
|
||||
|
||||
export function promptSyncWithRetryInDirectory(
|
||||
@@ -90,7 +91,7 @@ export function promptSyncWithRetryInDirectory(
|
||||
args: PromptSyncRetryArgs,
|
||||
directory: string,
|
||||
): Promise<void> {
|
||||
return promptSyncWithModelSuggestionRetry(client, routePromptSyncRetry(args, directory))
|
||||
return promptSyncWithModelSuggestionRetry(client, routePromptSyncRetry(args, directory), { queueBehavior: "defer" })
|
||||
}
|
||||
|
||||
export function messagesInDirectory(
|
||||
|
||||
Reference in New Issue
Block a user