← Back to issue list

fix(printer): handle multiline permanent progress correctly

View original Github issue

Metadata

Project
craft-cli
Number
#445
Type
pull request
State
open
Author
gcomneno
Labels
Created
2026-04-23 03:59:02+00:00
Updated
2026-05-15 16:18:33+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

## Summary Handle multiline permanent progress updates correctly when replacing a previous temporary progress message. Previously, a permanent multiline progress message could leave leftover text from the previous temporary progress line on the terminal, and multiline progress text was also logged as a single string containing embedded newlines. This change formats terminal multiline progress output line-by-line so each rendered line is fully cleared, and logs multiline message text as separate timestamped lines. ## Testing ```bash pytest -q tests/integration/test_messages_integration.py -k "multiline_permanent_progress_overwrites_temporary_progress" -rs -vv pytest -q tests/unit/test_printer.py -k "_log or writelineterminal" -rs ruff check craft_cli/printer.py tests/integration/test_messages_integration.py tests/unit/test_printer.py ```

Evaluation history

No evaluation history available.