lsp improvements

This commit is contained in:
Kujtim Hoxha
2025-04-19 15:15:29 +02:00
parent 20c28668ca
commit 304d666856
15 changed files with 922 additions and 127 deletions
+5 -1
View File
@@ -151,7 +151,11 @@ func renderAssistantMessage(
))
}
}
if content != "" {
if content != "" || (finished && finishData.Reason == message.FinishReasonEndTurn) {
if content == "" {
content = "*Finished without output*"
}
content = renderMessage(content, false, msg.ID == focusedUIMessageId, width, info...)
messages = append(messages, uiMessage{
ID: msg.ID,