fix(skill): resolve hardcoded planner session name and plan file paths dynamically in run_loop.sh
This commit is contained in:
@@ -185,7 +185,7 @@ resolve_planner_session() {
|
||||
MAM_STATE_JSON="$(load_state_json)" python3 -c "
|
||||
import os, json
|
||||
d = json.loads(os.environ.get('MAM_STATE_JSON', '{}'))
|
||||
planner = 'canary-projects-multi-agent-mux-planner-reviewer-claude'
|
||||
planner = ''
|
||||
for s in d.get('tmux_sessions', []):
|
||||
if 'planner' in s.get('role', ''):
|
||||
planner = s.get('name')
|
||||
@@ -312,8 +312,11 @@ if [ "$PLAN_MODE" = true ]; then
|
||||
log_success "Interactive planning completed. Plan finalized."
|
||||
else
|
||||
log_info "=== Phase 1: Self-Planning Mode (Direct Execution) ==="
|
||||
EXISTING_PLAN_FILE=".agents/reports/canary-projects-multi-agent-mux-planner-reviewer-claude/report-final.md"
|
||||
if [ -f "$EXISTING_PLAN_FILE" ]; then
|
||||
EXISTING_PLAN_FILE=""
|
||||
if [ -n "$PLANNER_SESSION" ]; then
|
||||
EXISTING_PLAN_FILE=".agents/reports/$PLANNER_SESSION/report-final.md"
|
||||
fi
|
||||
if [ -n "$EXISTING_PLAN_FILE" ] && [ -f "$EXISTING_PLAN_FILE" ]; then
|
||||
log_info "Found existing promoted plan at '$EXISTING_PLAN_FILE'. Loading plan..."
|
||||
CURRENT_PLAN=$(cat "$EXISTING_PLAN_FILE")
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user