Skip to content

Fix/duplicate token accumulation#42

Merged
softberries merged 2 commits intomainfrom
fix/duplicate-token-accumulation
Mar 29, 2026
Merged

Fix/duplicate token accumulation#42
softberries merged 2 commits intomainfrom
fix/duplicate-token-accumulation

Conversation

@softberries
Copy link
Copy Markdown
Member

No description provided.

…cript batches

insert_transcript_chunk now returns whether the row was actually inserted.
Stream processing skips token extraction for duplicate chunks, fixing
inflated session costs when Claude Code resends overlapping batches.
…acks

The ingestion path used estimate_cost() with stale hardcoded rates
(old Opus pricing at $15/$75 per Mtok) while the model_pricing table
had correct Opus 4.6 rates ($5/$25). Now uses fetch_pricing_for_model
to check the DB first, matching what parse_transcript does at display time.
@softberries softberries merged commit fcdacb5 into main Mar 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant