webui chat: restore history loading and add channel/session-scoped conversation selector

This commit is contained in:
DBT
2026-02-27 05:39:31 +00:00
parent 7886f1d65d
commit c080fc66cf
3 changed files with 74 additions and 13 deletions

View File

@@ -134,7 +134,7 @@ export const AppProvider: React.FC<{ children: React.ReactNode }> = ({ children
if (!r.ok) throw new Error('Failed to load sessions');
const j = await r.json();
const arr = Array.isArray(j.sessions) ? j.sessions : [];
setSessions(arr.map((s: any) => ({ key: s.key, title: s.key })));
setSessions(arr.map((s: any) => ({ key: s.key, title: s.title || s.key })));
setIsGatewayOnline(true);
} catch (e) {
setIsGatewayOnline(false);