#- agents.defaults.contextPruning.mode: Invalid input
1 messages ยท Page 1 of 1 (latest)
This error means your agents.defaults.contextPruning.mode config is set to a channel ID instead of a valid pruning mode.
Fix: You likely have a typo or misplaced config. Check your ~/.clawdbot/clawdbot.json for something like:
{
"agents.defaults.contextPruning": {
"mode": "1464810660545433744" โ This is wrong!
}
}
Valid mode values are:
"balanced"(default)"aggressive""minimal"
Correct it to:
{
"agents.defaults.contextPruning": {
"mode": "balanced"
}
}
Then restart the gateway: clawdbot gateway restart
If you meant to configure a specific channel for pruning (not just a mode), the config key is different โ let me know what you're trying to accomplish and I can point you to the right setting! ๐ฆ
"workspace": "/Users/taurus/clawd",
"contextPruning": {
"mode": "balanced"
},
That's weird - your config looks correct! The error is pointing to a different channel ID (1464810660545433744) than your message ID.
Quick questions to diagnose:
-
Is there another
contextPruningconfig somewhere else? Check for:- Environment variables:
CLAWDBOT_AGENTS_DEFAULTS_CONTEXTPRUNING_MODE - A separate
agentsconfig block - Multiple config files being merged
- Environment variables:
-
Can you run this and paste the output?
clawdbot config.get agents.defaults.contextPruning -
Also check the full agents.defaults:
clawdbot config.get agents.defaults
The config you pasted looks right, so something else must be feeding that channel ID in. Once you share those outputs, I can pinpoint where it's coming from! ๐ฆ
taurus@jolly lodges-Mac-mini clawd % clawdbot config.get agents.defaults.contextPruning
Invalid config at /Users/taurus/.clawdbot/clawdbot.json:\n- agents.defaults.contextPruning.mode: Invalid input
error: unknown command 'config.get'
(Did you mean configure?)
Ah! Two things:
-
Your Clawdbot version is old โ
config.getdoesn't exist in older versions. That's why you can't inspect the running config. -
Your config has a validation error โ the runtime is complaining that
modeis invalid input.
Please run:
clawdbot --version
And paste your full agents.defaults section from ~/.clawdbot/clawdbot.json so we can see what's actually in there. The version matters because config keys changed over time. ๐ฆ
"agents": {
"defaults": {
"model": {
"primary": "claude-sonnet-4-5-20250929",
},
"models": {
"anthropic/claude-opus-4-5-20251101": {},
"anthropic/claude-sonnet-4-5-20250929": {},
"minimax/MiniMax-M2.1": {}
},
"workspace": "/Users/taurus/clawd",
"contextPruning": {
"mode": "balanced"
},
"heartbeat": {
"every": "4h"
}
}
},
That config looks correct to me! The problem is likely:
- Old Clawdbot version that doesn't understand this config format
- Another override somewhere (env var, another config file)
Try this:
clawdbot gateway update
clawdbot gateway restart
If that doesn't help, check for env variables:
env | grep -i claw
env | grep -i context
Or try commenting it out entirely:
"contextPruning": {
// "mode": "balanced"
}
Then restart and see if the error goes away.
If the error persists even with that section removed, the issue is coming from somewhere else entirely. Let me know what version you get and whether the env grep turns up anything! ๐ฆ
ok i think i've fixed it by commenting that out
Glad it's fixed! ๐
If you want the context pruning feature back, update Clawdbot and it should work:
clawdbot gateway update
clawdbot gateway restart
Then uncomment the section and it should accept "balanced" properly. The version you were running likely had a bug or different config schema.
Let me know if you hit any other issues! ๐ฆ
i tried to switch my config to use the minimax coding plan, but hwen i do that, it says HTTP 500: api_error: insufficient balance (1008) (request_id: 05c4b697f4189bcdb4e7b1d4cc9207b6)
That's a MiniMax billing error, not a Clawdbot config issue!
Error 1008 = "Insufficient balance" โ you've run out of credits with MiniMax.
To fix:
- Check your MiniMax dashboard: https://platform.minimaxi.com/
- Add credits/pay-as-you-go balance
- Try again
The config you set is correct โ it's just that the MiniMax API is rejecting the request because your account doesn't have enough funds.
Once you top up, it should work! ๐ฆ
no issues with my coding plan balance. i am still not sure why it's calling the normal sdk when i have a coding plan key added.
Hmm, I'm not familiar with the specifics of MiniMax coding plan configuration. The error suggests your coding plan key might not be set up correctly.
Quick questions:
-
How did you add the coding plan key? Via
clawdbot configureor manually in config? -
Can you share your MiniMax config section? (sanitized)
{ "providers": { "minimax": { "apiKey": "...", // any other settings? } } }
- Is the coding plan key different from your regular MiniMax key? Some providers require a specific endpoint or key format for plan-based access.
The best place to check is MiniMax's docs or the #models channel (1456704705219661980) โ someone there probably knows the exact config format for coding plans! ๐ฆ
hey did you figure this out?
Yes actually it was using an old config oddly. Make sure your config is updated and use the coding plan key
thanks mate
I am having the same issue, I am using Coding Plan API key, but I still get the insufficient error, did you do anything else?
make sure you use the coding api key plan, that was my issue