Four features from real-data testing feedback:
- The sidebar button now opens a launch modal (scope + model + cost
summary) instead of navigating. Starting closes the modal and shows
a "running in background" toast; completion raises a toast with an
actionable-count summary and a "View results" link. The sweep was
already navigation-proof; now the UX matches.
- Reviews investigate deeper: when a thread's branch has a PR, the
server fetches state, review decision, CI rollup, mergeability, and
the last five comments via `gh pr view`, feeds them into the review
prompt, and returns a prStatus with a computed mergeReady flag
(open + clean merge + CI not failing + not blocked on review).
Lookups degrade to "no PR context" on any failure.
- New "Merge ready" bucket at the top of the results grid with
per-card "Merge & settle" and a section-level "Merge all (N)".
- Merging runs through a SEQUENTIAL queue: each PR is re-validated
against live GitHub state before merging (an earlier queue entry may
have just changed the base), merged PRs settle their thread
immediately, and a conflict marks the card and hands the rebase to
the thread's own agent via a turn message — the queue continues past
it. review.mergePullRequest returns conflict/already-closed/not-ready
as outcomes rather than errors so the queue can branch on them.
Co-Authored-By: Claude Fable 5 <[email protected]>
Adds a sidebar-v2 button that reviews every unsettled thread across all
connected environments: an LLM summarizes each thread, suggests a
corrected title when the current one is misleading, and recommends
settling threads whose work has concluded. Results stream into a new
/review-sweep page with per-item Apply buttons and Apply All — nothing
applies without a click.
- contracts: ReviewThreadSummaryInput/Result, review.summarizeThread WS
RPC, reviewSweep capability flag (old servers are skipped)
- server: generateThreadReview TextGeneration op across all five
providers, conservative prompt with transcript capping, and
ReviewService.summarizeThread reading the projection
- client-runtime: summarizeThread RPC command atom
- web: reviewSweepStore runner (concurrency 3, runId-guarded, survives
navigation), /review-sweep view, SidebarV2 entry button
Settle recommendations are blocked for active threads at four layers:
prompt rules, normalizeThreadReview, a server-side projection re-check
(never trusts the client's canSettleNow), and a client canSettle
re-check at apply time.
Co-Authored-By: Claude Fable 5 <[email protected]>