Mark local Cursor dollars in overview as estimates, not the bill - #1615
Open
ozymandiashh wants to merge 1 commit into
Open
ozymandiashh wants to merge 1 commit into
ozymandiashh wants to merge 1 commit into
Conversation
Local Cursor rows are priced from IDE composer bubbles, which never see the context Cursor re-sends on every request, so the figure can sit far below the dashboard bill (about 2% on the account that reported getagentseal#1545), yet overview printed it like any exact total. The import from getagentseal#1558 answers this for the time an export covers; outside it nothing said the number was not the bill. overview now prints one dim line under the bottom line whenever the period still holds local cursor/cursor-agent dollars that no import covers — covered local calls are already dropped at serve time, so any non-imported Cursor call that survives the walk is an uncovered estimate. The line names the amount and points at codeburn import cursor <file.csv>.
This branch has not been deployed
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
Addresses the
or be visibly markedhalf of #1545.Local Cursor rows are priced from IDE composer bubbles, which never see the context Cursor re-sends on every request — on the account that reported the issue the local figure was about 2% of the dashboard charge — yet
overviewprinted it like any exact total. The import from #1558 answers this for the time an export covers; outside coverage nothing said the number was not the bill.renderOverviewnow walks the same assistant calls it already sums and, whenever the period still holds localcursor/cursor-agentdollars that no import covers, prints one dim line under the bottom line, in the style of the existing carried/unattributed notes:cursor-import:dedup key and never trigger the line.--from/--toranges, and--provider/--projectfilters, since the detection lives in the renderer.CURSOR_IMPORT_KEY_PREFIXfromcursor-import.tsinstead of duplicating the literal.docs/providers/cursor.md) and the Unreleased CHANGELOG entry updated.Deliberately out of scope (happy to follow up if wanted): the
today/monthTUI dashboard and the menubar chip render from other paths; this PR covers theoverviewreport surface, which the issue's CLI repro used.Testing
tests/overview.test.ts: the line appears for local Cursor and Cursor Agent rows with the summed amount, stays silent for imported (cursor-import:-keyed) rows, and silent for non-Cursor providers.npx vitest run tests— full suite passes (4771 passed, 5 skipped).