Commit 3fb89d8
committed
Make /compact non-blocking with spinner feedback
Run session compaction asynchronously in a background goroutine instead
of blocking the TUI render thread. Show the working spinner and pending
response indicator while the LLM generates the summary, and clear them
when the compaction completes. The compaction context is cancellable via
Esc, matching the behavior of regular agent streams.
Fixes #1678
Assisted-By: cagent1 parent 1a8e453 commit 3fb89d8
3 files changed
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
722 | 726 | | |
723 | | - | |
724 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
725 | 731 | | |
726 | | - | |
| 732 | + | |
727 | 733 | | |
728 | | - | |
| 734 | + | |
729 | 735 | | |
730 | 736 | | |
731 | 737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
1159 | 1159 | | |
1160 | | - | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1161 | 1163 | | |
1162 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1163 | 1170 | | |
1164 | 1171 | | |
1165 | 1172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
0 commit comments