Bug type
Regression (worked before, now fails)
Summary
When deleting a cron job via cron.remove, the session record remains in sessions.json, causing deleted jobs to still appear in the Control UI session dropdown.
Steps to reproduce
- Create a cron job via Control UI or cron.add
- Delete the cron job via Control UI or cron.remove
- Refresh the Control UI
- The deleted cron job still appears in the session dropdown list
Expected behavior
When a cron job is deleted, the following should be cleaned up:
- Cron configuration (currently working)
- ~/.openclaw/cron/runs/*.jsonl history files
- Session record in ~/.openclaw/agents/main/sessions/sessions.json
Actual behavior
Only the cron configuration is removed. The session record remains in sessions.json, causing the UI to display "ghost sessions" that cannot be accessed but still appear in the dropdown.
OpenClaw version
openclaw --version
Operating system
Linux (WSL2) - Ubuntu on Windows
Install method
npm global
Model
opus4.6
Provider / routing chain
openclaw
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Bug type
Regression (worked before, now fails)
Summary
When deleting a cron job via cron.remove, the session record remains in sessions.json, causing deleted jobs to still appear in the Control UI session dropdown.
Steps to reproduce
Expected behavior
When a cron job is deleted, the following should be cleaned up:
Actual behavior
Only the cron configuration is removed. The session record remains in sessions.json, causing the UI to display "ghost sessions" that cannot be accessed but still appear in the dropdown.
OpenClaw version
openclaw --version
Operating system
Linux (WSL2) - Ubuntu on Windows
Install method
npm global
Model
opus4.6
Provider / routing chain
openclaw
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response