Skip to content

Fix(windows): subprocess spawn compatibility for long promptsfix(windows): subprocess spawn compatibility for long prompts - #159

Open
lxq-ll wants to merge 1 commit into
HKUDS:mainfrom
lxq-ll:fix/windows-subprocess-compat
Open

Fix(windows): subprocess spawn compatibility for long promptsfix(windows): subprocess spawn compatibility for long prompts#159
lxq-ll wants to merge 1 commit into
HKUDS:mainfrom
lxq-ll:fix/windows-subprocess-compat

Conversation

@lxq-ll

@lxq-ll lxq-ll commented May 16, 2026

Copy link
Copy Markdown

Three fixes for Windows native subprocess backend:

  1. adapters.py: os.getuid() is Unix-only, use getattr fallback
  2. subprocess_backend.py: CMD.exe truncates long prompts at newlines. Write full prompt to CLAWTEAM_INSTRUCTIONS.md and pass short -p. Handles both Claude (-p flag) and Codex (positional arg).
  3. subprocess_backend.py: redirect stdout/stderr to log files under ~/.clawteam/logs/ instead of DEVNULL for debugging.

Testing
Verified on Windows 11 with a 2-agent DAG workflow (architect → coder → ) using Claude Code and Claude Code.
Before fix: agents received truncated prompts, exited immediately with "It looks like your message only contains a heading ## Identity".
After fix: agents read full instructions from file, complete tasks successfully.

Three fixes for Windows native subprocess backend:

1. adapters.py: os.getuid() is Unix-only, use getattr fallback
2. subprocess_backend.py: CMD.exe truncates long prompts at newlines.
   Write full prompt to CLAWTEAM_INSTRUCTIONS.md and pass short -p.
   Handles both Claude (-p flag) and Codex (positional arg).
3. subprocess_backend.py: redirect stdout/stderr to log files under
   ~/.clawteam/logs/ instead of DEVNULL for debugging.
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.

1 participant