perf(server): PR watches spend ~90% fewer GitHub points by checking a 1-point fingerprint first (#16270)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Theo BrowneandClaude Opus 5.5 authored and GitHub committed 2026-10-05 17:46:52 -07:00
1 parent dcbaf05279
commit 758dc290e9
12 files changed
+715 -44

No files matched your search

+9 -9
View File
@@ -194,15 +194,15 @@ review is terminal. An open or unsynced link keeps it active.
Ask the agent to watch, monitor, or babysit a pull request and it calls `watch_pull_request`. While
the thread is active, the server checks the pull request every two minutes and wakes the agent when a
check fails, the required checks pass, someone else comments or reviews, or the branch starts to
conflict. Threads in a project that watch the same pull request share one check, and a pull request
with nothing in progress is checked again when something changes or every 10 minutes, which keeps
watching inside GitHub's rate limit. Comments from your own account do not wake it. Watching ends when the pull request merges or closes,
after 10 wakes in a row that bring only comments, after 8 failed reads in a row, or when you press
Stop on the thread. A rate limit only pauses watching. Settling or archiving a thread also ends all
its watches. Unsettle the thread before starting a new watch. Subagents cannot watch pull requests;
the thread that delegated to them does. To start or stop it yourself, use the row menu in the
**Linked pull requests** panel. In the thread details card, a watched pull request shows an eye;
click it to stop watching.
conflict. Threads in a project that watch the same pull request share one check. On GitHub, a check
first asks whether anything changed and reads the pull request only when it did, which keeps
watching inside GitHub's rate limit. Comments from your own account do not wake it. Watching ends
when the pull request merges or closes, after 10 wakes in a row that bring only comments, after 8
failed reads in a row, or when you press Stop on the thread. A rate limit only pauses watching.
Settling or archiving a thread also ends all its watches. Unsettle the thread before starting a new
watch. Subagents cannot watch pull requests; the thread that delegated to them does. To start or stop
it yourself, use the row menu in the **Linked pull requests** panel. In the thread details card, a
watched pull request shows an eye; click it to stop watching.
A watched thread counts as working between wakes, so it stays in the **Working** section and does
not auto-settle. Agents stop watching when they hand the work back to you, and the thread then