fix: Migrate review-pr.sh to SDK + pr-lifecycle (#800)
Move SID_FILE recovery into agent_recover_session() in lib/agent-sdk.sh to eliminate remaining duplicate block between dev-agent.sh and review-pr.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c2e95799a0
commit
8f41230fa0
3 changed files with 12 additions and 10 deletions
|
|
@ -243,10 +243,7 @@ if [ -n "$PR_NUMBER" ]; then
|
|||
fi
|
||||
|
||||
# Recover session_id from .sid file (crash recovery)
|
||||
if [ -f "$SID_FILE" ]; then
|
||||
_AGENT_SESSION_ID=$(cat "$SID_FILE")
|
||||
log "recovered session_id: ${_AGENT_SESSION_ID:0:12}..."
|
||||
fi
|
||||
agent_recover_session
|
||||
|
||||
# =============================================================================
|
||||
# WORKTREE SETUP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue