Skip to content

refactor(pi-ask-question): use native dialogs - #177

Merged
HenryQW merged 2 commits into
mainfrom
refactor/use-fs-glob
Aug 27, 2026
Merged

refactor(pi-ask-question): use native dialogs#177
HenryQW merged 2 commits into
mainfrom
refactor/use-fs-glob

Conversation

@HenryQW

@HenryQW HenryQW commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the custom question editor, key handling, wrapping, and renderers with native ctx.ui.select and ctx.ui.input dialogs
  • preserve recommended labels, option descriptions, custom answers, cancellation, and abort handling while removing the direct pi-tui peer
  • document the native custom-answer flow and bump @henryqw/pi-ask-question to 0.1.11

Testing

  • npm run typecheck --workspace @henryqw/pi-ask-question
  • npm run pack:check --workspace @henryqw/pi-ask-question
  • pi --no-extensions -e ./packages/pi-ask-question/extensions/ask-question.ts --list-models

Prefix native select labels with stable indices so duplicate rendered text maps back to the option the user selected.
@HenryQW
HenryQW merged commit ed79f7c into main Aug 27, 2026
1 check passed
@HenryQW
HenryQW deleted the refactor/use-fs-glob branch August 27, 2026 14:00
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