Repository navigation
Commit 762ab9d
committed
fix(reranker): narrow initFailed guard to corrupt-cache errors only
Transient load failures (network, timeout, etc.) now reset initPromise=null
so the next call can retry. Only Protobuf/parse/corrupt errors are marked
permanently failed — those require a cache re-download in a new session.
Long-lived MCP servers can now recover from transient load failures
without requiring a restart.
Addresses grey-area identified during PR #95 Greptile audit.1 parent 37b43cd commit 762ab9d
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
| 104 | + | |
| 105 | + | |
97 | 106 | | |
98 | | - | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
0 commit comments