I set up a heartbeat to run with its own agent.
"agents": {
"defaults": {
"model": {
"primary": "zai/glm-5-turbo",
"fallbacks": [
"google/gemini-3-flash",
"google/gemini-3.1-flash-lite-preview",
"google/gemini-3.1-pro-preview"
]
},
"models": {
"google/gemini-3.1-flash-lite-preview": {
"alias": "31lite"
},
"google/gemini-3-flash": {
"alias": "flash"
},
"google/gemini-3.1-pro-preview": {
"alias": "pro"
},
"google/gemini-2.5-flash": {
"alias": "25flash"
},
"zai/glm-5-turbo": {
"alias": "turbo"
},
"zai/glm-5.1": {
"alias": "glm"
},
"custom-10-0-4-81-1234/gemma-4-e4b-it": {
"alias": "gemma4"
}
},
"workspace": "/home/akessel56/.openclaw/workspace",
"userTimezone": "America/Chicago",
"envelopeTimezone": "user",
"envelopeTimestamp": "on",
"compaction": {
"mode": "safeguard"
},
"timeoutSeconds": 600
},
"list":[
{ "id": "main", "default": true },
{
"id": "heartbeat",
"workspace": "~/.openclaw/workspace-heartbeat",
"heartbeat": {
"every": "30m",
"model": "google/gemini-3.1-flash-lite-preview",
"isolatedSession": true,
"lightContext": true,
"target": "discord",
"to": "channel:1482214704784080906"
}
}
]
},
But it seems even with isolatedSession:true - context seems to be continuing to increase with each run.
The session doesn't show in openclaw sessions --json, I'm relying on the logs at google ai studio