opencode icon indicating copy to clipboard operation
opencode copied to clipboard

The problem of overly long bash description

Open doitcan-oiu opened this issue 1 month ago • 4 comments

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

doitcan-oiu avatar Dec 17 '25 23:12 doitcan-oiu

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.

github-actions[bot] avatar Dec 17 '25 23:12 github-actions[bot]

what context size do u have

rekram1-node avatar Dec 18 '25 00:12 rekram1-node

what context size do u have

200k

doitcan-oiu avatar Dec 18 '25 00:12 doitcan-oiu

hm what provider are u using? Ig we can prolly condense the prompt potentially but i hadnt heard of this

rekram1-node avatar Dec 18 '25 00:12 rekram1-node