- Group sweep cards and resolve project titles by scoped
(environmentId, projectId) key — bare project ids can collide across
connected environments.
- Withdraw a settle recommendation from the card when the apply-time
canSettle guard refuses it, instead of leaving a CTA the guard will
keep rejecting.
- Document why summarizeThread's two projection reads are ordered
transcript-then-shell: reading the activity view last catches
sessions that start mid-read, and the reverse skew only affects
summary staleness — settles are re-validated at apply time and by
the decider, so no consistency window can settle live work.
Co-Authored-By: Claude Fable 5 <[email protected]>
The provider CLI spawn reads local context files (AGENTS.md, CLAUDE.md)
from its cwd, so silently falling back to process.cwd() when a thread
has no worktree and its project shell is missing would mix the server's
own directory contents into an external LLM prompt. Return a typed
TextGenerationError instead — the sweep UI already renders it as a
retry-able error card.
Co-Authored-By: Claude Fable 5 <[email protected]>
- macroscope: guard apply-title/apply-settle completions with the runId
captured before the RPC so a Re-run mid-flight never stamps applied
state onto the new run's cards; applyAll re-reads items from the
store each step so mid-apply dismissals are respected, and bails out
entirely when the run changes.
- cursor: the server's activity re-check now also treats a queued turn
start (user message no session has adopted yet) as active, mirroring
the decider's thread.settle guard; sweep candidate ordering uses
NaN-safe toSortableTimestamp instead of raw Date.parse.
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]>