Skip to content

fix(chat): stop leftover * and _ at the end of finished replies - #487

Open
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:fix/streamdown-trailing-emphasis
Open

fix(chat): stop leftover * and _ at the end of finished replies#487
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:fix/streamdown-trailing-emphasis

Conversation

@Adam-Dalloul

Copy link
Copy Markdown
Contributor

Finished assistant replies were showing a stray * or _ at the end. Not the model. Streamdown defaults to mode="streaming", so remend ran on every completed bubble. remend 1.2.0 then appends a closer after a glob like `foo/*` or `_meta` / _blank.

Finished markdown now stays mode="static". Only the live streaming turn still remends. Reasoning and file previews are static too.

Any agent that writes those shapes could hit this. Grok just does it a lot.

Independent of the other open PRs. One concern.

Streamdown defaults to mode=streaming, so remend ran on every completed
assistant bubble. remend 1.2.0 then appended a closer after globs like
`foo/*` and `_meta` / `_blank`. Default finished markdown to static and
only remend the live streaming turn.
@Adam-Dalloul
Adam-Dalloul force-pushed the fix/streamdown-trailing-emphasis branch from f8e6a22 to 316128b Compare August 16, 2026 17:03
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