Home / Market / Archived Session Management

Archived Session Management

Implement, extend, or repair archived-session browsing in OpenClaw Control UI. Use when adding or fixing Archived Sessions / Recent Archived Sessions UI, arc...

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Archived Session Management Implementation Map

Scope

This reference captures the OpenClaw implementation points involved in archived-session UX and the concrete fixes needed when archived sessions fail across search, restore, or resume.

Main files

Backend / data layer

UI layer

Failure patterns and fixes

1. Exact UUID search returns nothing

Symptom

Root cause

Fix Expand the archived search query to include:

2. Archived session exists but is filtered out

Symptom

Root cause

Fix When filtering archived sessions, treat these rows as archived-discoverable:

3. Resume says “Session not found in archive”

Symptom

Root cause

Fix Make restore idempotent:

4. Resume opens the current main chat instead of the archived chat

Symptom

Root cause

Fix After restore, bind the transcript to a distinct live session key, for example:

Write that key into the live store and return it from sessions.resume.

5. Session disappears from both Live and Archived

Symptom

Root cause

Fix Rebind the transcript into the live session store with a distinct key and repair the history row.

Concrete backend behaviors to preserve

history-db.ts

Implement archived discovery with tolerant archived filtering and broad search fields.

Also ensure updateSessionStatus(..., 'active') clears archivedAt so rows do not remain half-archived after restore.

session-archive.ts

On restore:

instead of only flipping status

server-methods/sessions.ts

On sessions.resume:

Operational notes

Good user-facing explanation

When reporting fixes, separate the failure into one of these buckets: