Skip to content

Refactor AskUser tool to deferred client-rendered model#25

Merged
jbreite merged 1 commit intomainfrom
refactor/deferred-ask-user
Mar 15, 2026
Merged

Refactor AskUser tool to deferred client-rendered model#25
jbreite merged 1 commit intomainfrom
refactor/deferred-ask-user

Conversation

@jbreite
Copy link
Copy Markdown
Owner

@jbreite jbreite commented Mar 15, 2026

Summary

  • Replaces server-side onQuestion/onStructuredQuestions handlers with a deferred tool that emits structured questions for the client to render
  • Each question now requires a stable id (snake_case) for deterministic answer mapping
  • Simplifies config from askUser: { onQuestion } to askUser: true (or pass SDK tool options)
  • Bumps version to 0.6.0 (breaking: removes AskUserResponseHandler, AskUserError, StructuredQuestion, QuestionOption exports)

Test plan

  • bun run typecheck passes
  • bun run test passes
  • Verify AskUser tool works with askUser: true config
  • Verify AskUser tool accepts SDK tool options via askUser: { ... }

🤖 Generated with Claude Code

Replace server-side onQuestion/onStructuredQuestions handlers with a
deferred tool that emits structured questions for the client to render.
Each question now has a stable `id` for deterministic answer mapping.
Simplifies config from `askUser: { onQuestion }` to `askUser: true`.
Bumps version to 0.6.0 (breaking change).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bashkit-docs Ready Ready Preview, Comment Mar 15, 2026 8:59pm

@jbreite jbreite merged commit a5f2010 into main Mar 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant