cli: stream skill/slash-command runs (fix non-streaming freeze path)
ober
f0f10c5fd5e99fb4de9add2a0ac3ce7fbcbf60ea
--- a/src/jcode/ui/cli.ss +++ b/src/jcode/ui/cli.ss @@ -859,7 +859,13 @@ EXAMPLES: (let ((prompt (if (string=? skill-args "") body (string-append body "\n\nArguments: " skill-args)))) - (agent-run session-id prompt))) + ;; Route skill/slash-command runs through the same path as a + ;; typed prompt: streaming tokens, tool indicator, ESC-interrupt + ;; and terminal save/restore. A bare (agent-run ...) here left + ;; current-stream-cb unset, so skills ran fully NON-streaming — + ;; one blocking read for the whole response (the 251s freeze in + ;; the trace lived on this path). + (handle-user-input prompt session-id))) (else (printf "Unknown command: /~a~n" cmd))))))))