branch: externals/ellama
commit b62892085e1f0e03f69a786ad37e7e323d279fc0
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>
Fix session ID display in ellama.el
Updated the `ellama-session-line` function to correctly display the session
ID
by checking if `ellama--current-session` is available before using it. This
ensures that the session ID is retrieved properly in chat buffer.
---
ellama.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ellama.el b/ellama.el
index b1c3582e07..ae2e597bcf 100644
--- a/ellama.el
+++ b/ellama.el
@@ -718,7 +718,10 @@ This filter contains only subset of markdown syntax to be
good enough."
(defun ellama-session-line ()
"Return current session id line."
- (propertize (format " ellama session: %s" ellama--current-session-id)
+ (propertize (format " ellama session: %s"
+ (if ellama--current-session
+ (ellama-session-id ellama--current-session)
+ ellama--current-session-id))
'face 'ellama-face))
(defun ellama-session-show-header-line ()