Skip to content

Studio local safetensors chat can show multiple Thought sections for one user message #7122

Closed

Description

@Lyxot

Behavior

In Studio local safetensors chat, one user message can appear to produce multiple visible assistant "Thought" sections and multiple partial answer blocks. The UI shows a single user bubble, but the assistant response is split into repeated reasoning/content sections, making it look like the same user message was processed multiple times.

Latest Reproduction Prompt

Run Studio with a local safetensors/MLX chat model that advertises reasoning and tool support, with tools enabled. The latest repro used Qwen3.5-0.8B in Studio.

Write a concise 5-bullet checklist for setting up a fresh Python virtual environment. This is general knowledge, so do not use tools. Before the final answer, silently plan the steps you will include. In the final answer, only output the checklist, with no intro.

Screenshot

Image

Expected

A single user message should produce one coherent assistant response. Internal retries or tool-loop attempts should not appear as separate visible assistant reasoning/content sections.

Actual

The UI showed one user prompt followed by repeated "Thought for 1 second" sections and repeated checklist answers in the same assistant response.

Latest Log Evidence

From the latest repro run, the server log showed one chat-completion request entering the safetensors reasoning/tool path and then issuing repeated re-prompts before completion:

2026-07-16T10:52:24.729237Z PUT /api/chat/threads/__LOCALID_ESekkL2/messages
2026-07-16T10:52:24.732980Z safetensors: model supports reasoning (enable_thinking)
2026-07-16T10:52:24.733140Z safetensors: model supports tool calling
2026-07-16T10:52:26.452048Z Safetensors re-prompt 1/3: model responded without calling tools (1429 chars)
2026-07-16T10:52:28.507736Z Safetensors re-prompt 2/3: model responded without calling tools (1702 chars)
2026-07-16T10:52:31.580640Z POST /v1/chat/completions completed

Latest Persistence Evidence

The latest repro persisted one user message and one latest assistant child message, but that assistant message contained multiple alternating reasoning/text segments:

thread: __LOCALID_ESekkL2
user message: uVGXvaI
assistant message: Y9XPUKE

segments:
0 reasoning 620 chars
1 text      794 chars
2 reasoning 1262 chars
3 text      425 chars
4 reasoning 2267 chars
5 text      424 chars

This confirms the visible duplication is not caused by multiple persisted user messages. The problematic shape is multiple internal attempts being stored/rendered inside one assistant message.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions