feat: add Reset Stats button to admin LLM tracking panel

Allows resetting the LLM stats aggregation window without deleting
historical data. Stores a reset timestamp in metadata and filters
the aggregation query to only include calls after that point.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-13 01:59:24 +00:00
parent 513d35e0e5
commit b2ac0e7a00
8 changed files with 78 additions and 1 deletions
+1
View File
@@ -393,4 +393,5 @@ export interface ClientEvents {
'admin-toggle-llm-tracking': (data: {
enabled: boolean;
}) => void;
'admin-reset-llm-stats': () => void;
}
+1
View File
@@ -382,4 +382,5 @@ export interface ClientEvents {
'log-unsubscribe': () => void;
'admin-llm-stats': () => void;
'admin-toggle-llm-tracking': (data: { enabled: boolean }) => void;
'admin-reset-llm-stats': () => void;
}