Changeset 0.23.2 (#155)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user