Preceding Text can get broken by Tool Call
The text immediately preceding a tool call (e.g., the final part of a sentence or word) is getting cut off or badly wrapped when the "Preparing tool: ⏳" block appears. This visual glitch disrupts the flow of the assistant's response, leaving the previous text incomplete (as seen with "expression:" in the image).
Although I can't replicate it manually. I wonder whether this could be caused by a user pressing some key. Maybe we could we disable editing in all areas except the last section of the chat (the new prompt area)?
Yeah, I can't see LLM outputing tool calls in the middle of a text, anthropic ones do that but after sentences and it's alright.
But agree, we should disable editting in other parts, and we already have this kind of logic for deletions, but not overall editing
LLM doesn't do that, it is probably a client issue. And it is not caused by any user action.
that's weird, can you check logs via --verbose so we can make sure it's ECA server sending things in wrong order?
@zikajk I managed to repro that for openai-chat, is that what you are using? I believe it might be related with the thinking block addition I did recently
I was using copilot sonnet 4.5 (no thinking there).
When it breaks then it breaks the last word (whole or part of it) so I thought it might be some race condition.
@zikajk just fixed that on 0.63.3, can you check please?
It was related with the last few chars of streaming, which I touched for parsing <think> blocks, LMK otherwise