Harden Exact reconcile and soften post-Generate warm.

Overwrite foreign steps/cfg in sparse patches when the user did not ask for params, and skip the cold-load path when Ollama already has the chat model resident.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 06:58:53 +03:00
co-authored by Cursor
parent 5f33130381
commit 7aadb40a11
7 changed files with 117 additions and 35 deletions
+10 -4
View File
@@ -81,10 +81,16 @@ export function exactKeysToForce(live, defaults, {
if (want == null) {
continue;
}
const eps = key === 'steps' ? 0.5 : 0.051;
// Patch asked for a non-Exact number — honor it.
if (patch && patch[key] != null && !numClose(patch[key], want, eps)) {
continue;
const eps = key === 'steps' ? 0.5 : 0.051;
// Honor intentional non-Exact patch only when the user asked for params.
// Sparse LLM echoes of live 20/7 must not block Exact (turbo/raw label -> numbers).
if (
userParamIntent
&& patch
&& patch[key] != null
&& !numClose(patch[key], want, eps)
) {
continue;
}
if (userParamIntent && sessionExact && sessionExact[key] != null) {
continue;