Bug Description
When using kimi/kimi-code as the default model, tool calls frequently fail with "missing required parameter" errors. The model generates tool call requests without including the required parameters.
Error Message
Validation failed for tool "exec":
- command: must have required property 'command'
Received arguments: {}
Validation failed for tool "write":
- content: must have required property 'content'
Received arguments: {}
Reproduction
- Use kimi/kimi-code as default model
- Make 5-10 consecutive tool calls (exec or write)
- Observe first batch of calls fail with missing parameters
Impact
| Tool |
Failure Rate |
| exec |
~85% |
| write |
~90% |
Environment
OpenClaw: 2026.3.31
Node: v22.22.0
OS: macOS 26.4 (arm64)
Gateway: running
LCM: enabled=true, threshold=0.75
Comparison
| Model |
Success Rate |
| kimi/kimi-code |
~15% ❌ |
| minimax-cn/MiniMax-M2.7 |
100% ✅ |
Tested Solutions
-
LCM threshold adjustment - Failed (config key not found)
openclaw config set lcm.threshold 0.85
# Error: Config validation failed: <root>: Unrecognized key: "lcm"
-
OpenClaw upgrade - Issue persists after 3.24 → 3.31
-
Model switch - MiniMax-M2.7 shows 100% success rate
Root Cause (Suspected)
- LCM (Long Context Memory) compression may be truncating tool call parameters
- Or kimi model's output is being cut off during rapid consecutive calls
Workaround
Switch to MiniMax or other stable models as default.
Suggested Fixes
- Make LCM threshold configurable
- Add parameter validation + auto-retry before tool call
- Investigate kimi model's tool call parameter generation
Reported by: Kenny (via OpenClaw)
Bug Description
When using kimi/kimi-code as the default model, tool calls frequently fail with "missing required parameter" errors. The model generates tool call requests without including the required parameters.
Error Message
Reproduction
Impact
Environment
Comparison
Tested Solutions
LCM threshold adjustment - Failed (config key not found)
OpenClaw upgrade - Issue persists after 3.24 → 3.31
Model switch - MiniMax-M2.7 shows 100% success rate
Root Cause (Suspected)
Workaround
Switch to MiniMax or other stable models as default.
Suggested Fixes
Reported by: Kenny (via OpenClaw)