Repository navigation
Commit 33cb900
fix(server): local-only status refresh no longer wipes remote status
The branch menu's local-only refresh wrote a `value: null` remote entry when
no remote was cached or the branch changed. Readers take that as "read and
found no PR", so it overwrote a PR a concurrent first poll had just cached and
made the turn-end PR refresh skip its read, including after a branch switch.
The local-only path now refreshes local status and returns the cached parts.
A branch change already drops the old branch's remote and publishes
`remoteUpdated: null` from the local update, and every remote read invalidates
GitManager's remote cache first, so the write, the invalidate and the remote
write lock it waited behind are gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 0782f95 commit 33cb900
2 files changed
Lines changed: 9 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
383 | | - | |
| 384 | + | |
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| 390 | + | |
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
| |||
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
| 560 | + | |
558 | 561 | | |
559 | 562 | | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
564 | | - | |
| 567 | + | |
565 | 568 | | |
566 | 569 | | |
567 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
| 540 | + | |
542 | 541 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
558 | 545 | | |
559 | 546 | | |
560 | 547 | | |
| |||
0 commit comments