test(server): a fork that stops its own PR watch keeps it as its ended watch #21309
main fromrefs/pull/21309/head·merged by juliusmarminge View on GitHubMain CI fails Test Server 4 (run) on ThreadFork.execution.test.ts > a persisted fork leaves PR watching with its parent until explicitly opted in: the fork's pull request has one more field than expected. It has failed on every main run since the burst.
The test comes from #16623 (forks no longer inherit pull request watches). #21155 (watching a pull request again no longer repeats news) added endedWatch to the linked pull request. When watching stops, it keeps the last watch there so a later watch resumes from it. The extra field is endedWatch.
The field is legitimate, and nothing leaks from the parent. The fork gets endedWatch only after it opts in to its own watch and then opts out, and it holds that watch, not the parent's. The forked link still matches the original expectation with no watch or endedWatch. The expectation after the opt-out now asserts endedWatch equals the fork's own watch. The file's 7 tests pass.
Claude Opus 5.5 via Claude Code.
🤖 Generated with Claude Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful
mainmeasurement shown below.Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 5.0 KiB +7 B (+0.1%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB +7 B (+0.6%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅ Codex Live turn messages 2 2 0 (0.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB +24 B (+0.5%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB +24 B (+2.0%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB +41 B (+0.2%) 29.3 KiB ✅ Claude Live turn messages 1 2 +1 (+100.0%) 8 ✅ Baseline:
d7c7115· PR result:c9861b0· Source CI: failureScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Team
- Run ID:
b99eb813-5e3e-4333-acd5-02e3f3209598
📥 Commits
-
Reviewing files that changed from the base of the PR and between e2cc34f1e47a9a9f0798080ecbad44a196b2923c and c9861b04d99da73136368e6815b2820f16b7d508.
📒 Files selected for processing: 1
-
apps/server/src/orchestration-v2/ThreadFork.execution.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
📝 Walkthrough
-
The pull-request watch test now checks that opting out of a fork’s watch records that watch in
endedWatch. It also checks that the source thread remains unchanged.Changes: Fork watch behavior
Layer / File(s) Summary Fork watch opt-out assertion
apps/server/src/orchestration-v2/ThreadFork.execution.test.tsThe test expects the stopped pull-request link to retain the fork’s watch in endedWatch. It continues to check that the source thread is unchanged.Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Suggested reviewers:
jakeleventhal
Merge Risk: ⚪ Minimal · up to
c9861-
The test verifies that opting out records the fork’s own pull-request watch as endedWatch without changing the parent. No actionable merge-blocking risk remains.
Pre-merge checks:
4-
Check name Status Explanation Title check The title is concise, specific, and accurately describes the test change for a fork that stops its own pull request watch. Description check The description explains the failing behavior, the expected behavior, the related changes, and the verification result. It references the relevant issues and states that all seven tests pass. It does … Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description explains the failing behavior, the expected behavior, the related changes, and the verification result. It references the relevant issues and states that all seven tests pass. It does not use the template headings or explicitly describe approval scope, but the focused fix is sufficiently documented.
-
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
juliusmarminge merged thise57e629
juliusmarminge closed this
Sign in to join this conversation.
Approvability#
Verdict: Approved at
c9861b0Macroscope's review found this PR approvable — The PR is limited to a small server-test assertion update in an ignored path, with no production runtime, product-default, schema, deployment, or static-analysis impact.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).