Skip to content

fix(tui): compact single-line prompts - #40924

Merged
kitlangton merged 2 commits into
v2from
compact-prompts
Aug 6, 2026
Merged

fix(tui): compact single-line prompts#40924
kitlangton merged 2 commits into
v2from
compact-prompts

Conversation

@kitlangton

@kitlangtonkitlangton commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

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.

Full TUI with the three-row API key prompt before the change

After: The same prompt uses one input row, removing two empty lines while preserving the existing title, description, busy state, and submit hint.

Full TUI with the compact single-row API key prompt after the change

How

Set the shared DialogPrompt textarea 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 typecheck from packages/tui
  • bun run test test/cli/tui/dialog-prompt.test.tsx from packages/tui
  • Full repository typecheck via the pre-push hook
  • Matched hermetic before/after /connect walkthroughs with terminal-control

@kitlangton
kitlangton merged commit a779027 into v2Aug 6, 2026
1 check passed
@kitlangton
kitlangton deleted the compact-prompts branch August 6, 2026 20:46
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)
...
Sign up for freeto 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

@kitlangton