fix: use prompt snapshots for live context diagnostics

This commit is contained in:
Peter Steinberger
2026-04-25 20:25:36 +01:00
parent b732f21a86
commit 30325f567c
6 changed files with 205 additions and 12 deletions

View File

@@ -198,6 +198,9 @@ diagnostics + the exporter plugin are enabled.
Model usage:
- `model.usage`: tokens, cost, duration, context, provider/model/channel, session ids.
`usage` is provider/turn accounting for cost and telemetry; `context.used`
is the current prompt/context snapshot and can be lower than provider
`usage.total` when cached input or tool-loop calls are involved.
Message flow: