Commit 6525900
Dashboard: converge fast after IPFS announce fix (win.19)
After pressing [F] the dashboard would continue polling every 10
minutes, so even after restarting IPFS Desktop the hint would stick
around and the keepalive would keep sending relay addresses until the
next poll. User couldn't tell whether the fix landed.
Changes:
- Add _ipfsAnnounceFixApplied flag, set when [F] completes successfully
- While the flag is set and Kubo still isn't announcing directly, poll
checkIpfsAnnounce() every 15 seconds instead of every 10 minutes
- applyIpfsAnnounceFix() zeros _lastIpfsAnnounceCheck so the very next
render pass runs a re-check immediately (no 15s wait before first poll)
- checkIpfsAnnounce() clears the fix-applied flag and hint as soon as
it sees the direct address appear in /id, falling back to the normal
10-minute poll interval
- While waiting for restart, the hint text is now "Waiting for IPFS
Desktop restart to pick up new announce list..." so it's clear what
needs to happen
- Replaced remaining em-dashes in user-visible strings with ASCII
hyphens to prevent mojibake on CP437 consoles
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7e10ddc commit 6525900
3 files changed
Lines changed: 31 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
250 | 259 | | |
251 | 260 | | |
252 | 261 | | |
| |||
700 | 709 | | |
701 | 710 | | |
702 | 711 | | |
703 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
704 | 718 | | |
705 | | - | |
| 719 | + | |
706 | 720 | | |
707 | 721 | | |
708 | 722 | | |
| |||
766 | 780 | | |
767 | 781 | | |
768 | 782 | | |
769 | | - | |
770 | | - | |
| 783 | + | |
| 784 | + | |
771 | 785 | | |
772 | | - | |
773 | | - | |
774 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
775 | 795 | | |
776 | 796 | | |
777 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments