This skill is designed to be run via a cron job or periodic task to monitor and prune stale sessions.
The skill relies on openclaw sessions_list to identify old sessions and openclaw sessions_kill to terminate them. It can be integrated into a TaskFlow or run as a standalone script via exec.
sessions_list to retrieve all active sessions.last_activity timestamp of each session with the current time.current_time - last_activity > 3600 seconds:message tool) stating: "当前会话已经结束".sessions_kill .openclaw CLI installed and accessible.共 1 个版本