Skip to content

[Bug]: TUI /reset can keep reusing a stale generated transcript filename after sessions created by older reset behavior #77770

Description

@ddupg

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

After upgrading from an older version where /reset reused the generated transcript filename, subsequent TUI /reset calls can continue writing new session transcripts to the old sessionId-based .jsonl filename.

Steps to reproduce

  1. Run pnpm openclaw tui
  2. Send a normal message.
  3. Run /reset.
  4. Send a normal message in new session.
  5. Inspect the agent sessions directory.

Expected behavior

Based on earlier observed behavior and clean-state behavior after the current fix, /reset should create a fresh logical session and use a transcript filename based on the new sessionId, such as <new-session-id>.jsonl.

Actual behavior

The old transcript is archived as <old-filename>.jsonl.reset.<timestamp>, but the new active transcript continues to use the same stale generated filename, for example cc420d76-5fab-465c-8b8e-4415b9fab87e.jsonl, even though the transcript header contains a different new session id.

Image

OpenClaw version

2026.5.3

Operating system

macOS

Install method

No response

Model

ark/doubao-seed-2-0-pro-260215

Provider / routing chain

openclaw -> TUI

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions