Commit 7f8c361
Fix UI lag during taskspace deletion by making operations async
- Made deleteTaskspace function async to prevent blocking main thread
- Added executeProcessAsync() that runs git commands in detached tasks
- Now waitUntilExit() runs off main thread completely
- Wrapped git operations (worktree removal, branch deletion) in background task
- Updated UI calls to use MainActor for thread-safe state updates
- Prevents app hanging during delete operations
- Replaced computed branchInfo property with cached state
- Load branch info asynchronously on dialog appear
- Prevents multiple git commands on every UI refresh
Co-authored-by: Claude <claude@anthropic.com>1 parent 4d9acf5 commit 7f8c361
3 files changed
Lines changed: 77 additions & 30 deletions
File tree
- .vscode
- symposium/macos-app/Sources/Symposium
- Models
- Views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
143 | 164 | | |
144 | 165 | | |
145 | 166 | | |
| |||
402 | 423 | | |
403 | 424 | | |
404 | 425 | | |
405 | | - | |
| 426 | + | |
406 | 427 | | |
407 | 428 | | |
408 | 429 | | |
409 | 430 | | |
410 | | - | |
411 | | - | |
| 431 | + | |
| 432 | + | |
412 | 433 | | |
413 | 434 | | |
414 | 435 | | |
| |||
422 | 443 | | |
423 | 444 | | |
424 | 445 | | |
425 | | - | |
| 446 | + | |
426 | 447 | | |
427 | 448 | | |
428 | 449 | | |
| |||
444 | 465 | | |
445 | 466 | | |
446 | 467 | | |
447 | | - | |
| 468 | + | |
448 | 469 | | |
449 | 470 | | |
450 | 471 | | |
| |||
459 | 480 | | |
460 | 481 | | |
461 | 482 | | |
462 | | - | |
| 483 | + | |
463 | 484 | | |
464 | 485 | | |
465 | 486 | | |
| |||
Lines changed: 28 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
639 | 645 | | |
640 | | - | |
641 | 646 | | |
642 | 647 | | |
643 | 648 | | |
| |||
672 | 677 | | |
673 | 678 | | |
674 | 679 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
| 680 | + | |
683 | 681 | | |
684 | 682 | | |
685 | 683 | | |
| |||
689 | 687 | | |
690 | 688 | | |
691 | 689 | | |
692 | | - | |
| 690 | + | |
693 | 691 | | |
694 | 692 | | |
695 | | - | |
| 693 | + | |
696 | 694 | | |
697 | 695 | | |
698 | 696 | | |
699 | | - | |
| 697 | + | |
700 | 698 | | |
701 | | - | |
| 699 | + | |
702 | 700 | | |
703 | 701 | | |
704 | 702 | | |
705 | | - | |
| 703 | + | |
706 | 704 | | |
707 | 705 | | |
708 | 706 | | |
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
720 | 718 | | |
721 | 719 | | |
722 | 720 | | |
723 | | - | |
| 721 | + | |
724 | 722 | | |
725 | 723 | | |
726 | 724 | | |
| |||
761 | 759 | | |
762 | 760 | | |
763 | 761 | | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
768 | 772 | | |
769 | 773 | | |
770 | 774 | | |
| |||
0 commit comments