Skip to content

Bug: Session not automatically reset after lock failure #833

@arun-gupta

Description

@arun-gupta

Description

When the Telegram bridge fails with a session file lock error #831, the session is left in a broken state with accumulated "Tool not found" errors in the conversation history. On the next message, the agent resumes that corrupted context and behaves erratically (e.g., responding to "Hello" with "Let me open a new shell")

Reproduction Steps

  1. Set up the Telegram bridge with nemoclaw start
  2. Send a message that triggers the session lock error (code 255)
  3. Send another message — the agent responds with unrelated tool invocations instead of a normal reply

Expected behavior:

After a lock failure, the bridge should either start a fresh session or discard the broken context before the next message.

Actual behavior:

The broken context persists and corrupts subsequent responses.

Workaround:

nemoclaw my-nemoclaw connect
rm /sandbox/.openclaw-data/agents/main/sessions/*.jsonl
rm /sandbox/.openclaw-data/agents/main/sessions/sessions.json
exit

Environment

  • NemoClaw: v0.1.0
  • OpenShell: 0.0.14
  • OpenClaw: 2026.3.11 (29dc654)
  • macOS: Apple M4 Pro (arm64)
  • Container runtime: Docker Desktop
  • Provider: nvidia-nim (NVIDIA Endpoint API)

Debug Output

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Metadata

Metadata

Assignees

Labels

Integration: TelegramUse this label to identify Telegram bot integration issues with NemoClaw.bugSomething isn't workingpriority: highImportant issue that should be resolved in the next releasesecuritySomething isn't secure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions