bd96595ba8
When a conversation's assistant session has been idle longer than runtime.acp.assistantSessionResetIdleMs (default 1h, 0 disables) and its owner has no unfinished proposals, the next inbound message starts a fresh session instead of resuming. Binding lastActiveAt is persisted per turn so the decision survives restarts.
58 lines
1.4 KiB
JSON
58 lines
1.4 KiB
JSON
{
|
|
"configVersion": 3,
|
|
"bot": {
|
|
"id": "BOT_ID",
|
|
"workspace": "/absolute/path/to/workspace",
|
|
"persona": "Describe this bot's responsibilities and boundaries.",
|
|
"assistantPersona": "Optional speaking personality for the user-facing Assistant; falls back to persona when empty.",
|
|
"agent": {
|
|
"id": "kimi",
|
|
"command": "/home/USER/.kimi-code/bin/kimi",
|
|
"args": ["acp"],
|
|
"env": {}
|
|
},
|
|
"skills": [],
|
|
"permissions": {
|
|
"mode": "deny",
|
|
"allowedTools": [],
|
|
"allowedCommandPatterns": []
|
|
}
|
|
},
|
|
"gateway": {
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 8787,
|
|
"publicBaseUrl": ""
|
|
},
|
|
"policy": {
|
|
"allowedUsers": [],
|
|
"allowedChats": [],
|
|
"requireMentionInGroup": true
|
|
},
|
|
"platform": {
|
|
"type": "qq",
|
|
"connectionMode": "websocket",
|
|
"appId": "QQ_APP_ID",
|
|
"clientSecret": "QQ_CLIENT_SECRET",
|
|
"botSecret": "",
|
|
"verifySignature": true,
|
|
"botNames": ["QQ_BOT_NAME"],
|
|
"intents": 33554432,
|
|
"shard": [0, 1]
|
|
}
|
|
},
|
|
"runtime": {
|
|
"acp": {
|
|
"stateFile": "",
|
|
"initializeTimeoutMs": 10000,
|
|
"promptTimeoutMs": 14400000,
|
|
"cancelGraceMs": 5000,
|
|
"idleTimeoutMs": 1800000,
|
|
"assistantSessionResetIdleMs": 3600000,
|
|
"sweepIntervalMs": 60000,
|
|
"maxProcesses": 8,
|
|
"maxAssistantSessions": 4
|
|
}
|
|
}
|
|
}
|