← Back to issue list

When the Printer stops it needs to clean the last line if it was transient progress

View original Github issue

Metadata

Project
craft-cli
Number
#125
Type
issue
State
open
Author
facundobatista
Labels
Created
Updated
Closed

Current evaluation

Printer leaves transient progress text on screen when stopping or pausing; it should be overwritten by the next output. Open since 2022, no comments, but a related fix (PR #126) already enhanced ephemeral handover after pause/stop.

Suggested action: keep open

Reason: The issue describes a real terminal-cleanup bug in the Printer's stop/pause path. Commit 9f9df27 (PR #126) already enhanced ephemeral message handover after pause() or stop(), and Printer.stop() now cleans the line when prv_msg is ephemeral, suggesting partial or full resolution. However, the issue remains open with no maintainer confirmation that both cases (pause and process-end) are fully fixed, so it should stay open pending verification.

Impact: 30 Quick Win: 18.0 Staleness: 55 Complexity: 40 Confidence: 60 Support Request: 0

Issue body

This will show both when stopping everything and when calling pause. For example, check the two following codes: ``` emit.progress("Long text") time.sleep(5) with emit.pause(): print("inside") emit.message("Done") ``` and ``` emit.progress("Long text") time.sleep(5) ``` In the first case the text `inside` should overwrite "Long text", and in the second case whatever comes next because the process ends (e.g. the shell prompt) it should overwrite "Long text". IOW, "Long text" should not remain in the screen after "the next thing comes" (because it's transient progress).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18.0
Staleness: 55
Complexity: 40
Confidence: 60
Support Request: 0
keep open Printer leaves transient progress text on screen when stopping or pausing; it should be overwritten by the next output. Open since 2022, no comments, but a related fix (PR #126) already enhanced ephemeral handover after pause/stop.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 35
Confidence: 75
Support Request: 10
close stale Console printer fails to clear transient progress lines on stop or pause, leaving leftover text on the terminal. Issue has been inactive for over 3 years with no comments or reproduction steps.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 5
needs triage Printer leaves transient progress text on screen when stopped or paused. The report includes code examples but has no labels, comments, or maintainer response after over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 35
Confidence: 75
Support Request: 10
needs triage Transient progress output is not cleared when the printer stops or pauses, leaving stale text on screen. Open issue with zero comments and no labels, awaiting triage and fix.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-cli#126 (confidence 70%)

    PR #126 'enhance-transient-emit-pause' and commit 9f9df27 'printer: enhance ephemeral message handover after pause() or stop()' directly target the described behavior; Printer.stop() now clears the line if the last message was ephemeral.

Related issues

Issue Project State Summary Similarity
#126 printer: enhance ephemeral message handover after stop() or pause() craft-cli merged Merged. Enhances the Printer class to clear the terminal line and reset the cursor instead of appending a newline on stop or pause, enabling ephemeral progress messages to seamlessly transfer between host and container processes.
75%