Commit 8f5cd5e
authored
🤖 Fix UI freeze when sending message in SSH workspaces (#450)
The UI froze for ~1s when sending messages in SSH workspaces because the
frontend awaited the entire IPC call, including remote temp directory
creation.
## Solution
Changed `ChatInput` to clear input/images immediately before the IPC
call instead of after it succeeds. This makes the UI responsive while
the backend handles SSH operations asynchronously.
On error, the previous state is restored so users can retry.
## Testing
Tested locally with SSH workspace - input clears immediately and chat
remains responsive during message send.
_Generated with `cmux`_1 parent 141f03b commit 8f5cd5e
1 file changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
531 | 534 | | |
532 | 535 | | |
533 | 536 | | |
| |||
583 | 586 | | |
584 | 587 | | |
585 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
586 | 598 | | |
587 | 599 | | |
588 | 600 | | |
| |||
596 | 608 | | |
597 | 609 | | |
598 | 610 | | |
599 | | - | |
| 611 | + | |
600 | 612 | | |
| 613 | + | |
601 | 614 | | |
602 | 615 | | |
603 | 616 | | |
604 | 617 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | 618 | | |
613 | 619 | | |
614 | 620 | | |
| |||
625 | 631 | | |
626 | 632 | | |
627 | 633 | | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
0 commit comments