Fix History restore and diff truncation edge cases

This commit is contained in:
Mohamed Boudra
2026-06-18 20:44:57 +07:00
parent b3f81c0bf4
commit 00c57617d5
25 changed files with 717 additions and 127 deletions
@@ -69,6 +69,7 @@ export async function fetchAgentHistoryPage(input: {
archivedAt: agent.archivedAt ?? null,
createdAt: agent.createdAt,
labels: agent.labels,
projectPlacement: agent.projectPlacement,
})),
pageInfo: payload.pageInfo,
};
@@ -87,6 +87,7 @@ export function useAggregatedAgents(options?: {
archivedAt: agent.archivedAt,
createdAt: agent.createdAt,
labels: agent.labels,
projectPlacement: agent.projectPlacement,
};
const cacheKey = `${serverId}:${agent.id}`;
const prev = prevAgentsRef.current.get(cacheKey);