Files
Claude-Code-Workflow/.claude/commands/workflow/session/resume.md
catlog22 c16da759b2 Fix session management location inference and ccw command usage
This commit addresses multiple issues in session management and command documentation:

Session Management Fixes:
- Add auto-inference of location from type parameter in session.ts
- When --type lite-plan/lite-fix is specified, automatically set location accordingly
- Preserve explicit --location parameter when provided
- Update session-manager.ts to support type-based location inference
- Fix metadata filename selection (session-metadata.json vs workflow-session.json)

Command Documentation Fixes:
- Add missing --mode analysis parameter (3 locations):
  * commands/memory/docs.md
  * commands/workflow/lite-execute.md (2 instances)
- Add missing --mode write parameter (4 locations):
  * commands/workflow/tools/task-generate-agent.md
- Remove non-existent subcommands (3 locations):
  * commands/workflow/session/complete.md (manifest, project)
- Update session command syntax to use simplified format:
  * Changed from 'ccw session manifest read' to 'test -f' checks
  * Changed from 'ccw session project read' to 'test -f' checks

Documentation Updates:
- Update lite-plan.md and lite-fix.md to use --type parameter
- Update session/start.md to document lite-plan and lite-fix types
- Sync all fixes to skills/command-guide/reference directory (84 files)

All ccw command usage across the codebase is now consistent and correct.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 18:09:23 +08:00

1.7 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 WFS-session read workflow-session.json
# 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 WFS-session status active

Simple Commands

Basic Operations

  • List sessions: ccw session list --location active
  • Check status: ccw session WFS-xxx read workflow-session.json
  • Update status: ccw session WFS-xxx status 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"}'