Skip to content

fix(acpx): add windowsHide to MCP proxy spawn on Windows#1945

Open
BingqingLyu wants to merge 4 commits intomainfrom
fork-pr-60678-fix-issue-60672
Open

fix(acpx): add windowsHide to MCP proxy spawn on Windows#1945
BingqingLyu wants to merge 4 commits intomainfrom
fork-pr-60678-fix-issue-60672

Conversation

@BingqingLyu
Copy link
Copy Markdown
Owner

@BingqingLyu BingqingLyu commented Apr 28, 2026

On Windows, the MCP proxy spawns the target agent command (e.g., npx codex-acp)
without the windowsHide option. This can cause issues where the spawned process
exits with code 1 due to terminal window handling issues.

This fix adds windowsHide: true to the spawn options when running on Windows,
consistent with how the main acpx spawn handles Windows terminals.

Fixes openclaw#60672

Assistant and others added 4 commits April 2, 2026 18:14
Add .mp3 and audio/mpeg detection in resolveFeishuOutboundMediaKind() so that
TTS-generated audio files (typically .mp3) are sent as voice messages
instead of file attachments in Feishu.

Fixes openclaw#59588
Add a configurable timeout for Ollama API requests to prevent the web
chat from hanging indefinitely when using local Ollama. The fix:

1. Adds a default 2-minute timeout (120s) for local Ollama requests
   as a safety net when no external abort signal is provided.

2. Allows users to configure a custom timeout via the provider
   config (models.providers.ollama.timeoutSeconds).

3. The timeout is only applied when no external signal is provided,
   respecting any external abort controller from the agent runtime.

This addresses the issue where direct Ollama API calls work normally
but OpenClaw web chat hangs indefinitely. The default 120s should
be sufficient for local models while still allowing users to tune
it via config if needed.

Fixes openclaw#60330
Fix TypeScript error where timeout cleanup code referenced 'response'
before it was declared. Move the clearTimeout call after the fetch.
On Windows, the MCP proxy spawns the target agent command (e.g., npx codex-acp)
without the windowsHide option. This can cause issues where the spawned process
exits with code 1 due to terminal window handling issues.

This fix adds windowsHide: true to the spawn options when running on Windows,
consistent with how the main acpx spawn handles Windows terminals.

Fixes openclaw#60672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Windows ACP Codex spawn via OpenClaw exits with code 1 while direct acpx codex initializes

1 participant