Repository navigation
Closed
Description
Problem
#2149 adds requestUserInput: one question, 2–5 choice labels, rendered as Slack buttons or a choice card in the dashboard. The answer arrives as the next user message. It's a good first step, but it treats input as "ask one question, pick one label." Claude Code / Claude Desktop treat it as a structured input request, and that model works better in general.
This issue is for the next version: user input, not just a user question.
What Claude does (for reference)
From the Claude Code tools reference and community prompt dumps (see the research comment on #1998):
AskUserQuestioncan ask several related questions in one call. Each has a short header, options with a label and description, and optional multi-select.- An "Other" free-text answer is always available, so the user isn't boxed in by the model's options.
- Options can carry a
preview(HTML), so the user sees what they're picking, not just a label. - The answers come back as structured data tied to the request, so the model knows exactly which question got which answer.
- In Claude Desktop this renders as a small inline widget, not as chat text.
Direction
The model describes what input it needs. Each surface decides how to render it. The answer comes back as structured data linked to the request.
- Request shape: one or more fields. Each field is single choice, multi choice, short text, or confirm. Fields have labels, descriptions, and an optional preview. Free text is always allowed.
- Slack: buttons for simple choices. For anything richer, use selects / checkboxes / a modal, depending on what Block Kit handles well. After someone answers, collapse it into a summary ("@person chose X, Y").
- Web UI: a compact widget above the composer, like Claude Desktop. It holds all fields, lets you submit once, and keeps a read-only record in the transcript afterward.
- Answer: structured and keyed to the request id and field ids. Put it in the transcript so the model and the dashboard both read the same data. Typing a reply instead should still work as a fallback.
- Lifecycle: an open request can be answered, skipped/dismissed, or replaced by a new one. It should be clear who is allowed to answer in a shared Slack thread.
Open questions
- Keep "answer = next user message" from feat(chat): Let Junior ask for user input with requestUserInput #2149, or move to a real tool-result-style resume? This affects how the model ties an answer to its request.
- Which field types are in v1? Choice + multi-choice + free text is probably enough. Should forms and previews wait?
- How does Slack degrade when a request doesn't fit in Block Kit (modal vs. a sequence of messages vs. a link to the web widget)?
- Should requests that come from automations or child conversations (Let a conversation coordinate child conversations #2105) be routed to a person and resume later? feat(chat): Let Junior ask for user input with requestUserInput #2149 explicitly leaves this out.
- Do we evolve
requestUserInputin place, or replace it?
Related
- feat(chat): Let Junior ask for user input with requestUserInput #2149: current
requestUserInput(the base this builds on) - Plan-first coding mode for complex feature work #1998: plan-first coding mode. The "clarify, then confirm the plan" step depends on this. Its comment has the Claude Code tool research.
- Let a conversation coordinate child conversations #2105: coordinating child conversations
via David Cramer.
--
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(chat): Ask for several fields of user input in one request
sentry-junior commentedon Oct 31, 2026
Closing in favor of #2488, which covers the second pass of the review desk. The structured request shape this issue asked for shipped with
userInputRequestSchema. #2488 mergesrequestUserInputintoaddReviewItemand answers the open questions here about automations and about replacingrequestUserInput.