看不到已用token,手动输入/compact 也没有任何效果,日志无报错也没有执行效果。经常400爆上下文只能开新对话,有人遇到过么
openclaw sessions
下面是我的配置文件:
{
"meta": {
"lastTouchedVersion": "2026.4.1",
"lastTouchedAt": "2026-04-02T05:59:40.034Z"
},
"wizard": {
"lastRunAt": "2026-04-02T05:59:40.012Z",
"lastRunVersion": "2026.4.1",
"lastRunCommand": "doctor",
"lastRunMode": "local"
},
"update": {
"auto": {
"enabled": false
}
},
"auth": {
"profiles": {
"openai:default": {
"provider": "openai",
"mode": "api_key"
}
}
},
"models": {
"mode": "merge",
"providers": {
"volcengine-plan": {
"baseUrl": "xxx",
"apiKey": "xxx",
"api": "openai-completions",
"models": [
{
"id": "ark-code-latest",
"name": "ark-code-latest",
"input": [
"text",
"image"
],
"contextWindow": 256000,
"maxTokens": 32000
},
{
"id": "doubao-seed-2.0-pro",
"name": "doubao-seed-2.0-pro",
"input": [
"text",
"image"
],
"contextWindow": 256000,
"maxTokens": 128000
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "volcengine-plan/doubao-seed-2.0-pro"
},
"imageModel": "volcengine-plan/doubao-seed-2.0-pro",
"bootstrapMaxChars": 12000,
"compaction": {
"reserveTokensFloor": 20000,
"memoryFlush": {
"enabled": true,
"softThresholdTokens": 4000,
"prompt": "Write any lasting notes to memory/YYYY-MM-DD.md; reply with NO_REPLY if nothing to store.",
"systemPrompt": "Session nearing compaction. Store durable memories now."
}
},
"thinkingDefault": "off"
}
},
"tools": {
"profile": "full",
"alsoAllow": [
"feishu_bitable_app",
"feishu_bitable_app_table",
"feishu_bitable_app_table_field",
"feishu_bitable_app_table_record",
"feishu_bitable_app_table_view",
"feishu_calendar_calendar",
"feishu_calendar_event",
"feishu_calendar_event_attendee",
"feishu_calendar_freebusy",
"feishu_chat",
"feishu_chat_members",
"feishu_create_doc",
"feishu_doc_comments",
"feishu_doc_media",
"feishu_drive_file",
"feishu_fetch_doc",
"feishu_get_user",
"feishu_im_bot_image",
"feishu_im_user_fetch_resource",
"feishu_im_user_get_messages",
"feishu_im_user_get_thread_messages",
"feishu_im_user_message",
"feishu_im_user_search_messages",
"feishu_oauth",
"feishu_oauth_batch_auth",
"feishu_search_doc_wiki",
"feishu_search_user",
"feishu_sheet",
"feishu_task_comment",
"feishu_task_subtask",
"feishu_task_task",
"feishu_task_tasklist",
"feishu_update_doc",
"feishu_wiki_space",
"feishu_wiki_space_node"
],
"web": {
"search": {
"enabled": true,
"provider": "kimi"
},
"fetch": {
"enabled": true
}
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"channels": {
"feishu": {
"enabled": true,
"appId": "xxx",
"appSecret": "xxx",
"domain": "feishu",
"connectionMode": "websocket",
"webhookPath": "/feishu/events",
"dmPolicy": "allowlist",
"groupPolicy": "open",
"reactionNotifications": "own",
"typingIndicator": true,
"resolveSenderNames": true,
"requireMention": true,
"allowFrom": [
"xxx"
],
"groupAllowFrom": [
"xxx"
],
"groups": {
"*": {
"enabled": true
}
}
},
"imessage": {
"enabled": true,
"cliPath": "/opt/homebrew/bin/imsg",
"dmPolicy": "pairing",
"groupPolicy": "allowlist",
"includeAttachments": true,
"mediaMaxMb": 16
}
},
"gateway": {
"port": 18790,
"mode": "local",
"auth": {
"token": "xxx"
}
},
"plugins": {
"enabled": true,
"allow": [
"moonshot",
"openclaw-lark"
],
"load": {
"paths": []
},
"slots": {
"contextEngine": "legacy"
},
"entries": {
"feishu": {
"enabled": false
},
"moonshot": {
"enabled": true,
"config": {
"webSearch": {
"apiKey": "xxx",
"baseUrl": "xxx"
}
}
},
"openclaw-lark": {
"enabled": true,
"config": {}
}
},
"installs": {
"openclaw-lark": {
"source": "archive",
"sourcePath": "/var/folders/dy/gfrjzn7d1cbfyz3r2034kmm40000gn/T/openclaw-lark-Iq91Nv/larksuite-openclaw-lark-2026.3.29.tgz",
"installPath": "xxx/.openclaw/extensions/openclaw-lark",
"version": "2026.3.29",
"installedAt": "2026-03-30T07:07:50.934Z"
}
}
}
}
