Skip to content

fix(tools): treat empty process_id as absent in Bash tool#156

Merged
yishuiliunian merged 1 commit into
mainfrom
fix/bash-empty-process-id
May 15, 2026
Merged

fix(tools): treat empty process_id as absent in Bash tool#156
yishuiliunian merged 1 commit into
mainfrom
fix/bash-empty-process-id

Conversation

@yishuiliunian
Copy link
Copy Markdown
Contributor

Summary

Changes

  • crates/tools/process/bash/src/lib.rs — add .filter(|s| !s.is_empty()) to process_id extraction

Test plan

  • Clippy passes locally
  • CI passes

LLM agents frequently pass process_id: "" when invoking Bash,
causing the tool to enter the background-process lookup branch
instead of executing the command. Filter empty strings so they
are treated the same as a missing field.
@yishuiliunian yishuiliunian merged commit 4dad80b into main May 15, 2026
4 checks passed
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