1.3 KiB
1.3 KiB
description, allowed-tools
| description | allowed-tools |
|---|---|
| Resume an interrupted worktree task | Bash |
Resume Worktree Task
Resume a background worktree task that was interrupted (rate limit, API error, timeout, or waiting for input).
Usage
Provide:
- Session name - The tmux session to resume
- Message (optional) - Custom instruction for Claude
Example
User: "Resume the my-feature worktree task" User: "Resume my-feature with message 'Continue from phase 4'"
Execution
# Auto-detect error and send appropriate message
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/resume.py <session-name>
# Send custom message
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/resume.py <session-name> "<message>"
# Retry last failed operation
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/resume.py <session-name> --retry
# Check status only (don't send message)
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/resume.py <session-name> --check
Auto-Detection
The script automatically detects:
rate_limit- Waits and sends resume messageapi_error- Sends retry messagetimeout- Sends retry messagewaiting_input- Sends continue message
What It Does
- Checks if session exists
- Captures recent output to detect error type
- Generates appropriate resume message
- Sends message to Claude with Enter confirmation
- Shows response after brief wait