Skip to content

👾 Open Computer Use – Open-Source Alternative to Codex Computer Use

Remove invalid -OutputEncoding PowerShell CLI flag

kogekiplay1add8240be33
diff --git a/apps/OpenComputerUseWindows/main.go b/apps/OpenComputerUseWindows/main.go
index c4d8866..7259e93 100644
--- a/apps/OpenComputerUseWindows/main.go
+++ b/apps/OpenComputerUseWindows/main.go
@@ -458,7 +458,7 @@ func runPowerShell(request psRequest) (*psResponse, error) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
- cmd := exec.CommandContext(ctx, "powershell.exe", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-OutputEncoding", "UTF8", "-File", scriptPath, operationPath)
+ cmd := exec.CommandContext(ctx, "powershell.exe", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-File", scriptPath, operationPath)
output, err := cmd.CombinedOutput()
if ctx.Err() == context.DeadlineExceeded {
return nil, errors.New("Windows runtime timed out after 30s")