Skip to content

fix(tool): sync max_output_tokens command translator to main - #2201

Merged
MiMoHardFather merged 1 commit into
mainfrom
fix/sync-command-translator-max-output-tokens-main
Aug 22, 2026
Merged

fix(tool): sync max_output_tokens command translator to main#2201
MiMoHardFather merged 1 commit into
mainfrom
fix/sync-command-translator-max-output-tokens-main

Conversation

@MiMoHardFather

Copy link
Copy Markdown
Collaborator

Summary

Verification

  • bun test test/tool/bash.test.ts test/tool/tool-script.test.ts (88 pass)
  • bun typecheck from packages/opencode
  • bun turbo typecheck pre-push hook (12 tasks passed)

- Add max_output_tokens parameter to bash and exec_command tools
- Truncate output by token budget (bytes*4 approximation) instead of line limits
- Append tool storage path after merge conflict annotations
- Include head+tail truncation message with original token count
- Update tool-script description and declarations
- Add tests for token-based truncation and exec_command passthrough
@MiMoHardFather
MiMoHardFather merged commit 3dcce4d into main Aug 22, 2026
5 of 6 checks passed
@MiMoHardFather
MiMoHardFather deleted the fix/sync-command-translator-max-output-tokens-main branch August 22, 2026 03:05
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