fix(server): PR watch wakes say the PR stays linked and watched #24781
main fromrefs/pull/24781/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubWhen 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
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
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 0 B (0.0%) 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 0 B (0.0%) 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 −7 B (−0.1%) 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 −7 B (−0.6%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅ Claude Live turn messages 2 2 0 (0.0%) 8 ✅ Baseline:
8d3261e· PR result:431e635· Source CI: successScenario 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-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: fix/pr-wake-message-rules
- File: .coderabbit.config.ts
- Commit: 431e635
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
c4c29fc3-fc4a-4961-a3c8-15fce4c45d14
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
Priority:Layer / File(s) Summary Update non-exhausted watch message
apps/server/src/orchestration-v2/pullRequestWatch.tsThe 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. LowEstimated 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:XSSuggested reviewers:
juliusmarminge
Merge Risk:
Minimal · up to431e6-
No actionable merge-blocking risk was identified.
Pre-merge checks:
3 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Description check 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 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 checks: 3 passed-
Check name Status Explanation Title check 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 … 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: 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
-
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
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).