Files
Claude-Code-Workflow/.claude/commands/workflow/session/resume.md

1.9 KiB

name, description
name description
resume 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

/workflow:session:resume     # Resume most recent paused session

Implementation Flow

Step 1: Find Paused Sessions

ccw session list --location active
# Filter for sessions with status="paused"

Step 2: Check Session Status

ccw session read WFS-session --type session
# Check .status field in response

Step 3: Find Most Recent Paused

ccw session list --location active
# Sort by created_at, filter for paused status

Step 4: Update Session Status to Active

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

# 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

ccw tool exec session_manager '{"operation":"read","session_id":"WFS-xxx","content_type":"session"}'