← Back to issue list

Multi-line permanent progress doesn't overwrite temporary progress

View original Github issue

Metadata

Project
craft-cli
Number
#371
Type
issue
State
open
Author
jonathan-conder
Labels
Created
Updated
Closed

Current evaluation

craft-cli bug: a permanent multi-line progress message only clears the first line of a previous temporary progress, leaving residual text. A maintainer diagnosed the printer path and opened fix PR #445 (open, pending review); bug still present in main.

Suggested action: keep open

Reason: A maintainer (gcomneno) triaged this, diagnosed the root cause in the printer's terminal output path, and opened fix PR #445 which is still open and pending review. The bug is confirmed reproducible with a clear reproducer and is not yet fixed in main (no matching commits found), so the issue remains valid and should stay open until the PR lands.

Impact: 30 Quick Win: 16.5 Staleness: 50 Complexity: 45 Confidence: 85 Support Request: 0

Issue body

### Bug Description I assumed it was possible to pass multi-line strings to `emit.progress`. At least, craft-application does it. However, the first line doesn't overwrite the existing progress line if it was longer. ### To Reproduce ```python from craft_cli import EmitterMode, emit emit.init(EmitterMode.BRIEF, appname="testcraft", greeting="Greeting") emit.progress("foo foo foo") emit.progress("bar\nbar", permanent=True) ``` Expected output: ``` bar bar ``` Actual output: ``` bar foo foo bar ``` ### part yaml ```shell ``` ### Relevant log output ```shell 2025-08-11 15:02:50.183 Greeting 2025-08-11 15:02:50.183 foo foo foo 2025-08-11 15:02:50.183 bar bar ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 16.5
Staleness: 50
Complexity: 45
Confidence: 85
Support Request: 0
keep open craft-cli bug: a permanent multi-line progress message only clears the first line of a previous temporary progress, leaving residual text. A maintainer diagnosed the printer path and opened fix PR #445 (open, pending review); bug still present in main.
qwen/qwen3.6-35b-a3b
Staleness: 15
Complexity: 40
Confidence: 95
Support Request: 5
keep open Bug in craft-cli where permanent multi-line progress messages fail to fully overwrite longer temporary progress lines, leaving residual text. Currently has an open PR (#445) addressing the fix.
qwen3.6-35b-a3b-mtp-q6
Staleness: 25
Complexity: 40
Confidence: 90
Support Request: 5
keep open Bug where permanent multi-line progress messages fail to fully overwrite previous temporary progress text in the terminal. A maintainer has analyzed the issue and opened a PR to fix the terminal output path.
qwen3.6-35b-a3b-mtp-q6
Staleness: 25
Complexity: 40
Confidence: 90
Support Request: 0
keep open Multi-line permanent progress messages fail to fully overwrite longer temporary progress lines due to incomplete terminal line clearing. A fix implementing line-by-line replacement has been submitted as PR #445.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-cli#445 (confidence 90%)

    PR #445 'fix(printer): handle multiline permanent progress correctly' is explicitly referenced in the issue comments as the fix; it is open and pending review, so the fix is not yet merged.

Related issues

Issue Project State Summary Similarity
#445 fix(printer): handle multiline permanent progress correctly craft-cli open Fixes multiline permanent progress rendering in the printer so each terminal line is fully cleared and multiline messages log as separate timestamped lines. Pending review (0 reviewers); CI mostly green.
74%