cursor token_details read into Usage
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 0
- Avg merge
- 1h
- Merged PRs (30d)
- 17
Description
What it does
Decodes the cursor wire's checkpoint message, reads the token details it carries, and feeds them into Usage, so the context meter and auto-compaction see a number on this wire.
Source
ganja-code-shlm (cursor's token_details read into Usage).
The bead is closed when this issue is published, with its external reference pointing here (#38).
File and line references in this issue are to main as of 75a7a92.
Against the three criteria
- Direction (README): The README says nothing about showing usage (
README.md:28-29). - Today's terminal users: The cursor wire emits no Usage, so the context meter stays still and auto-compaction never fires;
/compactis the only door, and since D553 the request grows with the transcript. - Evidence: The checkpoint field is logged by number and size only (
crates/ganja-provider/src/provider/cursor/decode.rs:373-381,crates/ganja-provider/src/provider/cursor/decode.rs:552). The first step is to decode it and log what it holds on a live turn, which needs a stored sign-in.
Depends on
Nothing. It could share the occasion of #91's live probe.
Verdict
- Verdict: park
- Reopens: at the next landing that touches the cursor wire — possibly the same occasion as the live probe #91 needs.
- Exception to the probe rule: no.
- Date: 2026-09-19
- Verdict ticket: #45
Theme: #58
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in crates/ganja-provider/src/provider/cursor/decode.rs at lines 373-381 and 552, then run a live cursor turn using the stored sign-in to inspect the checkpoint field's contents. Confirm how its token_details can be decoded into Usage so the context meter and auto-compaction receive a value; the issue is done when that wire reports usable usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100