feat(tui): show full text for long bash commands and AskUserQuestion content - #150
Merged
Conversation
The Bash tool header truncates long commands at 60 chars and the result renderer never showed the command body, so the full command was nowhere to be found in the UI. When the user expands the card with ctrl+o, render the complete multi-line command above the output.
…ting Replace single-line truncation with hanging-indent word wrap for the question prompt, body description, option label, option description, and submit-tab review entries. Long content now flows onto multiple rows instead of being cut off with an ellipsis.
🦋 Changeset detectedLatest commit: 8faa144 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
Merged
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.
Summary
ctrl+oon a Bash card now also reveals the complete multi-line command above the output. Header stays single-line.…at terminal width. They now soft-wrap with a hanging indent so the full text is readable on narrow terminals.Each change ships its own patch-level changeset.
Test plan
vitest run test/tui/components/messages/shell-execution.test.ts— 5/5 (collapsed hides the command; expanded reveals the full multi-line command).vitest run test/tui/components/dialogs/question-dialog.test.ts— 23/23 (4 new wrap cases cover question / body / option label+description / submit review).vitest run test/tui— 674/674.oxlint --type-awareon changed files — clean.ctrl+oshows the whole command; trigger AskUserQuestion with a long question/body/option on an 80-col terminal and confirm wrap.