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:
@@ -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" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user