altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

[Bug] Requests with 'tool_use' and 'tool_result' blocks must include tool definition.

Open FrankTub opened this issue 7 months ago • 1 comments

Description

When in a session and I ask it to do anything in that session the result is always:

Bad Request: invalid request parameters: Requests with 'tool_use' and 'tool_result' blocks must include tool definition.

Even running /feedback summarize this session results in the same error.

It might be that the following is relevant:

Context 173,549 tokens 87% used $0.00 spent

Steps to Reproduce

Not sure if the following steps are the way to reproduce it, but have had this a few times now. The last time I did something like:

  • altimate --yolo
  • Switch to Plan mode
  • Ask it to plan a change in your dbt project
  • Switch to Builder mode
  • Let it implement it
  • Ask for some refactoring that it did

Expected Behavior

No error.

Actual Behavior

Above error

Environment

  • OS: macOS Tahoe 26.3.1 (a)
  • CLI version: 0.5.19
  • Python version: 3.11.9
  • Node version: v19.7.0

FrankTub avatar Apr 10 '26 12:04 FrankTub

@anandgupta42 I just tested this on 0.5.21 and I just stumbled into the same error again.

Again it happens when Context used is > 80%:

Image

And the error:

Image

Could you reopen it?

FrankTub avatar Apr 13 '26 10:04 FrankTub