Commit 8557bc3
fix: auto-detect agent in recordMetrics to prevent NULL agent values
Only session_start, session_refresh, and session_close passed agent to
recordMetrics(). All other tools (recall, search, log, create_learning,
etc.) omitted it, resulting in NULL agent values in gitmem_query_metrics.
recordMetrics() now calls getAgentIdentity() as fallback when callers
don't provide agent, ensuring all metrics rows have proper agent identity.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7b145b6 commit 8557bc3
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
0 commit comments