fix: platform-specific placeholder in agent update log modal (v0.5.13)

Windows WinRM updates no longer show the Linux /var/log/update_script.log hint while output is still empty.
This commit is contained in:
2026-07-13 17:18:49 +10:00
parent 91be282ec6
commit 3475c1811b
8 changed files with 62 additions and 8 deletions
+13 -2
View File
@@ -135,6 +135,8 @@ import { isAgentVersionOutdated } from "../utils/agentVersion";
import {
isGitAgentUpgradeAvailable,
remoteActionKindForHost,
remoteActionLogPlaceholder,
remoteActionLogPlaceholderFromTitle,
remoteActionTitleForHost,
} from "../utils/hostAgentUpgrade";
import {
@@ -289,7 +291,12 @@ async function startAgentUpgrade(h: HostSummary) {
}
const kind = remoteActionKindForHost(h);
if (!kind) return;
void runHostRemoteAction(h.id, remoteActionTitleForHost(h), kind);
void runHostRemoteAction(
h.id,
remoteActionTitleForHost(h),
kind,
remoteActionLogPlaceholder(h, kind),
);
}
function openHost(id: number) {
@@ -450,7 +457,11 @@ interface HostDeleteResponse {
async function onManualAddStarted(payload: { hostId: number; title: string }) {
await loadHosts();
void pollHostRemoteAction(payload.hostId, payload.title);
void pollHostRemoteAction(
payload.hostId,
payload.title,
remoteActionLogPlaceholderFromTitle(payload.title),
);
}
async function confirmDelete(h: HostSummary) {