mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-14 02:42:04 +08:00
refactor(execute): clarify resume mode description and enhance error handling details
This commit is contained in:
@@ -7,7 +7,7 @@ argument-hint: "[--resume-session=\"session-id\"]"
|
|||||||
# Workflow Execute Command
|
# Workflow Execute Command
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
Orchestrates autonomous workflow execution through systematic task discovery, agent coordination, and progress tracking. **Executes entire workflow without user interruption**, providing complete context to agents and ensuring proper flow control execution with comprehensive TodoWrite tracking.
|
Orchestrates autonomous workflow execution through systematic task discovery, agent coordination, and progress tracking. **Executes entire workflow without user interruption** (except initial session selection if multiple active sessions exist), providing complete context to agents and ensuring proper flow control execution with comprehensive TodoWrite tracking.
|
||||||
|
|
||||||
**Resume Mode**: When called with `--resume-session` flag, skips discovery phase and directly enters TodoWrite generation and agent execution for the specified session.
|
**Resume Mode**: When called with `--resume-session` flag, skips discovery phase and directly enters TodoWrite generation and agent execution for the specified session.
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ Orchestrates autonomous workflow execution through systematic task discovery, ag
|
|||||||
|
|
||||||
**Key Optimization**: Use IMPL_PLAN.md (existence check only) and TODO_LIST.md as primary sources instead of reading all task JSONs
|
**Key Optimization**: Use IMPL_PLAN.md (existence check only) and TODO_LIST.md as primary sources instead of reading all task JSONs
|
||||||
|
|
||||||
**Resume Mode**: This phase is skipped as session analysis was already completed by `/workflow:status`.
|
**Resume Mode**: This phase is skipped when `--resume-session` flag is provided (session already known).
|
||||||
|
|
||||||
### Phase 3: TodoWrite Generation
|
### Phase 3: TodoWrite Generation
|
||||||
**Applies to**: Both normal and resume modes (resume mode entry point)
|
**Applies to**: Both normal and resume modes (resume mode entry point)
|
||||||
@@ -538,7 +538,7 @@ meta.agent missing → Infer from meta.type:
|
|||||||
| **Discovery Errors** |
|
| **Discovery Errors** |
|
||||||
| No active session | No `.active-*` markers found | Create or resume session: `/workflow:plan "project"` | N/A |
|
| No active session | No `.active-*` markers found | Create or resume session: `/workflow:plan "project"` | N/A |
|
||||||
| Multiple sessions | Multiple `.active-*` markers | Prompt user selection | N/A |
|
| Multiple sessions | Multiple `.active-*` markers | Prompt user selection | N/A |
|
||||||
| Corrupted session | Invalid JSON files | Recreate session structure: `/workflow:session:status --validate` | N/A |
|
| Corrupted session | Invalid JSON files | Recreate session structure or validate files | N/A |
|
||||||
| **Execution Errors** |
|
| **Execution Errors** |
|
||||||
| Agent failure | Agent crash/timeout | Retry with simplified context | 2 |
|
| Agent failure | Agent crash/timeout | Retry with simplified context | 2 |
|
||||||
| Flow control error | Command failure | Skip optional, fail critical | 1 per step |
|
| Flow control error | Command failure | Skip optional, fail critical | 1 per step |
|
||||||
|
|||||||
Reference in New Issue
Block a user