From 120c686de43bcab4bc7ec09048650e0e934da97b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 6 Mar 2026 01:14:20 -0500 Subject: [PATCH] status: show active operator policy --- src/commands/status-all.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/commands/status-all.ts b/src/commands/status-all.ts index 5fe975abf47..a346d4616fc 100644 --- a/src/commands/status-all.ts +++ b/src/commands/status-all.ts @@ -266,6 +266,18 @@ export async function statusAllCommand( ).length; const overviewRows = [ + (() => { + const operatorPolicy = snap?.policy; + if (!operatorPolicy?.exists) { + return { Item: "Operator policy", Value: "not configured" }; + } + return { + Item: "Operator policy", + Value: operatorPolicy.valid + ? `${operatorPolicy.path} · ${operatorPolicy.lockedPaths.length} locked path${operatorPolicy.lockedPaths.length === 1 ? "" : "s"}` + : `${operatorPolicy.path} · invalid`, + }; + })(), { Item: "Version", Value: VERSION }, { Item: "OS", Value: osSummary.label }, { Item: "Node", Value: process.versions.node },