From 5296c4da2ccbf13a21b62769120d1919a74e03f1 Mon Sep 17 00:00:00 2001 From: Sepehr Ramezani Date: Sun, 19 Apr 2026 15:13:43 +0200 Subject: [PATCH] =?UTF-8?q?fix(agents):=20badge=20"Nouveau"=20dispara?= =?UTF-8?q?=C3=AEt=20apr=C3=A8s=20modification=20de=20l'agent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compare createdAt et updatedAt au lieu du seuil de 24h. Prisma met à jour updatedAt automatiquement à chaque édition. Co-Authored-By: Claude Opus 4.5 --- keep-notes/components/agents/agent-card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keep-notes/components/agents/agent-card.tsx b/keep-notes/components/agents/agent-card.tsx index 3e737ba..01854e0 100644 --- a/keep-notes/components/agents/agent-card.tsx +++ b/keep-notes/components/agents/agent-card.tsx @@ -89,7 +89,7 @@ export function AgentCard({ agent, onEdit, onRefresh, onToggle }: AgentCardProps const Icon = config.icon const lastAction = agent.actions[0] const dateLocale = language === 'fr' ? fr : enUS - const isNew = Date.now() - new Date(agent.createdAt).getTime() < 24 * 60 * 60 * 1000 + const isNew = new Date(agent.createdAt).getTime() === new Date(agent.updatedAt).getTime() const handleRun = async () => { setIsRunning(true)