feat: enable paste support in all interactive wizard UIs#172
Merged
Conversation
Allow paste and other message types to reach step implementations. Updates mockStep in wizard_test.go to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type-asserts to tea.KeyPressMsg internally; non-key messages return StepContinue. Updates updateStep test helper signature to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Forward tea.PasteMsg to underlying textinput.Model so bracketed paste inserts text directly. Adds tests for paste insert and append. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Handle tea.PasteMsg by filtering pasted content through RuneFilter, auto-focusing the filter input if list was focused, and forwarding to textinput. Adds tests for paste with filter focused/unfocused, RuneFilter stripping, and empty-paste edge cases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pasting text into interactive wizard UIs (e.g.,
wt cd -i) was silently dropped because theStep.Update()interface only acceptedtea.KeyPressMsg, while BubbleTea v2 sends pasted text astea.PasteMsg.Widens the
Step.Update()interface fromtea.KeyPressMsgtotea.Msgand forwardstea.PasteMsgthrough the wizard framework and all direct flows to the underlyingtextinput.Modelcomponents which already handle paste natively.Breaking Changes
Test Coverage
🤖 Generated with Claude Code