Skip to content

Commit eb73c49

Browse files
committed
fix: auto-continue after plan approval via additionalContext
ExitPlanMode hook now uses additionalContext (not systemMessage) and tells Claude to start executing the approved plan immediately, rather than stopping to ask the user. Co-developed-by: Claude Code v2.1.50 (claude-opus-4-6)
1 parent 5fed946 commit eb73c49

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "context-daddy",
1010
"source": "./",
1111
"description": "Your codebase's context needs a responsible adult. Fast code exploration, living project narratives, and tribal knowledge that survives across sessions.",
12-
"version": "0.15.4",
12+
"version": "0.15.5",
1313
"author": {
1414
"name": "Robert Taylor"
1515
},

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "context-daddy",
3-
"version": "0.15.4",
3+
"version": "0.15.5",
44
"description": "Your codebase's context needs a responsible adult. Fast code exploration, living project narratives, and tribal knowledge that survives across sessions.",
55
"author": {
66
"name": "Robert Taylor"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to the context-tools plugin will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.15.5] - 2026-03-05
9+
10+
### Fixed
11+
- **Auto-continue after plan approval** - ExitPlanMode hook now injects via `additionalContext` (not `systemMessage`) and directs Claude to start executing immediately
12+
813
## [0.15.4] - 2026-03-04
914

1015
### Fixed

hooks/plan-capture.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,19 @@ fi
6060
# Get current goal info for the message
6161
GOAL_STATUS=$(bash "${SCRIPT_DIR}/goal-context-helper.sh" --status "${PROJECT_ROOT}" 2>/dev/null || true)
6262

63-
# Build the nudge message
64-
MSG="📋 Plan approved with steps that should be tracked in your active goal.
63+
# Build the continuation directive
64+
MSG="📋 Plan approved. Now execute it.
6565
6666
Plan steps detected:
6767
${STEPS}
6868
69-
**ACTION**: Use goal_add_step to add these as goal steps (skip any that duplicate existing steps). Use short kebab-case step IDs derived from the titles."
69+
**ACTION REQUIRED**:
70+
1. If these steps are not already in the active goal, use goal_add_step to add them (short kebab-case step IDs)
71+
2. **Start implementing the plan NOW.** Do not stop to ask the user — the plan has been approved. Begin with step 1."
7072

71-
MSG_ESCAPED=$(echo -n "${MSG}" | python3 -c "import sys,json; print(json.dumps(sys.stdin.read()))" | sed 's/^"//;s/"$//')
73+
MSG_ESCAPED=$(echo -e "${MSG}" | python3 -c "import sys,json; print(json.dumps(sys.stdin.read()))" | sed 's/^"//;s/"$//')
7274
cat << EOF
7375
{
74-
"systemMessage": "${MSG_ESCAPED}"
76+
"additionalContext": "${MSG_ESCAPED}"
7577
}
7678
EOF

0 commit comments

Comments
 (0)