fix(agent-packages): show local inventory before refresh

This commit is contained in:
mesalogo
2026-10-14 00:53:23 +08:00
parent 3ba1ef305d
commit a63060e097
10 changed files with 85 additions and 20 deletions
+2 -2
View File
@@ -528,10 +528,10 @@ const desktopApi: DesktopApi = {
handler
)
},
getAgentPackageInventory: (refresh = false) =>
getAgentPackageInventory: (refresh = false, localOnly = false) =>
ipcRenderer.invoke(
ipcChannels.sshHostsAgentPackageInventory,
{ refresh }
{ refresh, localOnly }
) as Promise<AgentPackageInventory>,
downloadAgentPackage: (architecture: AgentArchitecture, platform: 'linux' | 'darwin' = 'linux') =>
ipcRenderer.invoke(