Skip to content

fix(ui): render spawn_subagent output as markdown#496

Merged
esengine merged 1 commit into
esengine:mainfrom
prantikmedhi:fix/subagent-toolcard-markdown
May 9, 2026
Merged

fix(ui): render spawn_subagent output as markdown#496
esengine merged 1 commit into
esengine:mainfrom
prantikmedhi:fix/subagent-toolcard-markdown

Conversation

@prantikmedhi

@prantikmedhi prantikmedhi commented May 9, 2026

Copy link
Copy Markdown

Fixes #491.

ToolCard currently prints the raw JSON string returned by spawn_subagent, so the UI shows literal "\n" plus markdown characters instead of the subagent’s formatted answer.

ToolCard now special-cases spawn_subagent:

  • JSON.parse(card.output)
  • if { success: true, output: string }, render output with the existing Markdown renderer
  • otherwise keep the existing tail/text rendering

npm run verify passes.

@esengine

esengine commented May 9, 2026

Copy link
Copy Markdown
Owner

Thanks! Matches the spec cleanly and CI is green. Merging.

@esengine esengine merged commit d1f491b into esengine:main May 9, 2026
3 checks passed
@esengine esengine mentioned this pull request May 9, 2026
2 tasks
ChasLui pushed a commit to ChasLui/DeepSeek-Reasonix that referenced this pull request May 23, 2026
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.

ui: subagent tool result body is rendered raw — markdown shows as literal **/##/code-fences

2 participants