feat: add Gemini CLI session log usage tracking

Parse ~/.gemini/tmp/*/chats/session-*.json for precise per-message
token data (input/output/cached/thoughts). Integrates with existing
background sync and manual sync button alongside Claude and Codex.
This commit is contained in:
Jason
2026-04-06 19:48:06 +08:00
parent 8ad1bb7924
commit f5d7064d57
8 changed files with 525 additions and 3 deletions
+1
View File
@@ -16,6 +16,7 @@ const DATA_SOURCE_ICONS: Record<string, React.ReactNode> = {
session_log: <FileText className="h-3.5 w-3.5" />,
codex_db: <Database className="h-3.5 w-3.5" />,
codex_session: <FileText className="h-3.5 w-3.5" />,
gemini_session: <FileText className="h-3.5 w-3.5" />,
};
export function DataSourceBar({ refreshIntervalMs }: DataSourceBarProps) {