fix: inbox send loses content when called from subprocess (stdin fallback)#131
Open
Alan5168 wants to merge 2 commits intoHKUDS:mainfrom
Open
fix: inbox send loses content when called from subprocess (stdin fallback)#131Alan5168 wants to merge 2 commits intoHKUDS:mainfrom
Alan5168 wants to merge 2 commits intoHKUDS:mainfrom
Conversation
added 2 commits
March 20, 2026 00:27
… IPC - Add strict whitelist protection mode for workspace pruning - Implement symlink-based dependency sharing (node_modules, .venv) - Add headless worker wrapper script for non-interactive execution - Fix environment variable inheritance bug - 98.8% workspace size reduction for multi-agent teams Tested with: - Tavily search API (real-time data, no cache) - Swarm inbox IPC communication - Multi-agent team deployments
When clawteam inbox send is called from a subprocess or shell script (e.g., via runtime watch --exec), the content argument can be lost. This fix makes content an optional argument that falls back to reading from stdin, enabling reliable script integration. Fixes HKUDS#130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
clawteam inbox sendlosing message content when called from a subprocess or shell script (e.g., viaruntime watch --exec).Problem
When
clawteam inbox sendis invoked from a script or subprocess, the content argument may not be passed correctly, resulting in an empty string stored in the event log. This breaks theruntime watch --execpattern where an executor script needs to respond via inbox send.Solution
Make the
contentargument optional. When not provided, read fromsys.stdin:This enables the reliable script pattern:
Testing
Verified with:
printf 'HELLO' | clawteam inbox send team agent✓runtime watch --execloop with executor script: content correctly written to event log ✓Related Issue
Fixes #130