Skip to content

Wrap log lines in the live compose view instead of cutting them - #371

Merged
CLHatch merged 1 commit into
mainfrom
cli-viewport-wrap
Nov 29, 2026
Merged

CLHatch merged 1 commit into
mainfrom
cli-viewport-wrap

Conversation

@CLHatch

@CLHatch CLHatch commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The CLI compose view cut every log line above the compose table at the terminal width while it ran. Long lines lost their ends until the view closed, most visibly the Running: docker compose … command and the question listing the apps.

  • Log lines and the header now wrap at the view's width, as they do on the terminal after the view closes, keeping their styles and links.
  • They're kept as written and rewrapped when the width changes, so resizing the window brings back the full line.
  • Compose's own lines are already laid out for the width and are still only cut to it.

Tested with a new unit test (wrapping at one width, rewrapping at another, and compose lines cut to the width), and confirmed live on a Linux test host.

The CLI compose view cut every log line above the compose table at the
terminal width, so long lines such as the Running command or the question
listing the apps lost their ends until the view closed. Log lines now wrap
at the width, as they do after the view closes, and rewrap when the width
changes. Compose's own lines are already laid out for the width and are
still only cut to it.
@sourcery-ai

sourcery-ai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Sorry @CLHatch, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 1 hour by commenting @sourcery-ai review. Upgrade to get a review now.

@CLHatch
CLHatch merged commit 2516454 into main Nov 29, 2026
6 checks passed
@CLHatch
CLHatch deleted the cli-viewport-wrap branch November 29, 2026 05:04
Sign up for free to 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