fix(delegate-task): start sync prompts asynchronously
This commit is contained in:
@@ -74,6 +74,8 @@ export async function promptWithModelSuggestionRetry(
|
||||
source: "model-suggestion-retry",
|
||||
settleMs: 0,
|
||||
...(options.queueBehavior ? { queueBehavior: options.queueBehavior } : {}),
|
||||
...(options.checkStatus !== undefined ? { checkStatus: options.checkStatus } : {}),
|
||||
...(options.checkToolState !== undefined ? { checkToolState: options.checkToolState } : {}),
|
||||
})
|
||||
if (promptResult.status === "failed") {
|
||||
if (timeoutContext.wasTimedOut()) {
|
||||
|
||||
@@ -5,6 +5,8 @@ export interface PromptTimeoutArgs {
|
||||
export interface PromptRetryOptions {
|
||||
timeoutMs?: number
|
||||
queueBehavior?: "enqueue" | "defer"
|
||||
checkStatus?: boolean
|
||||
checkToolState?: boolean
|
||||
}
|
||||
|
||||
export const PROMPT_TIMEOUT_MS = 120000
|
||||
|
||||
Reference in New Issue
Block a user