The problem of overly long bash description
Question
I encountered a very strange set of questions in opencode.json
"tools ":{ "bash" : true }
It will prompt: "Error handling response: Request failed, status code 400", and I saw the bash prompt on "toolSpecification". Is it because my model provider doesn't support such long descriptions that these descriptions shouldn't be placed in the userContext? I set bash to false and can make the request
This issue might be a duplicate of existing issues. Please check:
- #5360: prompt is too long - Similar token/length limit issues
- #4845: prompt is too long unrecoverable - Same 400 error pattern with long specifications
- #4866: [FEATURE] Inform the model what shell it's running inside of in Bash tool's description - Related to bash tool description length
- #4357: Tool argument descriptions lost in schema conversion - Related to tool description handling
- #3523: [BUG] tools[21].function.name string too long - Related to tool specification validation errors
Feel free to ignore if none of these address your specific case.
what context size do u have
what context size do u have
200k
hm what provider are u using? Ig we can prolly condense the prompt potentially but i hadnt heard of this