disinto/dev
openhands c2e95799a0 fix: Migrate review-pr.sh to SDK + pr-lifecycle (#800)
Extract agent_run() into shared lib/agent-sdk.sh to eliminate code
duplication between dev-agent.sh and review-pr.sh (CI dedup check).

Rewrite review-pr.sh from tmux-based agent-session.sh to synchronous
claude -p invocations via shared agent-sdk.sh, matching the SDK pattern
from dev-agent.sh (#798).

Key changes:
- Create lib/agent-sdk.sh with shared agent_run() function
- Both dev-agent.sh and review-pr.sh now source lib/agent-sdk.sh
  instead of defining agent_run() inline
- Replace agent-session.sh (tmux + monitor_phase_loop) with agent_run()
- Add .sid file for session continuity: re-reviews resume the original
  session via --resume, so Claude remembers its prior review
- Use worktree.sh for worktree cleanup
- Remove phase file signaling — completion is automatic when claude -p
  returns
- Keep all review business logic unchanged

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 06:32:12 +00:00
..
AGENTS.md chore: gardener housekeeping 2026-03-26 2026-03-26 18:14:35 +00:00
dev-agent.sh fix: Migrate review-pr.sh to SDK + pr-lifecycle (#800) 2026-03-28 06:32:12 +00:00
dev-poll.sh fix: Restore dev-poll.sh scheduler on SDK (#799) 2026-03-28 06:12:40 +00:00
phase-handler.sh dev: rebase on target branch before every push (#770) (#775) 2026-03-26 21:46:21 +01:00
phase-test.sh fix: Duplicate read_phase definition in phase-test.sh (#179) 2026-03-23 08:30:13 +00:00