Changeset 0.23.2 (#155)

This commit is contained in:
2026-03-06 23:17:03 +00:00
parent 4c6555cb06
commit 2dc4514a57
36 changed files with 2784 additions and 192 deletions

View File

@@ -81,7 +81,7 @@ async function stageFile(file) {
_updateSendBlock();
// Ensure a channel exists (files are channel-scoped)
if (!App.currentChatId) {
if (!App.activeId) {
try {
const title = file.name.slice(0, 50);
const selectedId = UI.getModelValue();
@@ -93,7 +93,7 @@ async function stageFile(file) {
model, messages: [], messageCount: 0, updatedAt: resp.updated_at,
};
App.chats.unshift(chat);
App.currentChatId = chat.id;
App.setActive(chat.id, 'direct');
UI.renderChatList();
} catch (e) {
staged.status = 'error';
@@ -106,7 +106,7 @@ async function stageFile(file) {
// Upload
try {
const result = await API.uploadFile(App.currentChatId, file);
const result = await API.uploadFile(App.activeId, file);
staged.serverId = result.id;
staged.status = _mapExtractionStatus(result.metadata?.extraction_status);
staged.extractionStatus = result.metadata?.extraction_status || null;