Cancel current ultrawork session
Cancels the current ultrawork session and preserves history.
/plugin marketplace add mnthe/hardworker-marketplace/plugin install ultrawork@hardworker-marketplace[--help]The session_id is provided by the hook via systemMessage as CLAUDE_SESSION_ID.
You MUST pass it to the script via --session flag.
First, confirm with the user:
AskUserQuestion(questions=[{
"question": "Cancel the current ultrawork session?",
"header": "Confirm",
"options": [
{"label": "Yes, cancel", "description": "Mark session as cancelled, preserve history"},
{"label": "No, continue", "description": "Keep working on current session"}
],
"multiSelect": False
}])
If confirmed, execute the cancel script with --session:
"${CLAUDE_PLUGIN_ROOT}/scripts/ultrawork-cancel.sh" --session {SESSION_ID}
The script will: