2 Commits

Author SHA1 Message Date
Maciej Lisiewski
40158fa616 fix: address pr comments pt1 2026-10-15 22:25:22 +02:00
Maciej Lisiewski
f14db1b4fe fix(agent): context-length cache updates are serialized across agents
save_context_length and _invalidate_cached_context_length loaded the yaml,
mutated it and rewrote it unlocked; a concurrent agent's save in between was
dropped (or an invalidated, too-large length resurrected), forcing re-probes or
context overflow. Both now run under a cross-process file lock (agent/model_metadata_cache.py).
2026-10-15 22:12:28 +02:00