Skip to content

Fix transcript section heading glued to interrupted agent message#664

Open
liaowang11 wants to merge 1 commit into
xenodium:mainfrom
liaowang11:fix-transcript-heading-separator
Open

Fix transcript section heading glued to interrupted agent message#664
liaowang11 wants to merge 1 commit into
xenodium:mainfrom
liaowang11:fix-transcript-heading-separator

Conversation

@liaowang11

Copy link
Copy Markdown
Contributor

An interrupted agent_message_chunk leaves the transcript body without
a trailing newline, so the next prompt's heading lands on the same line
as the partial message, e.g.

Actually, I should## User (2026-06-20 19:45:42)

Append a blank-line separator at turn end whenever the last streamed
entry was an agent_message_chunk. Centralize this in a helper called on
both the success and failure (interrupt) paths of the session/prompt
request.

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • I've filed a feature request/discussion for a new feature.
  • I'm making visual changes, so I'm including screenshots so you can view and discuss.
  • I've added tests where applicable.
  • I've updated documentation where necessary.
  • I've run M-x checkdoc and M-x byte-compile-file.

An interrupted agent_message_chunk leaves the transcript body without
a trailing newline, so the next prompt's  heading lands on the
same line as the partial message, e.g.

    Actually, I should## User (2026-06-20 19:45:42)

Append a blank-line separator at turn end whenever the last streamed
entry was an agent_message_chunk. Centralize this in a helper called on
both the success and failure (interrupt) paths of the session/prompt
request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant