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:
openhands 2026-03-28 06:34:26 +00:00
parent c2e95799a0
commit 8f41230fa0
3 changed files with 12 additions and 10 deletions

View file

@ -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