restore-opencode-archived-session
CommunityUnhide any archived OpenCode session fast
Software Engineering#sqlite#opencode#data recovery#session restore#archived threads#database visibility#mojibake search
AuthorPans0020
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Restores a hidden OpenCode session so the conversation reappears in the current session list when it was archived (hidden) via its database time_archived flag.
Core Features & Use Cases
- Targets the archived-session flag: Restores visibility by setting
time_archivedto NULL for a single selected session ID. - Finds the correct session reliably: Helps locate the exact archived row using clues like slug, directory, timestamps, and message text, including handling mojibake/garbled Chinese.
- Prevents risky edits: Avoids deleting or recreating sessions and restricts changes to the selected
time_archivedfield only. - Use Case: You remember an earlier OpenCode thread about a project, but it no longer shows in the normal list because it was archived; restore it so you can continue from that context.
Quick Start
Ask to restore the archived session with id ses_xxx in the OpenCode SQLite database by setting only its time_archived field to NULL, then verify the session becomes visible in the UI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: restore-opencode-archived-session Download link: https://github.com/Pans0020/opencode-skills/archive/main.zip#restore-opencode-archived-session Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.