Unexpected truncate before human input <think> label #7993

Open
opened 2026-02-16 18:08:52 -05:00 by yindo · 2 comments
Owner

Originally created by @MusherM on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

As my prompt is about to fix a bug related to <think> labels, but the LLM seems not to be able to see anything before the label, I assume it's the opencode that truncate anything before the </think> lable.

Plugins

oh-my-opencode

OpenCode version

1.1.43 with Minimax M2.1 provided by minimaxi(CN)

Steps to reproduce

  1. Input any content with <think> </think>, and ask it to repeat it, do nothing else;
  2. You would find out that opencode would only repeat the content AFTER the </think> label

Screenshot and/or share link

Image

The Chinese content does not really matter, it simply just repeats things after </think> label, and knows nothing before it, the label acts just like a WALL.

Operating System

macOS 26

Terminal

iTerm2

Originally created by @MusherM on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description As my prompt is about to fix a bug related to `<think>` labels, but the LLM seems not to be able to see anything before the </think> label, I assume it's the opencode that truncate anything before the `</think>` lable. ### Plugins oh-my-opencode ### OpenCode version 1.1.43 with Minimax M2.1 provided by minimaxi(CN) ### Steps to reproduce 1. Input any content with `<think> </think>`, and ask it to repeat it, do nothing else; 2. You would find out that opencode would only repeat the content **AFTER** the `</think>` label ### Screenshot and/or share link <img width="964" height="510" alt="Image" src="https://github.com/user-attachments/assets/a660eb39-38bc-4d6a-a63a-051aed095997" /> The Chinese content does not really matter, it simply just repeats things after `</think>` label, and knows nothing before it, the label acts just like a WALL. ### Operating System macOS 26 ### Terminal iTerm2
yindo added the bug label 2026-02-16 18:08:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5187: Ollama: User message content arrives as empty array - model cannot see user input

This appears to be a similar issue where the model cannot see user-provided content, though the root cause may differ (empty arrays vs. content being filtered out when before </think> tags).

Feel free to ignore if this doesn't match your specific case.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #5187: Ollama: User message content arrives as empty array - model cannot see user input This appears to be a similar issue where the model cannot see user-provided content, though the root cause may differ (empty arrays vs. content being filtered out when before `</think>` tags). Feel free to ignore if this doesn't match your specific case.
Author
Owner

@MusherM commented on GitHub (Jan 29, 2026):

And Jesus, the <think> label even can't display normally here in GitHub without the ````, the whole html label is a mess.

@MusherM commented on GitHub (Jan 29, 2026): And Jesus, the `<think>` label even can't display normally here in GitHub without the ````, the whole html label is a mess.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7993