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 "
|
MAM_STATE_JSON="$(load_state_json)" python3 -c "
|
||||||
import os, json
|
import os, json
|
||||||
d = json.loads(os.environ.get('MAM_STATE_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', []):
|
for s in d.get('tmux_sessions', []):
|
||||||
if 'planner' in s.get('role', ''):
|
if 'planner' in s.get('role', ''):
|
||||||
planner = s.get('name')
|
planner = s.get('name')
|
||||||
@@ -312,8 +312,11 @@ if [ "$PLAN_MODE" = true ]; then
|
|||||||
log_success "Interactive planning completed. Plan finalized."
|
log_success "Interactive planning completed. Plan finalized."
|
||||||
else
|
else
|
||||||
log_info "=== Phase 1: Self-Planning Mode (Direct Execution) ==="
|
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"
|
EXISTING_PLAN_FILE=""
|
||||||
if [ -f "$EXISTING_PLAN_FILE" ]; then
|
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..."
|
log_info "Found existing promoted plan at '$EXISTING_PLAN_FILE'. Loading plan..."
|
||||||
CURRENT_PLAN=$(cat "$EXISTING_PLAN_FILE")
|
CURRENT_PLAN=$(cat "$EXISTING_PLAN_FILE")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user