Chat & sidebar UX improvements (#929)

This commit is contained in:
Haile
2026-06-29 10:27:04 +03:00
committed by Simos Mikelatos
parent 97c9b67bfc
commit 053f244d14
13 changed files with 517 additions and 203 deletions

View File

@@ -207,6 +207,15 @@ export function normalizedToChatMessages(messages: NormalizedMessage[]): ChatMes
break;
}
// A result with a toolId but no matching tool_use in the loaded set is
// almost always a tool_use/tool_result pair split across a pagination
// boundary (older page not loaded yet). Rendering its raw content here
// produces an unstyled dump that "fixes itself" once the older page
// loads; skip it and let it attach to its tool_use when that arrives.
if (msg.toolId) {
break;
}
const content = formatToolResultContent(msg.content || '');
if (!content.trim()) {
break;