Private
Public Access
0
0

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:
2026-06-01 22:20:42 -04:00
parent c1764a644d
commit 8cd6e7ed55
3 changed files with 61 additions and 14 deletions
+1 -1
View File
@@ -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/)*