Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(server): a fork that stops its own PR watch keeps it as its ended watch #21309

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/21309/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Main 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. juliusmarminge added labelsmacroscope-review

    2. Approvability

      Verdict: Approved at c9861b0

      Macroscope'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).
    3. 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 main measurement shown below.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB+7 B (+0.1%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB+7 B (+0.6%)2.0 KiB✅
      CodexLive turn WebSocket decoded20.9 KiB20.9 KiB0 B (0.0%)29.3 KiB✅
      CodexLive turn messages220 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB+24 B (+0.5%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB+24 B (+2.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.2 KiB21.2 KiB+41 B (+0.2%)29.3 KiB✅
      ClaudeLive turn messages12+1 (+100.0%)8✅

      Baseline: d7c7115 · PR result: c9861b0 · Source CI: failure

      Scenario 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.

    4. Review in Change Stack →

      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.ts
      The 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: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title is concise, specific, and accurately describes the test change for a fork that stops its own pull request watch.
      Description checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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
      Comment `@coderabbitai help` to get the list of available commands.
    5. juliusmarminge merged thise57e629

    6. juliusmarminge closed this

Sign in to join this conversation.