--- name: resume description: Resume the most recently paused workflow session with automatic session discovery and status update --- # Resume Workflow Session (/workflow:session:resume) ## Overview Resume the most recently paused workflow session, restoring all context and state. ## Usage ```bash /workflow:session:resume # Resume most recent paused session ``` ## Implementation Flow ### Step 1: Find Paused Sessions ```bash ccw session list --location active # Filter for sessions with status="paused" ``` ### Step 2: Check Session Status ```bash ccw session read WFS-session --type session # Check .status field in response ``` ### Step 3: Find Most Recent Paused ```bash ccw session list --location active # Sort by created_at, filter for paused status ``` ### Step 4: Update Session Status to Active ```bash ccw session status WFS-session active # Or with full update: ccw session update WFS-session --type session --content '{"status":"active","resumed_at":"2025-12-10T08:00:00Z"}' ``` ## Simple Commands ### Basic Operations - **List sessions**: `ccw session list --location active` - **Check status**: `ccw session read WFS-xxx --type session` - **Update status**: `ccw session status WFS-xxx active` ### Resume Result ``` Session WFS-user-auth resumed - Status: active - Paused at: 2025-09-15T14:30:00Z - Resumed at: 2025-09-15T15:45:00Z - Ready for: /workflow:execute ``` ## session_manager Tool Alternative Use `ccw tool exec session_manager` for session resume: ### Update Session Status ```bash # Update status to active ccw tool exec session_manager '{ "operation": "update", "session_id": "WFS-xxx", "content_type": "session", "content": { "status": "active", "resumed_at": "2025-12-10T08:00:00Z" } }' ``` ### Read Session Status ```bash ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}' ```