Changeset 0.19.0.1 (#82)

This commit is contained in:
2026-02-28 23:46:23 +00:00
parent 091ce2af6a
commit 748f49bedd
30 changed files with 3873 additions and 151 deletions

View File

@@ -152,6 +152,7 @@ async function loadChats() {
type: c.type || 'direct',
model: c.model || '',
messageCount: c.message_count || 0,
projectId: c.project_id || null,
messages: [],
updatedAt: c.updated_at,
settings: c.settings || {},
@@ -467,7 +468,7 @@ async function sendMessage() {
try {
const title = text.slice(0, 50) + (text.length > 50 ? '...' : '');
const resp = await API.createChannel(title, model, App.settings.systemPrompt, 'direct');
const chat = { id: resp.id, title: resp.title, type: 'direct', model, messages: [], messageCount: 0, updatedAt: resp.updated_at };
const chat = { id: resp.id, title: resp.title, type: 'direct', model, messages: [], messageCount: 0, projectId: resp.project_id || null, updatedAt: resp.updated_at, settings: resp.settings || {} };
App.chats.unshift(chat);
App.currentChatId = chat.id;
UI.renderChatList();