fix(coding-agent): set executionMode: sequential on question example tool

The question extension tool blocks on ctx.ui.custom() but omitted
executionMode, so multiple question calls in one assistant turn ran
under the default parallel mode and raced on the editor slot. Only the
last question rendered; earlier calls hung pending forever.

Set executionMode: "sequential" so the agent loop serializes the
batch. Wrappers already propagate the field to the core.

closes #6189
This commit is contained in:
Vegard Stikbakke
2026-07-02 09:01:02 +02:00
parent 45c0fe7833
commit ec857fece5
2 changed files with 2 additions and 0 deletions
@@ -47,6 +47,7 @@ export default function question(pi: ExtensionAPI) {
label: "Question",
description: "Ask the user a question and let them pick from options. Use when you need user input to proceed.",
parameters: QuestionParams,
executionMode: "sequential",
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
if (ctx.mode !== "tui") {