Skip to content

Add openclaw sessions reset <session-id> subcommand #834

@arun-gupta

Description

@arun-gupta

Problem Statement

There is currently no CLI command to reset a specific session. When a session becomes corrupted (e.g. after a lock failure via the Telegram bridge), the only recovery path is to manually delete .jsonl and sessions.json files from inside the sandbox — which requires knowing the file paths and having sandbox shell access.

Proposed Design

A reset subcommand on openclaw sessions would make this recoverable without manual file system intervention:

  openclaw sessions reset main
  openclaw sessions reset tg-8689248858

Current workaround:

  rm /sandbox/.openclaw-data/agents/main/sessions/*.jsonl
  rm /sandbox/.openclaw-data/agents/main/sessions/sessions.json

Alternatives Considered

No response

Category

enhancement: feature

Checklist

  • I searched existing issues and this is not a duplicate
  • This is a design proposal, not a "please build this" request

Metadata

Metadata

Labels

Getting StartedUse this label to identify setup, installation, or onboarding issues.NemoClaw CLIUse this label to identify issues with the NemoClaw command-line interface (CLI).enhancementNew feature or requestpriority: highImportant issue that should be resolved in the next release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions