[PR #9648] feat(opencode): switch tool truncation to token-based limits #13170

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

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

State: open
Merged: No


Summary

  • switch global tool output truncation from byte limits to token budgets
  • update Read tool truncation messaging to token-based limits
  • align bash tool help text and truncation tests with token limits

Testing

  • bun test test/tool/truncation.test.ts
  • bun test test/tool/bash.test.ts

References

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9648 **State:** open **Merged:** No --- ## Summary - switch global tool output truncation from byte limits to token budgets - update Read tool truncation messaging to token-based limits - align bash tool help text and truncation tests with token limits ## Testing - `bun test test/tool/truncation.test.ts` - `bun test test/tool/bash.test.ts` ## References - Fixes #9045
yindo added the pull-request label 2026-02-16 18:18:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13170