feat(usage): add Today's Sessions tab to Usage Analysis#889
Merged
Conversation
Add a new subtab on the Usage Analysis page that shows a per-session breakdown for today. Each row displays: - Title, interactions, tool calls - Token breakdown (input, output, thinking, cached, total) - Estimated cost, editor source, models used, last activity time Sessions are sorted by interaction count (most active first). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace toLocaleTimeString() with toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
so the time respects the user's system locale (e.g. HH:mm for 24h users) instead of
defaulting to the en-US AM/PM format in the VS Code webview context.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1. Wire up setupSessionsTableSort() after renderLayout() in both bootstrap and update handler so clicking column headers actually sorts. 2. Force hour12:false in toLocaleTimeString() to guarantee HH:mm format regardless of the webview's default en-US locale. 3. Extract thinking tokens from CLI JSONL assistant.message events via event.data.reasoningText (and JetBrains event.data.thinking.text), fixing the 0-value thinking column for all CLI sessions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds aiEngineeringFluency.display.use24HourTime (default: true) to control whether times are shown in 24-hour (14:30) or 12-hour AM/PM format (2:30 PM). Follows the same pattern as display.compactNumbers — passed via initial data to the usage analysis webview and respected by the Today's Sessions table. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…odel_change detection - Change default model from 'gpt-4o' to 'unknown' across all detection paths (extension.ts, usageAnalysis.ts, sessionParser.ts, syncService.ts) - Add session.model_change event handling for CLI sessions in all paths - Add per-event model from assistant.message.data.model for accurate per-turn attribution - Fix delta-based JSONL callback override logic to respect authoritative per-request modelId - Update tests to expect 'unknown' default instead of 'gpt-4o' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Click a session title in the Today's Sessions table to open it in the log viewer. Adds filePath to TodaySessionSummary and handles the openSessionFile message in the usage analysis panel. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new "📋 Today's Sessions" subtab to the Usage Analysis page that shows a per-session breakdown for today's activity.
What it shows
Each row in the table displays:
Sessions are sorted by interaction count (most active first).
Changes
vscode-extension/src/types.ts— AddedTodaySessionSummaryinterface andtodaySessionsfield toUsageAnalysisStatsvscode-extension/src/extension.ts— Collects per-session summaries duringcalculateUsageAnalysisStats()for today's sessions and passes them to the webviewvscode-extension/src/webview/usage/main.ts— New tab button, tab panel with table rendering, sanitization of the new data fieldTesting
npm run compilepasses (TypeScript + ESLint)npm run test:node)