Commit 3b30d9a
committed
fix: register cancel flags for image/webpage/document compares, fix progress bar and cache invalidation
- Document, image, and webpage compare endpoints now register cancel
flags so the Stop button can interrupt them. After the core compare
returns, the result is discarded if cancelled (returns {cancelled:true}).
Refactored the cancel+progress registration into a CancellableRequest
struct to avoid clippy type_complexity.
- Folder compare progress bar no longer stalls near 50%: the walk emits
Discovered events per-side (~2x for similar trees), so the compare-phase
total now uses discovered_total/2 as the estimate with .max() self-
correction for asymmetric trees.
- folder_op_execute_bridge_response now invalidates folder_compare_cache
after mutating the filesystem, preventing stale reads if a subsequent
/folder/query runs before the GUI triggers a recompare.1 parent 725eb68 commit 3b30d9a
3 files changed
Lines changed: 115 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
| 311 | + | |
| 312 | + | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
325 | 336 | | |
326 | | - | |
| 337 | + | |
327 | 338 | | |
328 | 339 | | |
329 | 340 | | |
| |||
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
359 | | - | |
360 | | - | |
| 370 | + | |
| 371 | + | |
361 | 372 | | |
362 | 373 | | |
363 | 374 | | |
| |||
374 | 385 | | |
375 | 386 | | |
376 | 387 | | |
| 388 | + | |
| 389 | + | |
377 | 390 | | |
378 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
379 | 403 | | |
380 | 404 | | |
381 | 405 | | |
| |||
420 | 444 | | |
421 | 445 | | |
422 | 446 | | |
423 | | - | |
424 | | - | |
| 447 | + | |
| 448 | + | |
425 | 449 | | |
426 | | - | |
| 450 | + | |
427 | 451 | | |
428 | 452 | | |
429 | 453 | | |
| |||
434 | 458 | | |
435 | 459 | | |
436 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
437 | 472 | | |
438 | | - | |
| 473 | + | |
439 | 474 | | |
440 | 475 | | |
441 | 476 | | |
| |||
457 | 492 | | |
458 | 493 | | |
459 | 494 | | |
460 | | - | |
461 | | - | |
| 495 | + | |
| 496 | + | |
462 | 497 | | |
463 | 498 | | |
464 | 499 | | |
| |||
3869 | 3904 | | |
3870 | 3905 | | |
3871 | 3906 | | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
3872 | 3914 | | |
3873 | 3915 | | |
3874 | 3916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
518 | 573 | | |
519 | 574 | | |
520 | 575 | | |
| |||
2233 | 2288 | | |
2234 | 2289 | | |
2235 | 2290 | | |
2236 | | - | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
2237 | 2296 | | |
2238 | 2297 | | |
2239 | 2298 | | |
| |||
2243 | 2302 | | |
2244 | 2303 | | |
2245 | 2304 | | |
2246 | | - | |
| 2305 | + | |
2247 | 2306 | | |
2248 | 2307 | | |
2249 | 2308 | | |
| |||
Binary file not shown.
0 commit comments