Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: wrap long error messages in confirm dialog#323

Merged
clangenb merged 1 commit into
mainfrom
fix/confirmdialog-text-wrapping
Apr 2, 2026
Merged

fix: wrap long error messages in confirm dialog#323
clangenb merged 1 commit into
mainfrom
fix/confirmdialog-text-wrapping

Conversation

@eldara-cruncher
Copy link
Copy Markdown
Collaborator

Summary

  • Long error messages in the confirm dialog would overflow the terminal width
  • Add word wrapping using muesli/reflow/wordwrap (already a dependency)
  • Cap dialog width to min(termWidth-6, 80) characters

Requested in Eldara-Tech/swarmcli-be#25 review feedback.

Test plan

  • go build ./... succeeds
  • go test ./views/confirmdialog/... passes
  • New tests for long message wrapping and visual width check

🤖 Generated with Claude Code

Long error messages in the confirm dialog would overflow the terminal
width. Add word wrapping using muesli/reflow/wordwrap, capping dialog
width to min(termWidth-6, 80) characters.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@clangenb clangenb merged commit ed1544f into main Apr 2, 2026
11 of 14 checks passed
@eldara-cruncher eldara-cruncher deleted the fix/confirmdialog-text-wrapping branch June 5, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants