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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user