Commit 2556edc
committed
fix(workspace): correct clone progress math and persist task dismissal
- parse_git_clone_progress computed phase progress in u8, so
percent.saturating_mul(80) clamped to 255 for any percent >= 4 and the
receiving phase reported 5-7% for the whole download; widen to u16
(with a 100 cap) before scaling, and cover the parser with unit tests
- split clone stderr chunks on both \r and \n before applying them:
newline-terminated lines (Cloning into/remote:) used to merge with the
next progress line into one multi-line detail string
- dismissing a finished task card now also removes it from the desktop
registry via clone_dismiss (new Tauri command + gateway git action,
write-gated in guard.go like clone_start/clone_cancel); previously the
dismissed-set lived only in page state, so a WebUI refresh resurrected
every historical card and terminal tasks leaked until app exit;
in-flight tasks refuse dismissal
- relax the WebUI clone poll from 250ms to 750ms: each tick crosses the
WS gateway into a desktop spawn_blocking round-trip, too chatty for
remote/mobile sessions (desktop stays at 250ms over local IPC)1 parent 7771b59 commit 2556edc
5 files changed
Lines changed: 138 additions & 23 deletions
File tree
- crates
- agent-gateway
- internal/protocol/pbws
- web/src/app
- agent-gui
- src-tauri/src
- commands/workspace
- src/pages/chat/workspace
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
| 1208 | + | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1233 | 1249 | | |
1234 | 1250 | | |
1235 | 1251 | | |
| |||
Lines changed: 106 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
379 | 397 | | |
380 | 398 | | |
381 | 399 | | |
| |||
457 | 475 | | |
458 | 476 | | |
459 | 477 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
472 | 485 | | |
473 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
474 | 497 | | |
475 | 498 | | |
476 | 499 | | |
| |||
525 | 548 | | |
526 | 549 | | |
527 | 550 | | |
| 551 | + | |
528 | 552 | | |
529 | 553 | | |
530 | | - | |
| 554 | + | |
531 | 555 | | |
532 | 556 | | |
533 | | - | |
| 557 | + | |
534 | 558 | | |
535 | 559 | | |
536 | | - | |
| 560 | + | |
537 | 561 | | |
538 | 562 | | |
539 | 563 | | |
| |||
3088 | 3112 | | |
3089 | 3113 | | |
3090 | 3114 | | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
3091 | 3120 | | |
3092 | 3121 | | |
3093 | 3122 | | |
| |||
3196 | 3225 | | |
3197 | 3226 | | |
3198 | 3227 | | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
3199 | 3237 | | |
3200 | 3238 | | |
3201 | 3239 | | |
| |||
3689 | 3727 | | |
3690 | 3728 | | |
3691 | 3729 | | |
3692 | | - | |
| 3730 | + | |
3693 | 3731 | | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
3694 | 3736 | | |
3695 | 3737 | | |
3696 | 3738 | | |
| |||
3796 | 3838 | | |
3797 | 3839 | | |
3798 | 3840 | | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
3799 | 3888 | | |
3800 | 3889 | | |
3801 | 3890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
| |||
0 commit comments