mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
85218dae5b
A global-mode tool that pauses execution and lets the AI ask the user a multiple-choice question (2–4 mutually-exclusive options). Pure frontend, mirrors the existing tool-confirmation flow: - shared.ts: ToolPendingQuestion type; pendingQuestion + answeredValue fields on ToolDisplayMessage; requestAnswer callback on ToolCallbacks. - AIChatManager: answerCallback + requestAnswer / handleToolAnswer pair. Resolves with the picked option's value, or '' on cancel. Cancel sweep clears the callback alongside the existing confirmation cleanup. - ToolExecutionDisplay: when pendingQuestion is set, the card auto- expands and replaces its body with the question text + one button per option. Clicking an option calls aiChatManager.handleToolAnswer. - global/core.ts: askUserQuestionSchema and the tool entry in globalTools. Returns the picked option's value verbatim to the model, or '(user cancelled the question)' if the user cancelled. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Windmill frontend
The Windmill frontend written in Svelte 5 + Tailwind CSS
The frontend is under AGPL, see the LICENSE file at the root of this repo