The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(artifacts): convert DB timestamps from seconds to ms for Date()
icemeng96d6db1993d6
diff --git a/apps/desktop/src/app/artifacts/artifact-utils.ts b/apps/desktop/src/app/artifacts/artifact-utils.tsindex 48e4258904d..97e0674cfdb 100644--- a/apps/desktop/src/app/artifacts/artifact-utils.ts+++ b/apps/desktop/src/app/artifacts/artifact-utils.ts@@ -283,7 +283,10 @@ export function collectArtifactsForSession(session: SessionInfo, messages: Sessilabel: artifactLabel(value),sessionId: session.id,sessionTitle: title,- timestamp: message.timestamp || session.last_active || session.started_at || Date.now()+ // DB timestamps (message.timestamp, session.last_active, session.started_at)+ // are Unix epoch **seconds**. JS Date() expects **milliseconds**, so multiply by 1000.+ // Date.now() returns ms, so divide by 1000 to keep the conversion uniform.+ timestamp: (message.timestamp || session.last_active || session.started_at || Date.now() / 1000) * 1000})})}