release v1.2.9

This commit is contained in:
Bohdan Triapitsyn
2025-12-20 02:44:46 +02:00
parent f144eff46e
commit 83b4509cd8
13 changed files with 35 additions and 19 deletions
+12 -4
View File
@@ -296,15 +296,23 @@ export const useChatStore = create<ChatState>((set, get) => ({
try {
// Add user message optimistically
const messageId = `temp-${Date.now()}`;
const partId = `part-${messageId}`;
const userPart: Part = {
id: partId,
sessionID: currentSessionId,
messageID: messageId,
type: 'text',
text: content,
} as Part;
const userMessage: MessageRecord = {
info: {
id: `temp-${Date.now()}`,
sessionId: currentSessionId,
id: messageId,
sessionID: currentSessionId,
role: 'user',
parts: [{ type: 'text', text: content }],
time: { created: Date.now() },
} as Message,
parts: [{ type: 'text', text: content }],
parts: [userPart],
};
const currentMessages = messages.get(currentSessionId) || [];