You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(metrics): propagate --days and --project filters to all analyzers
- Pre-filter sessions by days before passing to AnalyzeEfficiency,
AnalyzeCommits, AnalyzeConfidence, AnalyzeOutcomes, etc. Previously
only AnalyzeVelocity applied the days window; all other sections
silently reported all-time data regardless of --days.
- Filter facets and agentTasks by session-ID sets derived from the
filtered session slice, so Satisfaction, Friction Trends, and Agent
Performance also respect --days and --project.
- Export FilterSessionsByDays from the analyzer package.
- Truncate tool names longer than 22 chars to prevent mid-name line
wrapping in session inspect and metrics efficiency sections.
- Add priority_label string to suggest --json output alongside the
raw priority integer.
- Update fix --ai default model from claude-sonnet-4-20250514 to
claude-sonnet-4-6.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,18 @@
2
2
3
3
All notable changes to claudewatch are documented here.
4
4
5
+
## [Unreleased]
6
+
7
+
### Fixed
8
+
9
+
-**`claudewatch metrics --days` filter scope** — the `--days` window was applied only inside `AnalyzeVelocity` (Session Volume and Productivity sections) but not to the session slice passed to any other analyzer. Efficiency, Satisfaction, Token Usage, Commits, Confidence, Friction Trends, Cost per Outcome, and CLAUDE.md Effectiveness all silently reported all-time data regardless of `--days`. Fix: sessions are now pre-filtered by days immediately after the project filter, before any analyzer is called. `facets` and `agentTasks` are filtered to the same window via session-ID sets. Also fixes `--project` not filtering Agent Performance — `agentTasks` was loaded globally without session correlation.
10
+
11
+
-**Long MCP tool names wrap mid-name in session inspect and metrics efficiency** — `StyleLabel` has a fixed `Width(24)`, so tool names longer than 24 characters (e.g. `mcp__commitmux__commitmux_search`) would wrap partway through the name onto the next line. Fix: names longer than 22 characters are now truncated to 22 + `..` before rendering, keeping output within the label column.
12
+
13
+
-**`suggest --json` missing human-readable priority label** — the JSON output serialized `Priority` as a raw integer (`2`, `3`, `4`) with no string equivalent, while the text output showed `[HIGH]`, `[MEDIUM]`, `[LOW]`. Fix: JSON output now includes a `priority_label` field (`"HIGH"`, `"MEDIUM"`, `"LOW"`, `"CRITICAL"`) alongside the integer.
14
+
15
+
-**`fix --ai` default model was stale** — default model was `claude-sonnet-4-20250514`; updated to `claude-sonnet-4-6`.
0 commit comments