This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Commit b99c446
committed
fix(sessions): re-check queue membership after cloud edit normalization
updateQueuedMessage awaited resolveCloudPrompt before writing to the store.
If the message drained during that await (a turn completed and sent it), the
store update became a no-op but the method still returned true, so the caller
treated the edit as saved and never fell back to sending it as a fresh
message -- losing the edit. Re-read fresh session state after the await and
return false if the target is no longer queued. Also read fresh state for the
edit-hold clear, since the pre-await snapshot may be stale.
Generated-By: PostHog Code
Task-Id: 5cf31c6c-1ba0-4137-88c1-3a369f3acf361 parent 15b9e96 commit b99c446
2 files changed
Lines changed: 80 additions & 1 deletion
File tree
- packages
- core/src/sessions
- ui/src/features/sessions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2728 | 2728 | | |
2729 | 2729 | | |
2730 | 2730 | | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
2731 | 2738 | | |
2732 | 2739 | | |
2733 | 2740 | | |
| |||
2739 | 2746 | | |
2740 | 2747 | | |
2741 | 2748 | | |
2742 | | - | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
2743 | 2753 | | |
2744 | 2754 | | |
2745 | 2755 | | |
| |||
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5223 | 5223 | | |
5224 | 5224 | | |
5225 | 5225 | | |
| 5226 | + | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
| 5244 | + | |
| 5245 | + | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
| 5255 | + | |
| 5256 | + | |
| 5257 | + | |
| 5258 | + | |
| 5259 | + | |
| 5260 | + | |
| 5261 | + | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
| 5268 | + | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
5226 | 5295 | | |
5227 | 5296 | | |
5228 | 5297 | | |
| |||
0 commit comments