fix(coding-agent): preserved multi-question timeout defaults

Applied the timeout auto-selection before multi-question single-choice prompts auto-advance, and replaced pending test promises with Promise.withResolvers().

Refs #4995
This commit is contained in:
roboomp
2026-07-10 03:05:54 +00:00
parent fcf389ae72
commit 095353ed43
2 changed files with 75 additions and 3 deletions
+3
View File
@@ -642,6 +642,9 @@ async function askSingleQuestion(
customInput = undefined;
break;
}
if (timedOut && selectedOptions.length === 0 && customInput === undefined) {
selectedOptions = getAutoSelectionOnTimeout(questionOptions, recommended);
}
if (navigation?.allowForward) {
return { selectedOptions, customInput, timedOut, navigation: "forward" };
}