fix stale spec→cfg reference

This commit is contained in:
Levi Neely 2026-04-25 12:34:52 +02:00
parent a6cc5e1772
commit ecc0e3ee07
1 changed files with 3 additions and 3 deletions

View File

@ -32,11 +32,11 @@
;; ;;
;; State changes while the agent is running: ;; State changes while the agent is running:
;; ;;
;; Writes to spec (backend=, model=, agent=) are rejected by the ;; Writes to cfg (backend=, model=, agent=) are rejected by the
;; server when the agent is not idle. Commands sent via ctl (e.g. ;; server when the agent is not idle. Commands sent via ctl (e.g.
;; compact, clear) are dispatched asynchronously and cannot return ;; compact, clear) are dispatched asynchronously and cannot return
;; errors; if the agent is running, the command is silently rejected. ;; errors; if the agent is running, the command is silently rejected.
;; Read spec and check state= to confirm a change took effect. ;; Read cfg and check state= to confirm a change took effect.
;;; Code: ;;; Code:
@ -256,7 +256,7 @@ Returns the new session ID."
(defun ellie--state () (defun ellie--state ()
"Return the current session state string, or \"unknown\" on any error." "Return the current session state string, or \"unknown\" on any error."
(condition-case nil (condition-case nil
(let ((spec (ellie--fread (ellie--session-file "spec")))) (let ((spec (ellie--fread (ellie--session-file "cfg"))))
(if (and spec (string-match "^state=\\(.*\\)$" spec)) (if (and spec (string-match "^state=\\(.*\\)$" spec))
(string-trim (match-string 1 spec)) (string-trim (match-string 1 spec))
"unknown")) "unknown"))