From 392d2416ec00e3d3d63c638787b6a91eb5dff7e8 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Mon, 22 Jun 2026 12:21:31 -0500 Subject: [PATCH] fix(reliability): replace undefined session_exists with session_get check --- chat.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.el b/chat.el index 6d809e2..c626390 100644 --- a/chat.el +++ b/chat.el @@ -649,7 +649,7 @@ fn handle_chat_agentic(body: String) -> String { let session_valid: Bool = if str_eq(req_session, "") { true } else { - session_exists(req_session) + !str_contains(session_get(req_session), "\"error\"") } if !session_valid { return "{\"error\":\"session not found\",\"session_id\":\"" + req_session + "\",\"reply\":\"\"}"