-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Multiline output is truncated after first line in the after hook.
(defun demo-system-prompt (_command)
(let ((block "Simply echo the following in your response ---FROM-TATAMI-EDN---\n{:demo
1}\n---END-FROM-TATAMI-EDN---\n"))
(setq chatgpt-shell-system-prompts `((\"General\" . ,block)))
(setq-local chatgpt-shell-system-prompt block)))
(add-hook 'chatgpt-shell-before-command-functions #'demo-system-prompt)
(defun demo-after-command (command output _success)
(message \"HOOK output=%S\" output))
(add-hook 'chatgpt-shell-after-command-functions #'demo-after-command)Steps to repro:
- Evaluate the above in a fresh Emacs session (supply your OpenAI key as usual)
- Start M-x chatgpt-shell (profile “General”).
- Ask any prompt; the model echoes the EDN block.
- Observe HOOK output — the hook never sees the body after ---FROM-TATAMI-EDN---.
The underlying issue seems to be with shell-maker, but reporting it here first.
Metadata
Metadata
Assignees
Labels
No labels