← Back to issue list

printer: enhance ephemeral message handover after stop() or pause()

View original Github issue

Metadata

Project
craft-cli
Number
#126
Type
pull request
State
merged
Author
flotter
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #126 via 2cbced2 (implementation 9f9df27), clearing and resetting ephemeral output lines on pause/stop for host-to-container handover.

Resolution: closed resolved

Reason: The approved PR was merged into main as merge commit 2cbced2, with implementation commit 9f9df27, adding the requested ephemeral-message handover behavior.

Evaluated by: mr-cal-bot

No scores available.

Issue body

It is a very common pattern for craft tools to start the session directly on a host machine, but launch another craft instance to do the actual work inside LXD or Multipass. In order for a seamless CLI experience (which looks identical between a 'destructive build' on the host, LXD or Multipass), we need support for progress messages (ephemeral=True) to seamlessly cross the boundaries between the host and the container instance of of the craft tool. Please see examples.py #26 for an example. Add support for _Printer to respect ephemeral messages when stopping. On printer stop(), these messages are no longer terminated with a newline, but instead the printer will clear and reset the cursor to the start of the line. This behaviour change will allow subsequent terminal writes by a different process the ability to reuse a terminal line previously used as ephemeral output.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #126 via 2cbced2 (implementation 9f9df27), clearing and resetting ephemeral output lines on pause/stop for host-to-container handover.
stealth/space-bunny-alpha — closed resolved Merged in canonical/craft-cli#126 via merge 2cbced2 (implementation 9f9df27), adding ephemeral-line clearing and cursor reset on stop or pause.
stealth/space-bunny-alpha — closed resolved Merged in canonical/craft-cli#126 (merge 2cbced2, implementation 9f9df27), clearing the line and resetting the cursor when stopping or pausing ephemeral messages for host/container handover.
qwen/qwen3.6-35b-a3b — — 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.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.