Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): PR watch wakes say the PR stays linked and watched #24781

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/24781/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

When a PR watch wakes an agent, the wake message does not say the PR is still linked and watched. Today only the always-on system text says "do not re-link, re-watch, or list PRs". In an eval, GPT-6.1 Sol re-linked or re-watched PRs on wakes.

The wake message now says, in one sentence, that the PR stays linked and watched, so the agent must not link, watch, or list it again. This puts the rule where the agent needs it. A follow-up can then remove the wake line from the injected system text.

Made by Claude Opus 5.5 in Claude Code, via T3 Code delegate_task.

🤖 Generated with Claude Code

    1. Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — This changes the default server-generated instructions delivered when a watched PR wakes the agent, including guidance about linked and watched state. The change is small and isolated, but product-default changes require human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    2. 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 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)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−7 B (−0.1%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB−7 B (−0.6%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.2 KiB21.2 KiB0 B (0.0%)29.3 KiB✅
      ClaudeLive turn messages220 (0.0%)8✅

      Baseline: 8d3261e · PR result: 431e635 · Source CI: success

      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.

    3. Review in Change Stack →

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 15702a9f28620588c0b71811d9d725e98789fdd4 and 431e635a2c116ea7c88c6a10cdaaa09195d4f474.

      Files selected for processing: 1
      • apps/server/src/orchestration-v2/pullRequestWatch.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 non-exhausted pull-request watch message now says that the PR remains linked and watched. It tells the agent not to link, watch, or list the PR again, and retains the end-turn and unwatch instructions.

      Changes: PR watch message

      Layer / File(s)Summary
      Update non-exhausted watch message
      apps/server/src/orchestration-v2/pullRequestWatch.ts
      The message now says that the PR remains linked and watched, and instructs the agent not to link, watch, or list it again. It retains the end-turn and unwatch instructions.
      Priority: Low

      Estimated code review effort: 1 (Trivial) | ~2 minutes

      Change: Bug fix

      Possibly related PRs

      • pingdotgg/t3code#23933: Updates agent instructions for linking and listing pull requests, which share the agent-instruction behavior addressed here.

      Suggested labels: size:XS

      Suggested reviewers: juliusmarminge

      Merge Risk: Minimal · up to 431e6

      No actionable merge-blocking risk was identified.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description states the problem: wake messages do not tell the agent the PR is still linked and watched, and an eval showed the agent re-linking or re-watching PRs. It states the change: one senten…Restructure the description to follow the repository template with these sections: Problem, Change, Scope and approval, and Verification. Under Scope and approval, link the triaged bug issue or the maintainer-approved discussion, or explain…
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Title checkPassedThe title "fix(server): PR watch wakes say the PR stays linked and watched" matches the single change in the summary. The change edits the non-exhausted pull-request watch message so it states the PR …
      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: Title check

      Explanation

      The title "fix(server): PR watch wakes say the PR stays linked and watched" matches the single change in the summary. The change edits the non-exhausted pull-request watch message so it states the PR remains linked and watched and must not be linked, watched, or listed again. The title uses a conventional commit prefix and names the component and the behavior. It is specific and concise.

      Full details: Description check

      Explanation

      The description states the problem: wake messages do not tell the agent the PR is still linked and watched, and an eval showed the agent re-linking or re-watching PRs. It states the change: one sentence in the wake message saying the PR stays linked and watched. It does not follow the repository template. It has no Problem, Change, Scope and approval, or Verification headings. It has no link to a triaged issue or maintainer approval, and it gives no verification steps beyond citing an eval with no details or results. The description also names the model used for the work, which the template asks for.

      Resolution

      Restructure the description to follow the repository template with these sections: Problem, Change, Scope and approval, and Verification. Under Scope and approval, link the triaged bug issue or the maintainer-approved discussion, or explain why this small obvious fix qualifies without one. Under Verification, describe the focused tests or manual checks run and their observed results. Describe the eval that showed re-linking, including its setup and results, or state that this check was not run. Keep the model and harness note at the end, as the template asks.

      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.

Sign in to join this conversation.