session-recovery

Query the session_store to find and resume interrupted Copilot CLI sessions.

413|64|Updated Feb 7, 2023
One-click install
npx skills add https://github.com/christianhelle/refitter --skill session-recovery-christianhelle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-recovery
Source: https://github.com/christianhelle/refitter/tree/main/.copilot/skills/session-recovery
Command: npx skills add https://github.com/christianhelle/refitter --skill session-recovery-christianhelle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finds and resumes interrupted Copilot CLI sessions by querying the session_store for past work and rehydrating the session context.

Core Features & Use Cases

  • Find Recent Sessions: Query the sessions table to surface the most recently active sessions and identify the last checkpoint to understand where the work stopped.
  • Filter Out Automated Sessions: Exclude automated monitors/heartbeat sessions to reveal human-driven work.
  • Resume with Context: Present the session details and a ready-to-use resume action to continue where you left off, preserving working directory and checkpoint.

Quick Start

Identify the target session ID from the recent sessions and run 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 crash?

To find recent Copilot sessions, the recovery process queries the sessions table in the session_store to surface the most recently active entries, filters out automated monitors, and identifies the last checkpoint where your work stopped.

How do I filter out automated heartbeat sessions when searching for past Copilot work?

To filter out automated heartbeat sessions when searching for past Copilot work, the recovery process excludes automated monitors from the session_store query results, ensuring only human-driven sessions are surfaced for potential resumption.

Can I recover my working directory and checkpoint context from a previous Copilot session?

Yes, you can recover your working directory and checkpoint context by querying the session_store for past session details and applying the ready-to-use resume action, which preserves your working directory and checkpoint for immediate continuation.

What is the best way to rehydrate Copilot session context after a disconnection?

The best way to rehydrate Copilot session context after a disconnection is to query the session_store for the interrupted session, retrieve the session ID, and execute the resume command to restore your previous working state and checkpoint.

Does session recovery require any external dependencies to query the session_store?

No, session recovery requires no external dependencies to query the session_store; it implements the necessary SQL queries natively to find interrupted work, filter automated monitors, and return the resume command for immediate continuation.