@devries-cameron20 / t3code-1 / commits / dd7255d338
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): PowerShell process scans keep non-ASCII names on Windows (#37264)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Fuksss committed Nov 15, 2026 at 18:52 UTC dd7255d3383fc29e4b37cbe2e48b0b4acc31872b
3 files changed +3 -3
apps/server/src/cloud/pinnedRuntime.ts
+1 -1
@@ -716,7 +716,7 @@ const runningExecutables = Effect.fn("cloud.pinned_runtime.running_executables")
716 "-NoProfile",
717 "-NonInteractive",
718 "-Command",
719 - "Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine",
719 + "[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine",
720 ],
721 }
722 : { command: "lsof", args: ["-nP", "-w", "-d", "txt", "-F", "n"] }),
apps/server/src/device/deviceToolMaintenance.ts
+1 -1
@@ -65,7 +65,7 @@ function pruneTools(root, specs, flat) {
65 return withToolMaintenance(root, () => {
66 // Keep installs used by any running helper, including older T3 releases.
67 const scan = process.platform === 'win32'
68 - ? require('node:child_process').spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', 'Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine'], { encoding: 'utf8', timeout: 10000 })
68 + ? require('node:child_process').spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', '[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine'], { encoding: 'utf8', timeout: 10000 })
69 : require('node:child_process').spawnSync('ps', ['-ax', '-o', 'command='], { encoding: 'utf8', timeout: 10000 });
70 if (scan.status !== 0 || !scan.stdout) return;
71 for (const [name, required] of specs) {
apps/server/src/terminal/Manager.ts
+1 -1
@@ -905,7 +905,7 @@ const windowsProcessTableSnapshot = Effect.fn("terminal.windowsProcessTableSnaps
905 > {
906 const processRunner = yield* ProcessRunner.ProcessRunner;
907 const command =
908 - 'Get-CimInstance Win32_Process -ErrorAction Stop | ForEach-Object { Write-Output "$($_.ProcessId)|$($_.ParentProcessId)|$($_.Name)" }';
908 + '[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); Get-CimInstance Win32_Process -ErrorAction Stop | ForEach-Object { Write-Output "$($_.ProcessId)|$($_.ParentProcessId)|$($_.Name)" }';
909 const result = yield* processRunner
910 .run({
911 command: "powershell.exe",