fix(app): add shared archive pending state across sidebar and agent screen

This commit is contained in:
Mohamed Boudra
2026-02-18 18:02:47 +07:00
parent b1955cf74d
commit 229e747244
6 changed files with 329 additions and 37 deletions
@@ -86,13 +86,15 @@ export function useAllAgentsList(options?: {
const snapshot = entry.agent;
const normalized = normalizeAgentSnapshot(snapshot, serverId);
const live = liveAgents?.get(snapshot.id);
list.push(
toAggregatedAgent({
source: live ?? normalized,
serverId,
serverLabel,
})
);
const aggregated = toAggregatedAgent({
source: live ?? normalized,
serverId,
serverLabel,
});
if (aggregated.archivedAt) {
continue;
}
list.push(aggregated);
}
list.sort((left, right) => {