Commit 2b9af8f
perf(server): port #13689 to V2 — post-turn PR discovery refreshes the repository identity
Main raised RepositoryIdentityResolver's positive cache TTL from 1 to 15
minutes so the per-minute sweeps stop spawning git for every project,
and made PR discovery after a turn resolve with refresh: true (a turn
can add the remote the pull request lives on). The TTL change and the
publish-repository refresh in ws.ts merged cleanly and apply to V2.
V2's ThreadPullRequestService resolves the identity itself, and did so
without refresh, so after the merge it could miss a newly added remote
for up to 15 minutes instead of one. Discovery requests that already
carry refresh: true (run finished, checkpoint captured, unsettled) now
pass it to the resolver.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 437b334 commit 2b9af8f
2 files changed
Lines changed: 34 additions & 2 deletions
File tree
- apps/server/src/orchestration-v2
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
71 | 96 | | |
72 | 97 | | |
73 | 98 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
176 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
| |||
0 commit comments