native macOS codings agent orchestrator prowl.onev.cat

Extract handlePullRequestRefreshOnSelection to reduce duplication master

Consolidate the cooldown-cancellation and PR-refresh scheduling logic that was duplicated across the same-repo and cross-repo branches of setSelectedWorktreeID into a single helper method. This also fixes the comment scope — the original comment only mentioned "within the same repo" but the same logic applies to entering a new repo. Signed-off-by: Alex <alex.tech.lab@outlook.com>


+21 -26
1 changed file