#12549·NemoClaw

OpenClaw 2026.9.1: main session rejects every turn as "legacy session transcripts" on a fresh sandbox (session-store variant of #12254, not covered by #12237)

Author: convexchaosCreated Oct 1, 2026Updated Oct 1, 2026
Labelsneeds: triage

Investigation Summary

  • Related to #12254 but a different subsystem: #12254 fails in the auth profile store (AUTH_PROFILE_MIGRATION_REQUIRED); this fails in the session store (Persisted legacy session transcripts require doctor/import migration before runtime use).
  • Not covered by #12237. That PR is scoped to managed-route NVIDIA credentials and auth-profiles.json. This sandbox uses a local vLLM provider with no NVIDIA key, so the turn never reaches the auth profile store — it fails on the session store instead. When #12237 merges and closes #12254, this variant remains.
  • Reproduced on a fully fresh install (destroy --yes --cleanup-gateway, then onboard --fresh), before any workspace restore, across two onboards and two session IDs.
  • Scoped to the main session. agent:main:main fails for every channel that routes to it (Telegram DMs, default webchat, cron-nested lane). A dashboard-created session on the same sandbox works normally.
  • OpenClaw reports nothing to migrate: doctor --session-sqlite inspect → 0 legacy entries, 0 issues; dry-run → 0 targets. No *.jsonl exists under /sandbox/.openclaw.
  • Same closed loop as #12254: doctor --fix and doctor --session-sqlite recover refuse while the Gateway owns the state directory; openclaw sessions delete agent:main:main returns Cannot delete the main session; NemoClaw exposes no gateway stop.
  • #12237 established the root-cause class: NemoClaw writes startup state that 9.1 classifies as legacy. Two candidates for the session equivalent are observed here — the retired "default": true marker on the main agent entry, and an empty agents/main/sessions/ directory created at onboard.
  • Possibly relevant upstream: openclaw/openclaw#150110 (keep legacy session repair out of startup), not in 2026.9.1, first shipped in 2026.9.5.

Description

On a freshly onboarded v0.0.129 sandbox (OpenClaw 2026.9.1), every turn routed to the agent's main session fails before reply:

lane task error: lane=session:agent:main:main error="Persisted legacy session
transcripts require doctor/import migration before runtime use"
Embedded agent failed before reply: Persisted legacy session transcripts require
doctor/import migration before runtime use

This is the session-store counterpart of #12254. The likely reason it surfaces here instead of as AUTH_PROFILE_MIGRATION_REQUIRED: this sandbox uses a local vLLM provider with no NVIDIA credentials, so the auth profile path that #12254 and #12237 address is never exercised. The turn proceeds far enough to fail on the session store.

The failure is limited to the main session:

Session key Result
agent:main:main every turn fails — Telegram DMs, default webchat thread, cron-nested lane
agent:main:dashboard-… works normally on the same sandbox, model, and Gateway

OpenClaw's own tooling finds no legacy state, yet the runtime demands a migration. #12237 showed that #12254 was caused by NemoClaw writing a sandbox auth profile that 9.1 reads as legacy. The session failure fits the same pattern: something NemoClaw writes for the main agent or its session location is being read as a legacy session store.

Expected: the main session serves turns on a fresh sandbox, including Telegram DMs.

Actual: the main session is unusable. Because the generator emits no session.dmScope, every Telegram DM is forced into it, so Telegram cannot reach the agent at all. The only workaround is starting a new dashboard conversation.

Reproduction Steps

  1. Tear down completely:

    nemoclaw <sandbox> destroy --yes --cleanup-gateway
    nemoclaw list            # empty
    openshell sandbox list   # empty
    
  2. Onboard v0.0.129 fresh with the local vLLM provider and Telegram:

    nemoclaw onboard --fresh
    
  3. Before any workspace restore, send the bot a Telegram DM:

    message processed: channel=telegram ... sessionKey=agent:main:main outcome=error
    
  4. Send a message in the dashboard's default thread — same failure on channel=webchat ... sessionKey=agent:main:main.

  5. Start a new dashboard conversation — it creates agent:main:dashboard-… and works.

  6. Inspect:

    openclaw doctor --session-sqlite inspect
    # 1 target(s), 0 legacy entries, 1 sqlite entries, 0 issue(s)
    openclaw doctor --session-sqlite dry-run
    # 0 target(s), 0 legacy entries, 0 sqlite entries, 0 issue(s)
    find /sandbox/.openclaw -name '*.jsonl'                 # nothing
    ls -la /sandbox/.openclaw/agents/main/sessions/         # exists, empty
    grep -n '"default": true' /sandbox/.openclaw/openclaw.json
    # 23:        "default": true
    
  7. Attempt repair — each path is closed:

    openclaw doctor --fix --non-interactive
    # Doctor could not enter maintenance. Stop the Gateway through its service
    # owner, then run openclaw doctor --fix. StateDatabaseCoordinatorContentionError
    openclaw doctor --session-sqlite recover
    # Cannot run session SQLite recover while the Gateway ... owns this OpenClaw
    # state directory. Stop the Gateway and retry.
    openclaw sessions delete --agent main --yes agent:main:main
    # Cannot delete the main session (agent:main:main).
    nemoclaw <sandbox> gateway --help
    # command sandbox:gateway not found

Environment

  • Platform: NVIDIA DGX Spark (GB10, aarch64), 128 GB unified memory
  • DGX OS 7.6.0, kernel 7.0.0-1019-nvidia, driver 580.178.04, CUDA 13.0
  • Docker gateway runtime
  • NemoClaw: v0.0.129
  • OpenShell: 0.0.116
  • OpenClaw: 2026.9.1 (ad6fe23)
  • Inference: self-managed vLLM (v0.27.1) serving Nemotron 3.5 Lightning 30B-A3B NVFP4 on localhost:8000, onboarded with the local vLLM provider; reached in-sandbox via inference.local. No NVIDIA API key configured.
  • Channels: Telegram (DM allowlist, @mentions only)
  • Policy tier: Balanced, plus local-inference, github, weather

Debug Output

Full nemoclaw debug --quick output is in the first comment below (too long for the issue body). Reviewed for credentials before posting.

Logs

bash
### Main session fails on every channel that routes to it

  lane task error: lane=main error="Persisted legacy session transcripts require doctor/import migration before runtime use"
  lane task error: lane=session:agent:main:main error="Persisted legacy session transcripts require doctor/import migration before runtime use"
  Embedded agent failed before reply: Persisted legacy session transcripts require doctor/import migration before runtime use
  message processed: channel=telegram ... sessionKey=agent:main:main outcome=error
  message processed: channel=webchat ... sessionKey=agent:main:main outcome=error
  lane task error: lane=cron-nested error="Persisted legacy session transcripts require doctor/import migration before runtime use"

### A dashboard-created session on the same sandbox works

  │ Kind   │ Key                       │ Model                  │ Tokens (ctx %) │
  │ direct │ agent:main:dashb...3c995a │ nemotron-3.5-lightning │ 20k/262k (8%)  │
  │ direct │ agent:main:main           │ nemotron-3.5-lightning │ 0.0k/262k (0%) │

### Session store reports nothing to migrate

  Config (/sandbox/.openclaw/openclaw.json): Removed retired agents.entries.*.default markers.
  session-sqlite inspect: 1 target(s), 0 legacy entries, 1 sqlite entries, 0 issue(s)
  - main: imported=0/0 events, validated=0/0 events, archived-unreferenced-jsonl=0, unreferenced-jsonl=0
  session-sqlite dry-run: 0 target(s), 0 legacy entries, 0 sqlite entries, 0 issue(s)

The "Removed retired ... default markers" line appears on every Doctor run and never
persists, because the config is sealed.

### Candidate legacy-looking startup state

  $ grep -n -i -E 'default|session|store' /sandbox/.openclaw/openclaw.json
  23:        "default": true

  $ ls -la /sandbox/.openclaw/agents/main/sessions/
  drwx--S--- 2 sandbox sandbox 4096 ... .        (empty, created at onboard)

### No dmScope control

  generate-openclaw-config.mts (v0.0.129) has no dmScope; the generated config has none.

Full gateway log available on request.

Checklist

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