fix: prompt caching, conversation length management and token usage display

This commit is contained in:
2026-02-26 20:07:06 +01:00
parent daf8addb53
commit 9149c21bdf
20 changed files with 317 additions and 7 deletions

View File

@@ -283,6 +283,11 @@ export function registerChatHandlers(): void {
mainWindow.webContents.send('a2ui-message', { conversationId, message });
}
},
onTokenUsage: (usage) => {
if (mainWindow) {
mainWindow.webContents.send('chat-token-usage', { conversationId, ...usage });
}
},
});
return result;