fix: warn when /sessions falls back to live-only list (v0.3.3)
Phone showed 2 sessions because apiProxy catalog failed (pre-0.3.2 inject bug) and live-agent fallback hid cold Web sessions. Surface that mode explicitly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -58,7 +58,7 @@ export async function loadCatalog(ctx) {
|
||||
path: w.path,
|
||||
sessionIds: (w.sessionIds ?? []).map(String),
|
||||
}));
|
||||
return { workspaces, sessionsById, archivedIds };
|
||||
return { workspaces, sessionsById, archivedIds, complete: true };
|
||||
}
|
||||
/** Sessions visible under one workspace (Web-like filters). */
|
||||
export function visibleSessionsForWorkspace(catalog, workspace) {
|
||||
@@ -116,5 +116,5 @@ export function catalogFromLiveAgents(agents, ctx) {
|
||||
path,
|
||||
sessionIds: bucket.sessionIds,
|
||||
}));
|
||||
return { workspaces, sessionsById, archivedIds: new Set() };
|
||||
return { workspaces, sessionsById, archivedIds: new Set(), complete: false };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user