fix delete och ollama

This commit is contained in:
larssand
2026-07-06 23:10:42 +02:00
parent 469b2f14b4
commit e9e0ab8a46
5 changed files with 169 additions and 11 deletions

View File

@@ -774,7 +774,15 @@ def monitor_loop(
cached = cached_status_with_error(status_cache_path, mcp)
if cached:
status = cached
status["llm_assessment"] = {"enabled": bool(effective_llm), "status": "cached" if last_llm_text else ("pending" if effective_llm else "disabled"), "generated_at": last_llm_at, "text": last_llm_text or ""}
status["llm_assessment"] = {
"enabled": bool(effective_llm),
"status": "cached" if last_llm_text else ("pending" if effective_llm else "disabled"),
"generated_at": last_llm_at,
"started_at": int(time.time()) if effective_llm and not last_llm_text else 0,
"model": effective_model or "",
"timeout_seconds": effective_llm_timeout if effective_llm else 0,
"text": last_llm_text or "",
}
if effective_llm:
if status_cache_path and isinstance(mcp, dict) and mcp.get("status") not in {"error", "refreshing"}:
StatusSnapshotStore(status_cache_path).save("last_good", status)