mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
Selectively revert ccw session management commands back to commit 5114a94,
while preserving ccw cli exec improvements.
Changes:
- Session management commands (start, list, resume, complete): Full revert to bash commands
- execute.md: Full revert (only had ccw session changes)
- review.md: Reverted ccw session read, kept ccw cli exec
- docs.md: Reverted ccw session read/write, kept ccw cli exec
- lite-fix.md: Reverted ccw session init/read, kept other changes
- lite-plan.md: Reverted ccw session init/read, kept other changes
- lite-execute.md: No changes (kept ccw cli exec intact)
- code-developer.md: No changes (kept ccw cli exec intact)
All ccw session management operations replaced with bash commands.
All ccw cli exec commands preserved for unified CLI execution.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
61 lines
1.6 KiB
Markdown
61 lines
1.6 KiB
Markdown
---
|
|
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
|
|
ls .workflow/active/WFS-* 2>/dev/null
|
|
```
|
|
|
|
### Step 2: Check Session Status
|
|
```bash
|
|
jq -r '.status' .workflow/active/WFS-session/workflow-session.json
|
|
```
|
|
|
|
### Step 3: Find Most Recent Paused
|
|
```bash
|
|
ls -t .workflow/active/WFS-*/workflow-session.json | head -1
|
|
```
|
|
|
|
### Step 4: Update Session Status
|
|
```bash
|
|
jq '.status = "active"' .workflow/active/WFS-session/workflow-session.json > temp.json
|
|
mv temp.json .workflow/active/WFS-session/workflow-session.json
|
|
```
|
|
|
|
### Step 5: Add Resume Timestamp
|
|
```bash
|
|
jq '.resumed_at = "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"' .workflow/active/WFS-session/workflow-session.json > temp.json
|
|
mv temp.json .workflow/active/WFS-session/workflow-session.json
|
|
```
|
|
|
|
## Simple Bash Commands
|
|
|
|
### Basic Operations
|
|
- **List sessions**: `ls .workflow/active/WFS-*`
|
|
- **Check status**: `jq -r '.status' session.json`
|
|
- **Find recent**: `ls -t .workflow/active/*/workflow-session.json | head -1`
|
|
- **Update status**: `jq '.status = "active"' session.json > temp.json`
|
|
- **Add timestamp**: `jq '.resumed_at = "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"'`
|
|
|
|
### 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
|
|
``` |