[PR #13810] fix(opencode): include partial bash output on abort #14819

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

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

State: open
Merged: No


Summary

  • Include bounded partial bash output in tool error text when execution is aborted, so the model can reason from already-produced logs.
  • Keep existing behavior unchanged for non-bash tools and non-abort errors.
  • Add tests for both normal partial output and whitespace-only partial output on abort.

Fixes #13809

Verification

  • bun test test/session/message-v2.test.ts
  • bun run typecheck
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13810 **State:** open **Merged:** No --- ## Summary - Include bounded partial `bash` output in tool error text when execution is aborted, so the model can reason from already-produced logs. - Keep existing behavior unchanged for non-`bash` tools and non-abort errors. - Add tests for both normal partial output and whitespace-only partial output on abort. Fixes #13809 ## Verification - `bun test test/session/message-v2.test.ts` - `bun run typecheck`
yindo added the pull-request label 2026-02-16 18:19:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14819