altimate-code
altimate-code copied to clipboard
[Bug] Requests with 'tool_use' and 'tool_result' blocks must include tool definition.
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
@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%:
And the error:
Could you reopen it?