diff --git a/src/shared/model-suggestion-retry.ts b/src/shared/model-suggestion-retry.ts index 19d2079f6..3113e962f 100644 --- a/src/shared/model-suggestion-retry.ts +++ b/src/shared/model-suggestion-retry.ts @@ -123,6 +123,7 @@ export async function promptWithModelSuggestionRetry( if (timeoutContext.wasTimedOut()) { throw new Error(`promptAsync timed out after ${timeoutMs}ms`) } + releasePromptAsyncReservation(args.path.id, "model-suggestion-retry") throw error } finally { timeoutContext.cleanup()