Repository navigation
Commit 143af9f
fix(server): keep serving a project's last repository identity while it refreshes
Once a project's repository identity passed its one-minute cache TTL,
peek and getAvailable returned null until the refresh finished, and
returned null again if the refresh failed. Clients with no identity on
record then split the project out of its repository group.
ProjectEnrichmentService now records the last successfully resolved
identity per root in a map capped at cacheCapacity. peek falls back to
it when the cache has no fresh success. A new resolution replaces it,
a resolved null clears it, and invalidate drops it.
repositoryIdentityResolved still means freshly resolved, so the
fallback is never sent as a resolved root.
AI-assisted; verified with the tests and tools listed above.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 76d3aa8 commit 143af9f
1 file changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
94 | 109 | | |
95 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
96 | 118 | | |
97 | 119 | | |
98 | 120 | | |
| |||
238 | 260 | | |
239 | 261 | | |
240 | 262 | | |
| 263 | + | |
241 | 264 | | |
242 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
243 | 268 | | |
244 | | - | |
| 269 | + | |
245 | 270 | | |
246 | 271 | | |
247 | 272 | | |
| |||
287 | 312 | | |
288 | 313 | | |
289 | 314 | | |
| 315 | + | |
290 | 316 | | |
291 | 317 | | |
292 | 318 | | |
| |||
0 commit comments