Skip to content

[Bug]: session.reset is not ocurring. #69083

Description

@akessel56

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

session.reset is not occuring

Steps to reproduce

openclaw v2026.4.14
session: {
dmScope: "per-channel-peer",
reset: { mode: "daily", atHour: 1 }
}
gateway timezone: America/Chicago

Expected behavior

I would expect that at some point after 1am the main session attached to a particular discord channel would reset. It does not.

Actual behavior

Krill 🦐:
affected session key: agent:main:discord:channel:1480773291491721217
on 2026.4.14, transcript 39d002db-76b9-47aa-b9b9-8be5de7eaa06 stayed active from 2026-04-15 until manual /new on 2026-04-19 14:03 CDT
manual /new created new session 3714f321-b3dd-4609-8fdd-1ca8b0607dd3

OpenClaw version

v2026.4.14

Operating system

Debian 12 bookworm

Install method

npm global

Model

glm-5-turbo

Provider / routing chain

openclaw > zai > glm-5-turbo

Additional provider/model setup details

No response

Logs, screenshots, and evidence

stat /home/akessel56/.openclaw/agents/main/sessions/39d002db-76b9-47aa-b9b9-8be5de7eaa06.jsonl.reset.2026-04-19T19-03-37.979Z
  File: /home/akessel56/.openclaw/agents/main/sessions/39d002db-76b9-47aa-b9b9-8be5de7eaa06.jsonl.reset.2026-04-19T19-03-37.979Z
  Size: 893287        Blocks: 1760       IO Block: 4096   regular file
Device: 259,2    Inode: 2194074     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/akessel56)   Gid: ( 1000/akessel56)
Access: 2026-04-15 09:43:27.307785743 -0500
Modify: 2026-04-19 14:03:30.923492050 -0500
Change: 2026-04-19 14:03:37.975437465 -0500
 Birth: 2026-04-15 09:43:27.307785743 -0500

sed -n '1p;$p' /home/akessel56/.openclaw/agents/main/sessions/39d002db-76b9-47aa-b9b9-8be5de7eaa06.jsonl.reset.2026-04-19T19-03-37.979Z
{"type":"session","version":3,"id":"39d002db-76b9-47aa-b9b9-8be5de7eaa06","timestamp":"2026-04-15T14:43:24.736Z","cwd":"/home/akessel56/.openclaw/workspace"}
{"type":"custom","customType":"openclaw:bootstrap-context:full","data":{"timestamp":1776625410927,"runId":"746144b9-61bc-440d-8bf8-adc8efe98189","sessionId":"39d002db-76b9-47aa-b9b9-8be5de7eaa06"},"id":"5c8e0e07","parentId":"8da604f3","timestamp":"2026-04-19T19:03:30.927Z"}

Impact and severity

Severity no other good alternative except to have this work or do a manual /new
Affected: channels
Frequency: always
Context grows until compaction, I have the bot doing a write to memory before midnight, and then this should do the /reset.

Additional information

I have not had this working, and I added that session.reset several weeks back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclose:duplicateClosed as duplicateduplicateThis issue or pull request already exists

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions