Commit a31a2e0
authored
🤖 refactor: use message queue for compact continue messages (#650)
## Stack
1. #685
1. #683
1. #670
1. #650 ⬅ This PR (base)
## Problem
Compact continue messages were handled by a frontend hook that watched
workspace states and manually sent continue messages after compaction.
This was complex, had potential race conditions, and poor separation of
concerns.
Relates to #651.
## Solution
Use the existing message queue system:
- Backend queues continue message when compaction starts
- Queue auto-sends when stream ends (existing behavior)
- Clear queue on error paths
**Benefits:** Simpler (-134 lines), more reliable, better UX (continue
message visible in queue).
_Generated with `mux`_1 parent 2c700b8 commit a31a2e0
File tree
10 files changed
+14
-149
lines changed- src
- browser
- hooks
- stores
- common
- constants
- types
- desktop
- node/services
10 files changed
+14
-149
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 675 | | |
682 | 676 | | |
683 | 677 | | |
| |||
697 | 691 | | |
698 | 692 | | |
699 | 693 | | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
| 694 | + | |
704 | 695 | | |
705 | 696 | | |
706 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 123 | | |
133 | 124 | | |
134 | 125 | | |
| |||
158 | 149 | | |
159 | 150 | | |
160 | 151 | | |
161 | | - | |
162 | 152 | | |
163 | 153 | | |
164 | 154 | | |
| |||
177 | 167 | | |
178 | 168 | | |
179 | 169 | | |
180 | | - | |
181 | 170 | | |
182 | 171 | | |
183 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | | - | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| |||
0 commit comments