fix(minimax): implement history repair and truncation to prevent tool sequence errors
- Add _repair_minimax_history to close dangling tool calls from interrupted sessions. - Add _trim_minimax_history to manage token limits and intelligently prune history. - Integrate repair and trimming into _send_minimax loop. - Resolves MiniMax error 2013 (tool call result does not follow tool call).
This commit is contained in:
+1
-1
@@ -283,5 +283,5 @@ This file tracks all major tracks for the project. Each track has its own detail
|
||||
|
||||
---
|
||||
|
||||
- [ ] **Track: Fix MiniMax history sequencing and truncation**
|
||||
- [x] **Track: Fix MiniMax history sequencing and truncation**
|
||||
*Link: [./tracks/minimax_history_fix_20260601/](./tracks/minimax_history_fix_20260601/)*
|
||||
|
||||
Reference in New Issue
Block a user