← Back to issue list

color escape codes are left open

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1748236
Type
issue
State
open
Author
~xordspar0
Labels
ui
Created
Updated
Closed

Current evaluation

Snapcraft's snapping progress spinner emits a green ANSI color code without a matching reset, so interrupting the build leaves the terminal green. Open since 2017 with zero comments; spinner logic now lives in the craft-cli dependency, so current behavior is unverified.

Suggested action: needs triage

Reason: Zero comments, no labels beyond 'ui', and no maintainer interaction in ~8.5 years (last activity 3084 days ago), so it has never been triaged. The spinner code has since moved to the craft-cli dependency (AGENTS.md maps 'Terminal output, progress reporting' to craft-cli), so a maintainer needs to verify whether the reset code is still missing before closing or fixing. A related report (#1692754, 'snapcraft turns the console text green') was closed as abandoned, but this one is distinct (interrupt during snapping vs. after completion).

Impact: 20 Quick Win: 15.0 Staleness: 85 Complexity: 25 Confidence: 55 Support Request: 5

Issue body

When snapcraft is doing the actual snapping step and the progress spinner is animating, the green color terminal escape codes are left "open". That is, there is a "begin green color" escape code, but no "end color" code. The "end color" code isn't added until after snapping completes. This has a problem: if you stop, interrupt, or kill snapcraft during the snapping process, your terminal stays green (including your prompt, anything you type, and the output of all commands) until you somehow insert the correct escape code to stop color. During the snap step, snapcraft should add the "end color" escape code to the end of every print statement so that, no matter when in the process it gets interrupted, the color is left turned off after snapcraft runs.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 15.0
Staleness: 85
Complexity: 25
Confidence: 55
Support Request: 5
needs triage Snapcraft's snapping progress spinner emits a green ANSI color code without a matching reset, so interrupting the build leaves the terminal green. Open since 2017 with zero comments; spinner logic now lives in the craft-cli dependency, so current behavior is unverified.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 0
close stale Terminal ANSI escape codes remain open during snapcraft's progress spinner, causing persistent color output if interrupted. Unaddressed for over 8 years with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 10
Confidence: 90
Support Request: 5
close stale Terminal green escape codes not being reset if snapcraft is interrupted during the snapping step. Issue has no maintainer response or updates after 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 5
close stale Terminal color escape codes remain open during snapcraft's progress spinner, causing the terminal to stay green if interrupted. Issue is over 8 years old with no maintainer response.
qwen3.6-35b-moe-q4
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 5
close stale Terminal escape codes for progress spinner colors remain open during interruption, leaving the terminal green. Unaddressed for over 8 years.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#1692754 (confidence 70%)

    Same terminal-color-reset symptom reported earlier; closed without resolution due to inactivity, so no fix evidence there.

Related issues

No related issues found above the similarity threshold.