Files
Claude-Code-Workflow/.claude/commands/workflow/session/pause.md
catlog22 2c3e04b6fc refactor: Standardize command naming conventions and remove parent relationships
Updates all command files to use consistent naming without parent field:
- Remove parent field from all command frontmatter
- Standardize name field to use simple names instead of prefixed names
- Fix usage patterns for brainstorm commands to use proper workflow namespace
- Add new medium-project-update.sh script for batch updates

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 15:06:06 +08:00

65 lines
1.5 KiB
Markdown

---
name: pause
description: Pause the active workflow session
usage: /workflow:session:pause
---
# Pause Workflow Session (/workflow:session:pause)
## Purpose
Pause the currently active workflow session, saving all state for later resumption.
## Usage
```bash
/workflow:session:pause
```
## Behavior
### State Preservation
- Saves complete session state to `workflow-session.json`
- Preserves context across all phases
- Maintains TodoWrite synchronization
- Creates checkpoint timestamp
### Active Session Handling
- Removes `.workflow/.active-[session-name]` marker file
- Session becomes paused (no longer active)
- Other commands will work in temporary mode
### Context Saved
- Current phase and progress
- Generated documents and artifacts
- Task execution state
- Agent context and history
## Status Update
Updates session status to:
- **status**: "paused"
- **paused_at**: Current timestamp
- **resumable**: true
## Output
Displays:
- Session ID that was paused
- Current phase and progress
- Resume instructions
- Session directory location
## Resume Instructions
Shows how to resume:
```bash
/workflow:session:resume # Resume this session
/workflow:session:list # View all sessions
/workflow:session:switch <id> # Switch to different session
```
## Error Handling
- **No active session**: Clear message that no session is active
- **Save errors**: Handles file system issues gracefully
- **State corruption**: Validates session state before saving
---
**Result**: Active session is safely paused and can be resumed later