fix(act): Ensure tool errors are reported back to the user and fix TUI echo
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
This commit is contained in:
@@ -121,7 +121,9 @@ The OpenCortex TUI Client is a standalone Common Lisp application built on **Cro
|
|||||||
(let ((cmd (coerce *input-buffer* 'string)))
|
(let ((cmd (coerce *input-buffer* 'string)))
|
||||||
(setf (fill-pointer *input-buffer*) 0)
|
(setf (fill-pointer *input-buffer*) 0)
|
||||||
(when (> (length cmd) 0)
|
(when (> (length cmd) 0)
|
||||||
|
;; Local Echo
|
||||||
(enqueue-msg (concatenate 'string "> " cmd))
|
(enqueue-msg (concatenate 'string "> " cmd))
|
||||||
|
;; Send to Brain
|
||||||
(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)
|
(format *stream* "~a" framed)
|
||||||
(finish-output *stream*)))
|
(finish-output *stream*)))
|
||||||
|
|||||||
@@ -108,7 +108,9 @@
|
|||||||
(let ((cmd (coerce *input-buffer* 'string)))
|
(let ((cmd (coerce *input-buffer* 'string)))
|
||||||
(setf (fill-pointer *input-buffer*) 0)
|
(setf (fill-pointer *input-buffer*) 0)
|
||||||
(when (> (length cmd) 0)
|
(when (> (length cmd) 0)
|
||||||
|
;; Local Echo
|
||||||
(enqueue-msg (concatenate 'string "> " cmd))
|
(enqueue-msg (concatenate 'string "> " cmd))
|
||||||
|
;; Send to Brain
|
||||||
(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)
|
(format *stream* "~a" framed)
|
||||||
(finish-output *stream*)))
|
(finish-output *stream*)))
|
||||||
|
|||||||
Reference in New Issue
Block a user