[PR #13288] fix(bash): make description optional for tool calls #14597

Open
opened 2026-02-16 18:19:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13288

State: open
Merged: No


Fixes #13146

Summary

  • Make description optional in BashTool input schema
  • Add a fallback description (Run shell command) when callers omit it
  • Add regression test to verify bash.execute({ command }) works without description

Why

Some clients/tool-call paths invoke bash with only command. Requiring description causes schema validation errors and makes bash effectively unusable in those flows.

Scope

  • packages/opencode/src/tool/bash.ts
  • packages/opencode/test/tool/bash.test.ts
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13288 **State:** open **Merged:** No --- Fixes #13146 ## Summary - Make `description` optional in `BashTool` input schema - Add a fallback description (`Run shell command`) when callers omit it - Add regression test to verify `bash.execute({ command })` works without `description` ## Why Some clients/tool-call paths invoke bash with only `command`. Requiring `description` causes schema validation errors and makes bash effectively unusable in those flows. ## Scope - `packages/opencode/src/tool/bash.ts` - `packages/opencode/test/tool/bash.test.ts`
yindo added the pull-request label 2026-02-16 18:19:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14597