@@ -5,8 +5,9 @@ import { resolveNodeExecEligibility } from "../../agents/exec-defaults.js";
55import { readConfigFileSnapshot , resolveGatewayPort } from "../../config/config.js" ;
66import { readLastGatewayErrorLine } from "../../daemon/diagnostics.js" ;
77import { resolveGatewayBindHost , resolveGatewayRequiredListenHosts } from "../../gateway/net.js" ;
8+ import { loadExecApprovalsReadOnly } from "../../infra/exec-approvals.js" ;
89import { inspectPortUsage } from "../../infra/ports-inspect.js" ;
9- import { readRestartSentinel } from "../../infra/restart-sentinel.js" ;
10+ import { readRestartSentinelReadOnly } from "../../infra/restart-sentinel.js" ;
1011import { resolvePluginControlPlaneWorkspace } from "../../plugins/control-plane-workspace.js" ;
1112import { buildPluginCompatibilityNotices } from "../../plugins/status.js" ;
1213import { buildWorkspaceSkillStatus } from "../../skills/discovery/status.js" ;
@@ -58,7 +59,7 @@ async function resolveStatusAllLocalDiagnosis(params: {
5859 snap : ConfigFileSnapshot | null ;
5960 remoteUrlMissing : boolean ;
6061 secretDiagnostics : StatusScanOverviewResult [ "secretDiagnostics" ] ;
61- sentinel : Awaited < ReturnType < typeof readRestartSentinel > > | null ;
62+ sentinel : Awaited < ReturnType < typeof readRestartSentinelReadOnly > > | null ;
6263 lastErr : string | null ;
6364 port : number ;
6465 portUsage : Awaited < ReturnType < typeof inspectPortUsage > > | null ;
@@ -111,7 +112,7 @@ async function resolveStatusAllLocalDiagnosis(params: {
111112
112113 params . progress . setLabel ( "Checking local state…" ) ;
113114 // These probes are intentionally best-effort so status-all can still print a partial report.
114- const sentinel = await readRestartSentinel ( ) . catch ( ( ) => null ) ;
115+ const sentinel = await readRestartSentinelReadOnly ( ) . catch ( ( ) => null ) ;
115116 const lastErr = await readLastGatewayErrorLine ( process . env ) . catch ( ( ) => null ) ;
116117 const port = resolveGatewayPort ( overview . cfg ) ;
117118 const bindHost = await resolveGatewayBindHost (
@@ -135,6 +136,7 @@ async function resolveStatusAllLocalDiagnosis(params: {
135136 // Skill eligibility depends on whether the default agent may request node exec.
136137 const nodeSkills = resolveNodeExecEligibility ( {
137138 cfg : overview . cfg ,
139+ execApprovals : loadExecApprovalsReadOnly ( ) ,
138140 agentId : controlPlaneWorkspace . agentId ,
139141 } ) ;
140142 return buildWorkspaceSkillStatus ( defaultWorkspace , {
0 commit comments