Uh oh!
There was an error while loading. Please reload this page.
fix(tui): compact single-line prompts - #40924
Merged
Merged
Conversation
Uh oh!
There was an error while loading. Please reload this page.
github-actionsBot
pushed a commit
to ReStranger/opencode
that referenced
this pull request
Aug 7, 2026
* upstream/v2: (84 commits) fix(core): align shell output limits (anomalyco#41007) feat(core): bound tool output (anomalyco#40929) refactor(app): remove legacy layout (anomalyco#40947) refactor(core): simplify file tools to lexical paths (anomalyco#40962) fix(core): default custom agents to primary (anomalyco#40880) fix(core): migrate legacy small model (anomalyco#40966) fix(tui): dismiss stale permission prompts (anomalyco#40960) fix(tui): use tab layout setting (anomalyco#40952) fix(tui): keep model selection session scoped (anomalyco#40913) feat(ai): expose model compatibility options (anomalyco#40942) feat(cli): add session import and export (anomalyco#40914) fix(core): deduplicate websearch consent prompts (anomalyco#40869) test(core): cover config precedence feat(tui): enable cwd-scoped session tabs by default feat(core): normalize mixed config formats (anomalyco#40919) fix(tui): simplify MCP status rows (anomalyco#40916) fix(tui): compact single-line prompts (anomalyco#40924) fix(config): omit unset optional values (anomalyco#40918) fix(tui): open authorization links (anomalyco#40912) refactor(mcp): remove unused registration status (anomalyco#40904) ...
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 freeto 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.
What
Make TUI text prompts visually match their single-line behavior.
Before / After
Before: Rename, API-key, authorization-code, integration, and plugin prompts reserved three input rows even though Return immediately submits the value.
After: The same prompt uses one input row, removing two empty lines while preserving the existing title, description, busy state, and submit hint.
How
Set the shared
DialogPrompttextarea height to one row and disable wrapping. All current callers already use Return-to-submit semantics and do not support multiline input. Long values remain on one visual line and scroll horizontally with the cursor.Scope
This changes only prompt height. Submission, focus, validation, and busy-state behavior are unchanged.
Testing
bun typecheckfrompackages/tuibun run test test/cli/tui/dialog-prompt.test.tsxfrompackages/tui/connectwalkthroughs with terminal-control