Ship Assistent 0.15.2: apply closed generate patches immediately, recover stalled streams, and skip repeat greetings when a chat already has replies.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 09:28:04 +03:00
co-authored by Cursor
parent 4b36850e2b
commit e53f483a00
19 changed files with 790 additions and 287 deletions
+9
View File
@@ -227,6 +227,15 @@ public partial class SwarmAssistentExtension
JObject chunk = JObject.Parse(line);
last = chunk;
string delta = chunk["message"]?["content"]?.ToString() ?? "";
// thinking-only chunks are keep-alives; do not stall, still wait for content/done.
if (string.IsNullOrEmpty(delta))
{
if (chunk["done"]?.Value<bool>() == true)
{
break;
}
continue;
}
if (!string.IsNullOrEmpty(delta))
{
full.Append(delta);