Skip to content

fix(server): refresh open PRs on settled threads and dedupe lane-ended alerts - #209

Open
nullStack65 wants to merge 1 commit into
release/native-0.1.10from
fix/cac-916-settled-pr-refresh-dedupe-alert
Open

nullStack65 wants to merge 1 commit into
release/native-0.1.10from
fix/cac-916-settled-pr-refresh-dedupe-alert

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Addresses nullStack65/closura-agent-config#916:

Changes

  1. PullRequestSyncReactor.ts: Keep sweeping open/unsynced pull request links (snapshot === null || snapshot.state === "open") on settled threads on SLOW_SYNC_INTERVAL_MS (15m) until they reach a terminal state (merged or closed), so PRs merged/closed after settle do not stay stuck as "open". Terminal (closed/merged) links on settled threads are not swept.
  2. ThreadEventAlerts.ts:
    • Dedupe completed-with-open-PRs lane-ended alerts by the sorted open-PR set (open-prs:<sorted-keys>) instead of shell.latestRunId, preventing repeated alerts across completed runs of the same lane.
    • Include "lane-ended" in KINDS_BY_TRIGGER.settled so settling a thread clears/re-evaluates lane-ended state.
  3. Tests: Updated PullRequestSyncReactor.test.ts (62/62 passing) and added unit tests in ThreadEventAlerts.test.ts (48/48 passing) covering settled open-link slow-cadence refresh, open-PR-set deduplication across runs, and settle clearing.

Closes nullStack65/closura-agent-config#916

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant