mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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:
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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue