Files
Guilhem Lemouel 85218dae5b feat(chat): add ask_user_question tool for structured disambiguation
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>
2026-05-14 16:16:23 +02:00
..
2026-01-22 16:20:01 +00:00
2025-12-23 18:19:30 +00:00
2026-02-19 09:33:33 +00:00
2026-03-05 18:11:40 +01:00
2026-01-22 16:20:01 +00:00
2026-03-18 11:38:22 +00:00
2025-12-17 08:40:36 +00:00
2026-02-19 09:33:33 +00:00

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