You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Raw <parameter> tool-call tags rendered literally in TUI above assistant message #45797
In the TUI, raw tool-call tags like <parameter name="..."> are occasionally rendered as literal text above the assistant message instead of being parsed/hidden. This happens sporadically while the model makes a tool call.
Expected behavior
Tool-call parameter tags should be consumed by the UI/parser and not appear as visible text in the conversation.
Actual behavior
Sometimes the literal string like <parameter name="foo">...value...</parameter> and stray <parameter> fragments show up above the assistant message in the terminal, corrupting the display. The tools still execute correctly — it is purely a rendering/parsing artifact.
How to reproduce
Open the TUI (opencode) and start a session.
Ask the model to perform an action that triggers tool calls.
Observe the output — intermittently, literal <parameter> tags leak into the rendered message.
Sporadic — does not happen every time, which makes it hard to reproduce on demand. Screenshot will be added when it next reproduces.
Environment
opencode binary: 1.18.23 (latest)
Package: opencode-ai@1.18.23
node: v24.18.0
Platform: linux (Termux/Android, arm64)
Terminal: Termux TUI
Setup: default, no custom plugin involved
Notes
Root cause appears to be models occasionally emitting raw XML tool-call tags as plain text, combined with the opencode renderer displaying those tags verbatim instead of parsing/executing them.
Is it possible for the TUI renderer to hide/parse these tags rather than showing them literally? This is purely a display artifact — tools execute fine.
Closing this as a duplicate — before opening it I hadn't seen #24316, but the bot's suggestion is correct: same raw-XML-tool-call-leaks-into-TUI behavior, and it still reproduces on 1.18.23 (PR #27984 / #30633 not yet merged into a release).
Consolidating discussion to #24316 — I've added an environment/detail comment there.
Activity
github-actions commentedon Aug 28, 2026
This issue might be a duplicate of existing issues. Please check:
<parameter>fragments) leaking into the TUI display instead of being parsed. Also references PR fix(llm): strip dangling XML tool call closing tags from text content #27984 which proposes stripping dangling XML artifacts from streaming text deltas before they reach the TUI.nemoobc commentedon Aug 28, 2026
Closing this as a duplicate — before opening it I hadn't seen #24316, but the bot's suggestion is correct: same raw-XML-tool-call-leaks-into-TUI behavior, and it still reproduces on 1.18.23 (PR #27984 / #30633 not yet merged into a release).
Consolidating discussion to #24316 — I've added an environment/detail comment there.