From b1907ff5fb7d84010f429d21488d0709de719036 Mon Sep 17 00:00:00 2001 From: Andrey Cheptsov Date: Thu, 6 Aug 2026 11:59:48 +0200 Subject: [PATCH] Dim the interrupted preset status `interrupted` is not an outcome worth drawing the eye to. It was `bold gold1`, the same weight as `trialing` and `verifying`, which are in progress, and gold already means "broke a constraint" on the trial sparkline beside it. It now uses `secondary`, the dim style the rest of the listing uses for context. Co-Authored-By: Claude Opus 5 (1M context) --- src/dstack/_internal/cli/services/presets/output.py | 2 +- src/tests/_internal/cli/services/presets/test_output.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dstack/_internal/cli/services/presets/output.py b/src/dstack/_internal/cli/services/presets/output.py index 758131c23..a15b63bdf 100644 --- a/src/dstack/_internal/cli/services/presets/output.py +++ b/src/dstack/_internal/cli/services/presets/output.py @@ -14,7 +14,7 @@ "ready": ("verified", "grey"), "running": ("trialing", "bold sea_green3"), "verifying": ("verifying", "bold deep_sky_blue1"), - "interrupted": ("interrupted", "bold gold1"), + "interrupted": ("interrupted", "secondary"), "failed": ("failed", "indian_red1"), } diff --git a/src/tests/_internal/cli/services/presets/test_output.py b/src/tests/_internal/cli/services/presets/test_output.py index a46013a93..93976e690 100644 --- a/src/tests/_internal/cli/services/presets/test_output.py +++ b/src/tests/_internal/cli/services/presets/test_output.py @@ -160,12 +160,12 @@ def test_shows_zero_progress_without_benchmark(self): def test_omits_progress_without_trials_data(self): row = _session_row({"id": "ab12cd34", "status": "interrupted"}) - assert row["STATUS"] == "[bold gold1]interrupted[/]" + assert row["STATUS"] == "[secondary]interrupted[/]" def test_counts_without_trials_num(self): row = _session_row({"id": "ab12cd34", "status": "interrupted", "trials": {"count": 2}}) - assert row["STATUS"] == "[bold gold1]interrupted[/] [secondary](2)[/]" + assert row["STATUS"] == "[secondary]interrupted[/] [secondary](2)[/]" class TestOrdering: