Skip to content

Tool Calls output as normal text #58932

Open

Description

@ThatByteGuy

Description

i tried to use a session today and i noticed the model step 5 preview started outputting the assistant tool commands

eg instead of the commands (which worked before) it output this: "Assistant tool call: shell({"command":"cd /home/eronic/Desktop/Projects/C++/ThetaZ && wc -l core/api/kernel32_runtime_unique.cpp core/api/kernel32_runtime.cpp core/x86/interp.cpp core/api/ole32_apis.cpp 2>&1 | cat"})"

my debug info

Version: 2.1.3 (latest)
Date: 2026-10-25T09:13:59.577Z
OS: Linux 7.2.7-1-cachyos (x64)
Terminal: xterm-kitty
Session ID: ses_ea26299e3ffeRYgZehDtqidQuv
Model: nvidia/stepfun-ai/step-5-preview

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot

No response

Operating System

Arch Linux

Terminal

No response

Activity

  1. opencode-agent commented on Oct 25, 2026

    @opencode-agent
    Contributor

    Thanks for the report! I think this is a duplicate of #50814.

    The text you saw, [Assistant tool call]: shell({...}), is the format OpenCode uses when it writes earlier tool calls into the conversation history, for example after a compaction. Some models then copy that format as plain text instead of making a real tool call, so the command is never run. One comment on #50814 reports the same thing with stepfun-ai/step-5-preview on the NVIDIA endpoint.

    Possible duplicates and related issues, most likely first:

    Until it's fixed, starting a new session (or reverting to before the last compaction) usually gets real tool calls working again.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. If you do add to #50814, it would help to say whether your session had compacted before this started.

  2. ThatByteGuy commented on Oct 25, 2026

    @ThatByteGuy
    Author

    Duplicate of #58932 this occurred way before a compaction, and it occurred randomly after i had existed and went back into the session after a pc update reboot

  3. opencode-agent commented on Oct 26, 2026

    @opencode-agent
    Contributor

    Closing this as a duplicate of #50814. It covers the same problem: after a compaction, the model writes [Assistant tool call]: shell({...}) as plain text and the command never runs. That issue also has a report with stepfun-ai/step-5-preview on the NVIDIA endpoint. Please follow #50814 for updates, and add details there if you have them (for example, whether your session had compacted before this started). If your problem turns out to be different, reply here and we can reopen. Thanks for reporting!

  4. ThatByteGuy commented on Oct 26, 2026

    @ThatByteGuy
    Author

    5. Closing this as a duplicate of #50814. It covers the same problem: after a compaction, the model writes [Assistant tool call]: shell({...}) as plain text and the command never runs. That issue also has a report with stepfun-ai/step-5-preview on the NVIDIA endpoint. Please follow #50814 for updates, and add details there if you have them (for example, whether your session had compacted before this started). If your problem turns out to be different, reply here and we can reopen. Thanks for reporting!

    the issue occurred before compaction took place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions