Context
PR review sessions are not fully integrated with the existing session management system. When launching a review from a PR, the session is created but cannot be easily accessed afterwards.
Goal
Make PR review sessions consistent with issue-based sessions in terms of visibility and management.
Acceptance criteria
Session visibility
Branch handling
Optional improvements
Already fixed
Context
PR review sessions are not fully integrated with the existing session management system. When launching a review from a PR, the session is created but cannot be easily accessed afterwards.
Goal
Make PR review sessions consistent with issue-based sessions in terms of visibility and management.
Acceptance criteria
Session visibility
has_ptycalculation for worktrees withoutissue_number(tui.rs:229-231)tkey binding in PR list view to open existing PTY session (pr.rs)Branch handling
worktree.rsinensure_branch_exists)origin/mainorigin/<branch>and track it insteadOptional improvements
sessions.jsonAgentSessionto support PR reviews (addpr_number: Option<u64>or makeissue_numberoptional)AgentSessioninpr.rsafter dispatchAlready fixed
list_pty_sessions()→list_all_pty_sessions()inlist.rs:280pr-review-{uuid})dispatch_agent_for_worktree→dispatch_pr_review_sessioncreate_worktree_with_branchnow returns worktree name