Repository navigation
fix(tui): wrap long lines in execute details - #53504
richardharnisch wants to merge 2 commits into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes #45028. We tried to reproduce the reported clipping in write, edit, and shell-output previews, but could not reproduce it in OpenTUI native-renderer checks on Linux with default V2 settings at 80, 100, and 140 columns; those previews wrapped. The reporter's Windows Terminal/PowerShell environment was not tested. We did reproduce the long-line problem in execute details, which this PR fixes.
Type of change
What does this PR do?
Wrap long code and JSON lines in execute details instead of requiring horizontal scrolling. Use OpenTUI's visual-to-source line mapping to leave continuation gutters blank and keep the original line numbers. Size the dialog from rendered row counts so it also works after resizing. Copy shortcuts still use the original text.
How did you verify your code works?
bun typecheckinpackages/tui;bun run checkat the repository root; focused lint and formatting checks.v2: 1,454 passed, 2 skipped, 0 failed.Screenshots / recordings
Real-terminal screenshots with synthetic example input at two widths; no work data. Cropped to the dialog; its contents are unchanged.
Wide terminal, before:
Wide terminal, after:
Narrow terminal, before:
Narrow terminal, after:
Checklist