feat(session): add kugetsu_context_dump call in cmd_continue

Integrates the existing kugetsu_context_dump() function to capture
the initial user prompt before forking the agent.

Closes #212
This commit is contained in:
shokollm
2026-04-08 02:17:27 +00:00
parent 24dd91d0e1
commit c9eb8badea
2 changed files with 3 additions and 0 deletions

View File

@@ -501,6 +501,8 @@ cmd_continue() {
exit 1
fi
kugetsu_context_dump "$issue_ref" "$message" "$(issue_ref_to_branch_name "$issue_ref")"
local session_file=$(issue_ref_to_filename "$issue_ref")
local session_path="$SESSIONS_DIR/$session_file"
local opencode_session_id=$(python3 -c "import json; print(json.load(open('$session_path')).get('opencode_session_id', ''))" 2>/dev/null || echo "")