From a47a68d8e1a6273a18d02878a2cba8bbc0eace5b Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Thu, 27 Aug 2026 11:40:46 -0400 Subject: [PATCH 1/2] update badger version --- server/setup/scriptsPg/1.22.0.ts | 4 ++-- server/setup/scriptsSqlite/1.22.0.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/setup/scriptsPg/1.22.0.ts b/server/setup/scriptsPg/1.22.0.ts index 18d4ae2da..b2197ed80 100644 --- a/server/setup/scriptsPg/1.22.0.ts +++ b/server/setup/scriptsPg/1.22.0.ts @@ -454,14 +454,14 @@ export default async function migration() { throw new Error(fromZodError(parsedConfig.error).toString()); } - traefikConfig.experimental.plugins.badger.version = "v1.6.1"; + traefikConfig.experimental.plugins.badger.version = "v1.7.0"; const updatedTraefikYaml = yaml.dump(traefikConfig); fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8"); console.log( - "Updated the version of Badger in your Traefik configuration to v1.6.1" + "Updated the version of Badger in your Traefik configuration to v1.7.0" ); } catch (e) { console.log( diff --git a/server/setup/scriptsSqlite/1.22.0.ts b/server/setup/scriptsSqlite/1.22.0.ts index 6c530e4c9..e8d817877 100644 --- a/server/setup/scriptsSqlite/1.22.0.ts +++ b/server/setup/scriptsSqlite/1.22.0.ts @@ -459,14 +459,14 @@ export default async function migration() { throw new Error(fromZodError(parsedConfig.error).toString()); } - traefikConfig.experimental.plugins.badger.version = "v1.6.1"; + traefikConfig.experimental.plugins.badger.version = "v1.7.0"; const updatedTraefikYaml = yaml.dump(traefikConfig); fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8"); console.log( - "Updated the version of Badger in your Traefik configuration to v1.6.1" + "Updated the version of Badger in your Traefik configuration to v1.7.0" ); } catch (e) { console.log( From b87b7c7e807359e117712fec5ce745e7f4fe47d3 Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 27 Aug 2026 14:26:47 -0400 Subject: [PATCH 2/2] Fix timestamp handling in AI session logs to use seconds instead of milliseconds --- src/app/[orgId]/settings/logs/ai/page.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/[orgId]/settings/logs/ai/page.tsx b/src/app/[orgId]/settings/logs/ai/page.tsx index 2499e8a20..7fbd537be 100644 --- a/src/app/[orgId]/settings/logs/ai/page.tsx +++ b/src/app/[orgId]/settings/logs/ai/page.tsx @@ -276,7 +276,9 @@ export default function AiSessionLogsPage() { cell: ({ row }) => { return (
- {new Date(row.original.createdAt).toLocaleString()} + {new Date( + row.original.createdAt * 1000 + ).toLocaleString()}
); } @@ -715,8 +717,8 @@ function generateSampleAiSessionLogs(): QueryAiSessionLogResponse["log"] { null ]; - const now = Date.now(); - const sevenDaysAgoMs = now - 7 * 24 * 60 * 60 * 1000; + const now = Math.floor(Date.now() / 1000); + const sevenDaysAgoMs = now - 7 * 24 * 60 * 60; return Array.from({ length: 10 }, (_, i) => { const provider =