fix(delegate-task): start sync prompts asynchronously

This commit is contained in:
YeonGyu-Kim
2026-05-27 14:22:14 +09:00
parent 68d84d9eaf
commit 27f956ecec
7 changed files with 125 additions and 41 deletions
+2
View File
@@ -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()) {
+2
View File
@@ -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