fix(#2426): bash wake gives status + read() pointer, not inline stdout/stderr
This commit is contained in:
parent
5869f34390
commit
f5c8a6a8db
2 changed files with 29 additions and 15 deletions
|
|
@ -238,8 +238,9 @@ impl BashMcp {
|
|||
#[tool(
|
||||
description = "Run a shell command in the background. Returns a task ID immediately — \
|
||||
do NOT wait inline. When the command finishes, the harness fires a wake with \
|
||||
`from: \"bash-task-<id>\"` and the exit code + last stdout lines in the body; \
|
||||
handle it on a future turn. Use `status` to poll the task status within \
|
||||
`from: \"bash-task-<id>\"` carrying the exit status plus a `Read(<path>)` \
|
||||
pointer to the captured `.out`/`.err` files (not the output text itself — \
|
||||
read only what you need); handle it on a future turn. Use `status` to poll the task status within \
|
||||
the same turn if needed. `timeout_secs` defaults to `None` (no timeout) — \
|
||||
task runs until natural exit; pass an explicit value to kill after N seconds. \
|
||||
Pass `wait_seconds` (capped at 30) to wait inline for fast commands: when the \
|
||||
|
|
|
|||
Loading…
Reference in a new issue