session-recovery

Query interrupted Copilot CLI sessions from the session_store SQLite database.

Updated Nov 27, 2024
One-click install
npx skills add https://github.com/Izak90/Izak90.github.io --skill session-recovery-izak90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-recovery
Source: https://github.com/Izak90/Izak90.github.io/tree/main/isaac_treinos_ar_livre/.copilot/skills/session-recovery
Command: npx skills add https://github.com/Izak90/Izak90.github.io --skill session-recovery-izak90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Copilot CLI work can be interrupted by terminal crashes, network drops, or restarts, leaving sessions partially completed and checkpoints orphaned. This skill enables you to locate such interrupted sessions in the session_store and resume work from the last checkpoint.

Core Features & Use Cases

  • Find recent sessions updated within a time window.
  • Filter out automated/heartbeat sessions to focus on human work.
  • Search sessions by topic via keywords to locate relevant work.
  • Inspect full session context (conversations, checkpoints, touched files, and linked refs) before resuming.
  • Resume a selected session quickly using copilot --resume SESSION_ID.

Quick Start

Identify a recent interrupted session and resume it using copilot --resume SESSION_ID.

Frequently Asked Questions about session-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resume an interrupted Copilot CLI session after a terminal crash?

To resume an interrupted Copilot CLI session, query the local session_store SQLite database to locate the orphaned work and execute the copilot --resume SESSION_ID command to restore it from the last checkpoint exactly where you left off.

How does session recovery work with the SQLite session_store database?

Session recovery works by querying the session_store SQLite database with read-only access to locate interrupted Copilot CLI sessions, filtering by time window, working directory, and last checkpoint to identify the exact human work to restore.

Can I filter out automated heartbeat sessions when searching for recent Copilot CLI work?

Yes, you can filter out automated heartbeat sessions when searching the session_store database, allowing you to focus specifically on locating and resuming interrupted human work rather than automated background processes.

What session context can I inspect before resuming a Copilot CLI checkpoint?

Before resuming a Copilot CLI checkpoint, you can inspect the full session context including past conversations, saved checkpoints, touched files, and linked refs to ensure you are selecting the correct interrupted workflow to safely continue.

Do I need read-only access to the session_store database to find orphaned checkpoints?

Yes, you need read-only access to the session_store SQLite database to find orphaned checkpoints, ensuring the recovery process safely queries interrupted Copilot CLI sessions without modifying the underlying local development environment data.

How do I search interrupted Copilot CLI sessions by topic or working directory?

You can search interrupted Copilot CLI sessions by topic using keywords or filter by working directory to locate relevant work, applying filters directly within the session_store database to quickly narrow down the available recent checkpoints.