From 2dc880ecdda728e47b1102f394ca0fc6ba850f3b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:14:11 +0000 Subject: [PATCH 1/2] fix(deps): pass height=24 to Console to bypass Rich TERM=dumb width fallback Rich's Console.size property only honours an explicit width when both _width and _height are set. When only width is passed, it falls through to is_dumb_terminal and returns 80 columns, truncating long package names in the `deps list` table (e.g. 'microsoft/apm-package-alpha' -> 'microsof...'). Fix: supply height=24 alongside the explicit width so the fast path is taken regardless of the TERM environment variable. Also add COLUMNS=10000 to the benchmark subprocess env as a belt-and- suspenders guard for future Rich version changes. Verification: all 13 migration gates now pass (migration_score=1.0). Run: https://github.com/githubnext/apm/actions/runs/27041238237 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/ci/migration_cli_benchmark.py | 3 +++ src/apm_cli/commands/deps/cli.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ci/migration_cli_benchmark.py b/scripts/ci/migration_cli_benchmark.py index 0295de92..44ea2b88 100644 --- a/scripts/ci/migration_cli_benchmark.py +++ b/scripts/ci/migration_cli_benchmark.py @@ -543,6 +543,9 @@ def main() -> int: "NO_COLOR": "1", "TERM": "dumb", "PYTHONUNBUFFERED": "1", + # Prevent Rich from truncating long package names in table output. + # Matches the COLUMNS=10000 convention used in parity_completion_test.go. + "COLUMNS": "10000", } ) diff --git a/src/apm_cli/commands/deps/cli.py b/src/apm_cli/commands/deps/cli.py index cbdd2b7b..14b18a17 100644 --- a/src/apm_cli/commands/deps/cli.py +++ b/src/apm_cli/commands/deps/cli.py @@ -405,7 +405,7 @@ def list_packages(global_, show_all, insecure_only): from rich.console import Console term_width = shutil.get_terminal_size((120, 24)).columns - console = Console(width=max(120, term_width)) + console = Console(width=max(120, term_width), height=24) has_rich = True except ImportError: has_rich = False From fcf829bdd49d68ff1f90f8da7f1f7b1f6d2fd0a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Jun 2026 22:14:15 +0000 Subject: [PATCH 2/2] ci: trigger checks