Ship Assistent 0.10.18: settings as a peer tab, stream/VRAM chat fixes.
Move settings beside Chat/Cards; stop fence ramble, sticky scroll, horny echo filter, and force-warm after Generate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1003,12 +1003,24 @@ public partial class SwarmAssistentExtension
|
||||
patch["_persona_written"] = target;
|
||||
}
|
||||
}
|
||||
// Control values from model patch (Exact).
|
||||
// Control values from model patch (Exact). Ignore default-echo inside Generate patches.
|
||||
if (patch["controls"] is JObject ctrlVals)
|
||||
{
|
||||
string ctrlPid = AssistentConfig.SafeId(patch["persona"]?.ToString()) ?? personaId;
|
||||
Config.SaveControlValues(ctrlPid, ctrlVals);
|
||||
patch["_controls_saved"] = true;
|
||||
JObject schema = Config.LoadControlsSchema(ctrlPid);
|
||||
JObject current = Config.LoadControlValues(ctrlPid);
|
||||
JObject filtered = AssistentConfig.FilterEchoedControlDefaults(
|
||||
schema, current, ctrlVals, AssistentConfig.PatchLooksLikeGeneration(patch));
|
||||
if (filtered.Count > 0)
|
||||
{
|
||||
Config.SaveControlValues(ctrlPid, filtered);
|
||||
patch["controls"] = filtered;
|
||||
patch["_controls_saved"] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
patch.Remove("controls");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user