Commit 367517e
authored
fix: force-refresh dev release data before triggering agent update (#56)
* fix: force-refresh dev release data before triggering agent update
Rolling dev releases replace the binary at the download URL on every
push to main. When the UI caches version/checksum data and a new build
lands before the user clicks Update, the agent downloads the new binary
but the checksum from the stale cache doesn't match — causing a silent
update failure loop.
Force-refresh dev release info server-side in triggerAgentUpdate so the
checksum always matches the binary currently at the download URL.
* fix: use const for non-reassigned downloadUrl
* fix: throw error when dev release checksum lookup fails
When the version has changed but the checksum can't be retrieved,
fail fast instead of silently proceeding with a known-stale checksum
that would cause the agent to hit a checksum mismatch on download.1 parent d41f4da commit 367517e
1 file changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
254 | 279 | | |
255 | 280 | | |
256 | 281 | | |
257 | 282 | | |
258 | 283 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
262 | 287 | | |
263 | 288 | | |
264 | 289 | | |
| |||
0 commit comments