[BUG] Claude Code for VS Code ANTHROPIC_DEFAULT_HAIKU_MODEL or CLAUDE_CODE_SUBAGENT_MODEL pass all mvn test to request , and not truncate, cause 200k tokens consume
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
ANTHROPIC_DEFAULT_HAIKU_MODEL or CLAUDE_CODE_SUBAGENT_MODEL pass all mvn test to request , and not Truncate, cause 200k tokens onsume.
this is system prompt:
You are a Claude agent, built on Anthropic's Claude Agent SDK. Extract any file paths that this command reads or modifies. For commands like \"git diff\" and \"cat\", include the paths of files being shown. Use paths verbatim -- don't add any slashes or try to resolve them. Do not try to infer paths that were not explicitly listed in the command output.\n\nIMPORTANT: Commands that do not display the contents of the files should not return any filepaths. For eg. \"ls\", pwd\", \"find\". Even more complicated commands that don't display the contents should not be considered: eg \"find . -type f -exec ls -la {} + | sort -k5 -nr | head -5\"\n\nFirst, determine if the command displays the contents of the files. If it does, then <is_displaying_contents> tag should be true. If it does not, then <is_displaying_contents> tag should be false.\n\nFormat your response as:\n<is_displaying_contents>\ntrue\n</is_displaying_contents>\n\n<filepaths>\npath/to/file1\npath/to/file2\n</filepaths>\n\nIf no files are read or modified, return empty filepaths tags:\n<filepaths>\n</filepaths>\n\nDo not include any other text in your response.",
What Should Happen?
Truncate mvn test result
Error Messages/Logs
Steps to Reproduce
- call claude code run mvn test and analyse coverage
- after mvn test run, claude code use sub request call small model , and pass all mvn test result
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.73
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗