anomalyco / anomalyco/opencode

Tool invocation UI leaks internal serialization markup during agent execution

Open
#39,910 2 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

During agent execution, the UI intermittently renders the internal tool invocation serialization instead of the formatted tool execution.

The agent continues to execute normally (searches, edits, shell commands, builds, etc.), but the raw serialization is exposed in the conversation.

Expected behavior

Tool invocations should render as a normal execution step, for example:

Running bash...
echo "Fixing navigation flow redundancy in MainWindow.xaml.cs"

or another formatted UI component.

Actual behavior

The conversation occasionally displays raw serialization such as:

<function=bash> <parameter=command>
echo "Fixing navigation flow redundancy in MainWindow.xaml.cs"

<function=bash>parameter=command>
echo "Integrating engine selection dialog into main workflow"
parameter>function>tool_call>

while the agent continues executing successfully.

Observations

  • Repository searches continue normally.
  • File edits are applied successfully.
  • Shell commands execute.
  • Builds continue.
  • TODO tracking updates correctly.

This appears to be a UI/rendering issue rather than a problem with tool execution or the agent itself.

Environment

  • OpenCode Desktop
  • Windows 11

Screenshots

Attached screenshots showing multiple occurrences during the same agent run.

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.