mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 00:27:29 +08:00
webui chat: restore history loading and add channel/session-scoped conversation selector
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user