fix(tui): Add local echo so user sees their own messages move up

This commit is contained in:
2026-04-19 18:09:21 -04:00
parent bafc473395
commit be2cbcd9ff
2 changed files with 6 additions and 2 deletions

View File

@@ -107,7 +107,9 @@
((or (eq ch #\Newline) (eq ch #\Return))
(let ((cmd (coerce *input-buffer* 'string)))
(setf (fill-pointer *input-buffer*) 0)
(when (> (length cmd) 0)
(when (> (length cmd) 0)
(enqueue-msg (concatenate 'string "> " cmd)) ; Local Echo
(let ((framed (opencortex:frame-message (format nil "~s" (list :TYPE :EVENT :PAYLOAD (list :SENSOR :chat-message :TEXT cmd))))))
(let ((framed (opencortex:frame-message (format nil "~s" (list :TYPE :EVENT :PAYLOAD (list :SENSOR :chat-message :TEXT cmd))))))
(format *stream* "~a" framed)
(finish-output *stream*)))