Skip to content

feat(ask): replace Other option with always-visible text input#240

Merged
LeeCheneler merged 1 commit intomainfrom
feat/229-ask-tool-text-input
Mar 29, 2026
Merged

feat(ask): replace Other option with always-visible text input#240
LeeCheneler merged 1 commit intomainfrom
feat/229-ask-tool-text-input

Conversation

@LeeCheneler
Copy link
Copy Markdown
Owner

Summary

This PR replaces the "Other" option in the AskSelector component with an always-visible text input as the last option. This improves the user experience by making the text input immediately visible and navigable, removing the extra step of selecting "Other" to enter a custom response.

GitHub Issue

Closes #229

What Changed

  • Modified the AskSelector component to show a text input as the last option, which is always visible and can be navigated to with arrow keys.
  • Updated the tool documentation for the ask tool to reflect that a free-text input is always shown and to remove any mention of an "Other" escape hatch in the options array.
  • Updated the test suite to reflect the new behavior, including tests for typing immediately, escaping to clear and cancel, backspace support, and preserving text when navigating away and back.

Notes for Reviewers

  • The changes are isolated to the AskSelector component, its tests, and the tool documentation.
  • The behavior of the ask tool remains the same from the caller's perspective, but the internal UX is improved.

The text input is now the last row in the selector and activates
immediately when scrolled to — no Enter needed. Tool description
updated to instruct the model never to include its own free-text
escape hatch in the options array.

Closes #229
@LeeCheneler LeeCheneler merged commit 2686662 into main Mar 29, 2026
4 checks passed
@LeeCheneler LeeCheneler deleted the feat/229-ask-tool-text-input branch March 29, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add text input as last option in ask tool

1 participant