From d7c496f6f5a2ba7b41eddf977818c358c8e23a20 Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 16 May 2026 13:13:33 +0000 Subject: [PATCH] fix: sanitize remote deploy log polling --- scripts/src/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/deploy.ts b/scripts/src/deploy.ts index 7a6af7a1..d7cae578 100644 --- a/scripts/src/deploy.ts +++ b/scripts/src/deploy.ts @@ -1031,7 +1031,7 @@ async function launchRemoteBackground( async function pollRemoteBackground(config: UniDeskConfig, service: UniDeskMicroserviceConfig, cwd: string, logFile: string, sentinelFile: string): Promise { const command = [ `if [ -f ${shellQuote(sentinelFile)} ]; then printf 'SENTINEL:%s\\n' "$(cat ${shellQuote(sentinelFile)} 2>/dev/null || true)"; else echo RUNNING; fi`, - `tail -n 100 ${shellQuote(logFile)} 2>/dev/null || true`, + `tail -n 100 ${shellQuote(logFile)} 2>/dev/null | tr -d '\\000' | LC_ALL=C sed 's/[^[:print:]\t]//g' || true`, ].join("; "); const result = await runTargetCommand(config, service, command, cwd, shortDispatchWaitMs, shortRemoteTimeoutMs); const stdout = result.stdout.trimEnd();