-
Notifications
You must be signed in to change notification settings - Fork 3
sdk/summary: surface unpriced turns instead of silently reporting them as $0 #474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c2a5b4a
07a1f7f
a49aa55
53bf81a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"workspaceId":"rw_7ccfea89","remoteRoot":"/memory/workspace","localRoot":"/home/daytona/workspace/memory/workspace","mode":"poll","syncMode":"mirror","intervalMs":5000,"lastReconcileAt":"2026-06-10T16:21:00.371199852Z","lastSuccessfulReconcileAt":"2026-06-10T16:21:00.371199852Z","staleAfter":"2026-06-10T16:21:10.371199852Z","status":"ready","states":{"stale":false,"offline":false,"hasConflicts":false,"hasPendingWriteback":false},"pendingWriteback":0,"pendingConflicts":0,"deniedPaths":0,"counters":{"snapshotDeleteBlocked":157},"circuit":{"open":false,"openedAt":"0001-01-01T00:00:00Z","windowMs":60000,"cooldownMs":30000,"threshold":5,"nextRetry":"0001-01-01T00:00:00Z"},"outbox":{"pending":0,"needsAttention":0,"failed":0,"acked":0}} | ||
| {"workspaceId":"rw_7ccfea89","remoteRoot":"/memory/workspace","localRoot":"/home/daytona/workspace/memory/workspace","mode":"poll","syncMode":"mirror","intervalMs":5000,"lastReconcileAt":"2026-06-10T16:21:00.371199852Z","lastSuccessfulReconcileAt":"2026-06-10T16:21:00.371199852Z","staleAfter":"2026-06-10T16:21:10.371199852Z","status":"ready","states":{"stale":false,"offline":false,"hasConflicts":false,"hasPendingWriteback":false},"pendingWriteback":0,"pendingConflicts":0,"deniedPaths":0,"counters":{"snapshotDeleteBlocked":157},"circuit":{"open":false,"openedAt":"0001-01-01T00:00:00Z","windowMs":60000,"cooldownMs":30000,"threshold":5,"nextRetry":"0001-01-01T00:00:00Z"},"outbox":{"pending":0,"needsAttention":0,"failed":0,"acked":0}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,6 +114,10 @@ export declare function summary(opts?: SummaryOptions): Promise<{ | |
| estimatedTokensSaved: number | bigint; | ||
| }>; | ||
| }; | ||
| /** Number of turns whose model had no pricing entry; their cost is reported as $0. */ | ||
| unpricedTurns?: number; | ||
| /** Distinct model names (first-seen order) that had no pricing entry. */ | ||
| unpricedModels?: string[]; | ||
|
Comment on lines
+118
to
+120
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For Useful? React with 👍 / 👎. |
||
| }> | ||
|
|
||
| export interface SessionCostOptions { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
burn summary --jsonis used with turns from an unknown model, this new warning path is skipped becauseemit_groupedreturns throughemit_json, andgrouped_json_valuemanually builds the payload without insertingunpricedTurnsorunpricedModels. That leaves JSON callers with the same silent$0under-reporting this change is intended to surface; add the two fields to the grouped JSON payload when present.Useful? React with 👍 / 👎.