Assistant text before a tool call (e.g. ask_user popup) is hidden in the collapsed "Thought for…" block instead of rendering as chat
Personne n'a encore pris cette issue.
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
Describe the bug
In interactive mode, any assistant chat text written in the same turn before a tool call (most notably the ask_user question popup) is never rendered as a visible chat message. It is instead folded into the collapsed "Thought for Ns" reasoning block, where it stays hidden unless manually expanded — even after the tool call resolves.
The practical impact: when the agent writes explanatory context ("here's the quoted text / options / proposal…") and then opens an ask_user popup referring to that context, the user only sees the popup and cannot see the text it refers to.
Affected version
1.0.73 (Copilot app / workspace UI; copilot --version in shell reports 26.5.2)
Steps to reproduce the behavior
Ran a series of controlled tests with the agent in interactive mode:
- Agent emits a chat message containing a marker + blockquote, then calls
ask_userin the same turn → user sees only the popup; the text never appears, even after answering. It is only findable by expanding the "Thought for Ns" block. - Agent emits a text-only turn (no tool calls) → text renders normally as visible chat.
- Agent calls a tool first, then writes text after the tool result in the same turn → text renders normally.
- Markdown inside the
ask_userquestion field (blockquote, inline code, bold) renders correctly, and long question text is not truncated — so the popup itself is fine; only preceding same-turn text is lost.
Expected behavior
Assistant text preceding a tool call in the same turn should render as a normal, permanently visible chat message (before or alongside the popup), not be classified as model reasoning/thinking and collapsed.
Additional context
- Operating system: macOS (Darwin, ARM)
- Surface: Copilot desktop app (Tauri workspace UI) project session, interactive mode
- The misclassification appears to be in how the UI segments a turn: everything prior to the first tool call is treated as part of the thinking block rather than as assistant output.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le problème en mode interactif avec du texte de l’assistant avant un appel à ask_user, puis examinez comment l’UI du workspace segmente un tour autour de son premier appel d’outil. C’est terminé lorsque le texte de l’assistant qui précède s’affiche comme un message de chat toujours visible, tandis que la popup ask_user continue de fonctionner.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- tauri
- Domaine
- desktop, frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 58/100