From 5fe7308e99455fd3861e83c4ce17b09283fbcdeb Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 13 Nov 2026 10:40:56 -0800 Subject: [PATCH] Expose refresh intent in preflight API types --- src/preload/api/preflight/preflight-api.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/preload/api/preflight/preflight-api.ts b/src/preload/api/preflight/preflight-api.ts index 1a302473560..8051b767317 100644 --- a/src/preload/api/preflight/preflight-api.ts +++ b/src/preload/api/preflight/preflight-api.ts @@ -48,7 +48,11 @@ export type PreflightApi = { ) => Promise /** Complete by default; background callers opt into host-owned enabled preferences. */ detectAgents: ( - args?: PreflightRuntimeContext & { enabledOnly?: boolean; wakeWslDistro?: boolean } + args?: PreflightRuntimeContext & { + enabledOnly?: boolean + wakeWslDistro?: boolean + userInitiated?: boolean + } ) => Promise /** A WSL distro a background check was refused for is running now; re-ask. Desktop only. */ onWslDistroRunning?: (callback: (distro: string) => void) => () => void @@ -56,7 +60,11 @@ export type PreflightApi = { zcodeInteractiveCapability: () => Promise /** `wakeWslDistro`: a user act that may start a stopped WSL distro; background refreshes omit it. */ refreshAgents: ( - args?: PreflightRuntimeContext & { enabledOnly?: boolean; wakeWslDistro?: boolean } + args?: PreflightRuntimeContext & { + enabledOnly?: boolean + wakeWslDistro?: boolean + userInitiated?: boolean + } ) => Promise detectRemoteAgents: (args: { connectionId: string }) => Promise detectRemoteWindowsTerminalCapabilities: (args: { connectionId: string }) => Promise<{