From aa8de987a00e955a403742b75c20d248f6609121 Mon Sep 17 00:00:00 2001 From: Dima Kotlyarov Date: Fri, 13 Nov 2026 09:28:41 +0000 Subject: [PATCH 1/4] air: Show the experiment and accelerators in the `air list` info pane The pane built its fields from the run alone and never called enrichFromAiRuntimeTask, so Experiment and Accelerators were always N/A while `air get` showed them for the same run. Co-authored-by: Isaac --- cmd/air/list_detail.go | 5 +++++ cmd/air/list_detail_test.go | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/cmd/air/list_detail.go b/cmd/air/list_detail.go index 96e50728dc0..55451550d77 100644 --- a/cmd/air/list_detail.go +++ b/cmd/air/list_detail.go @@ -32,6 +32,11 @@ func runDetailText(ctx context.Context, w *databricks.WorkspaceClient, runID int url := mlflowLogsURL(w.Config.Host, ids) data.MLflowURL = &url } + // Same as `air get`: the experiment and accelerators come from the run's + // ai_runtime_task; a sweep or GenAI compute run has none. + if findForEachTask(run) == nil && genAIComputeTask(run) == nil { + enrichFromAiRuntimeTask(run, &data) + } var buf bytes.Buffer renderRunText(ctx, &buf, w, run, &data, ids) diff --git a/cmd/air/list_detail_test.go b/cmd/air/list_detail_test.go index 997b8131c48..e64140f4348 100644 --- a/cmd/air/list_detail_test.go +++ b/cmd/air/list_detail_test.go @@ -8,6 +8,7 @@ import ( "testing" "github.com/charmbracelet/lipgloss" + "github.com/charmbracelet/x/ansi" "github.com/databricks/cli/libs/cmdio" "github.com/databricks/databricks-sdk-go/service/jobs" "github.com/stretchr/testify/assert" @@ -145,3 +146,28 @@ func TestUnnamedOlderRetryLabelFitsTheListColumnAndIsWholeInTheInfoPane(t *testi assert.Equal(t, mlflowColWidth, lipgloss.Width(rows[0].MLflowLabel)) assert.Contains(t, info, mlflowRunID+" (retry 0)") } + +func TestInfoPaneShowsExperimentAndAcceleratorsLikeAirGet(t *testing.T) { + // Given a finished run whose ai_runtime_task names its experiment and compute. + run := indexRun(7, 1000_000) + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/api/2.2/jobs/runs/get" { + _ = json.NewEncoder(w).Encode(run) + return + } + _, _ = w.Write([]byte(`{}`)) + })) + t.Cleanup(srv.Close) + ctx := cmdio.MockDiscard(t.Context()) + w := newTestWorkspaceClient(t, srv.URL) + + // When the info pane renders the run. + info, err := runDetailText(ctx, w, 7) + require.NoError(t, err) + + // Then it shows the experiment and accelerators that `air get` shows for the + // same run, instead of their "N/A" fallbacks. + plain := ansi.Strip(info) + assert.Contains(t, plain, "Experiment exp ") + assert.Contains(t, plain, "Accelerators 1x H100 ") +} From 0fc9c3f1b915cb71c04778387f0f78b72cf9b9af Mon Sep 17 00:00:00 2001 From: Dima Kotlyarov Date: Fri, 13 Nov 2026 09:51:06 +0000 Subject: [PATCH 2/4] Add changelog fragment Co-authored-by: Isaac --- .nextchanges/air/list-info-pane-experiment.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nextchanges/air/list-info-pane-experiment.md diff --git a/.nextchanges/air/list-info-pane-experiment.md b/.nextchanges/air/list-info-pane-experiment.md new file mode 100644 index 00000000000..6378f6afcec --- /dev/null +++ b/.nextchanges/air/list-info-pane-experiment.md @@ -0,0 +1 @@ +* Fix the `air list` info pane showing `N/A` for a run's Experiment and Accelerators; it now shows them as `air get` does. ([#7598](https://github.com/databricks/cli/pull/7598)) From 95e6c905faa66ac7e24d4d64fbff748cd2380246 Mon Sep 17 00:00:00 2001 From: Dima Kotlyarov Date: Fri, 13 Nov 2026 13:14:59 +0000 Subject: [PATCH 3/4] air: add changelog fragment for #7601 Co-authored-by: Isaac --- .nextchanges/air/7601.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nextchanges/air/7601.md diff --git a/.nextchanges/air/7601.md b/.nextchanges/air/7601.md new file mode 100644 index 00000000000..ce40c3b3372 --- /dev/null +++ b/.nextchanges/air/7601.md @@ -0,0 +1 @@ +* Strip terminal control characters from the MLflow run, experiment and user names shown by `air list` and `air get`, so a run name cannot clear or retitle the terminal of whoever lists it. ([#7601](https://github.com/databricks/cli/pull/7601)) From 26c8d915699c3555a69ca98fd3cf2176ae927e65 Mon Sep 17 00:00:00 2001 From: Dima Kotlyarov Date: Fri, 13 Nov 2026 13:43:32 +0000 Subject: [PATCH 4/4] Revert "air: add changelog fragment for #7601" The fragment belongs to PR #7601's branch, not this one; here it fails the changelog validator because its link does not include #7598. This reverts commit 95e6c905faa66ac7e24d4d64fbff748cd2380246. Co-authored-by: Isaac --- .nextchanges/air/7601.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .nextchanges/air/7601.md diff --git a/.nextchanges/air/7601.md b/.nextchanges/air/7601.md deleted file mode 100644 index ce40c3b3372..00000000000 --- a/.nextchanges/air/7601.md +++ /dev/null @@ -1 +0,0 @@ -* Strip terminal control characters from the MLflow run, experiment and user names shown by `air list` and `air get`, so a run name cannot clear or retitle the terminal of whoever lists it. ([#7601](https://github.com/databricks/cli/pull/7601))