openclaw - 💡(How to fix) Fix [Bug] Session status not synced with endedAt [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70421Fetched 2026-04-23 07:24:57
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants
RAW_BUFFERClick to expand / collapse

Bug Description

Session object shows status: "running" even after endedAt timestamp has been set. The session is actually terminated but the status field doesn't reflect this.

Steps to Reproduce

  1. Any agent session (e.g., pm1, dev1, director1) processes messages and eventually ends
  2. The endedAt field gets populated correctly
  3. But status still shows "running" instead of "done"

Expected Behavior

When endedAt is set, status should automatically change to "done".

Environment

  • OpenClaw version: 2026.4.21
  • Runtime: Linux 6.17.0-20-generic
  • Node: v22.22.2

extent analysis

TL;DR

Update the session status to "done" when the endedAt timestamp is set to reflect the actual termination of the session.

Guidance

  • Verify that the endedAt field is correctly populated and that the session is indeed terminated before expecting the status to change.
  • Check the OpenClaw version's documentation for any known issues or configuration options related to session status updates.
  • Investigate the code responsible for updating the session status and ensure it correctly handles the endedAt field.
  • Consider adding a temporary workaround to manually update the session status to "done" when the endedAt field is set, if an immediate fix is not available.

Example

No code snippet is provided due to lack of specific code details in the issue.

Notes

The provided information does not include specific code or configuration details, so the guidance is limited to general steps that can be taken to investigate and potentially mitigate the issue.

Recommendation

Apply a workaround to manually update the session status to "done" when the endedAt field is set, as the current behavior does not automatically update the status as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] Session status not synced with endedAt [1 participants]