Ship Assistent 0.10.2: lean context packing with quality-first vision flags.

Cut always-on system tokens (slim core, inventory, identity shelves, hops) and fix has_vision_image vs images_in_request so look_at gates correctly; enrich rich LoRAs and expose system_chars in debug.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-22 02:26:41 +03:00
co-authored by Cursor
parent f7f9f6e78d
commit 26e4ef76fb
12 changed files with 622 additions and 171 deletions
+4 -2
View File
@@ -243,7 +243,7 @@ public partial class SwarmAssistentExtension
string embedModel = raw?["embed_model"]?.ToString() ?? Config.LoadSettings()["embed_model"]?.ToString();
try
{
(string reply, JObject parsed, JArray civitai) = await RunChatWithHops(
(string reply, JObject parsed, JArray civitai, int systemChars) = await RunChatWithHops(
session, root, modelName, packName, includeBase, contextJson, userMessages, personaId: persona, skillIds: skills, embedModel: embedModel);
return new JObject
{
@@ -254,6 +254,7 @@ public partial class SwarmAssistentExtension
["persona"] = persona,
["raw"] = parsed,
["civitai_results"] = civitai,
["system_chars"] = systemChars,
};
}
catch (Exception ex)
@@ -305,7 +306,7 @@ public partial class SwarmAssistentExtension
}, API.WebsocketTimeout);
}
}
(string reply, JObject parsed, JArray civitai) = await RunChatWithHops(
(string reply, JObject parsed, JArray civitai, int systemChars) = await RunChatWithHops(
session, root, modelName, packName, includeBase, contextJson, userMessages, OnDelta, OnHopStart, persona, skills, embedModel);
await ws.SendJson(new JObject
{
@@ -317,6 +318,7 @@ public partial class SwarmAssistentExtension
["persona"] = persona,
["raw"] = parsed,
["civitai_results"] = civitai,
["system_chars"] = systemChars,
}, API.WebsocketTimeout);
}
catch (Exception ex)