Skip to content

feat: pick ask_user answers with the arrow-key picker - #10

Merged
wowi42 merged 1 commit into
mainfrom
feat/ask-user-picker
Sep 14, 2026
Merged

wowi42 merged 1 commit into
mainfrom
feat/ask-user-picker

Conversation

@Mouhand-Kaddo

Copy link
Copy Markdown
Contributor

What

ask_user questions now render in the same themed picker panel as the slash/@/. menus, instead of a numbered 1-4 prompt.

  • / move the highlight, enter selects (or confirms a multi-select), space toggles, esc dismisses.
  • A trailing ✎ Type your own answer… row switches to a free-text answer submitted with enter; esc backs out to the options.
  • Custom answers on a multi-select keep the toggled options.
  • The feed keeps a one-line record of each question; the answer (option or typed text) lands in the tool result.

Tests

  • tests/test_tui_question.py reworked for the picker: state transitions, wrap, custom row/mode, escape-back, and pipe end-to-end flows (arrow select, custom text, custom-row, multi-toggle).
  • Full suite: 1265 passed (--ignore=tests/test_telemetry.py; that one needs the optional sentry-sdk extra).
  • ruff check / ruff format --check clean.

Replace the numbered 1-4 question prompt with the themed picker panel
used by the slash/@/. menus: arrows move the highlight, enter selects
(or confirms a multi-select), space toggles, esc dismisses.

Add a trailing "Type your own answer..." row that switches to a
free-text answer submitted with enter; toggled options are kept on a
multi-select. The feed keeps a one-line record of each question.
@wowi42
wowi42 merged commit f111459 into main Sep 14, 2026
4 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.

2 participants