fix(server): stop querying Claude context usage after turns #8610
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/8610/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/provider/Layers/ClaudeAdapter.ts line 2221Resolvedby t3dotgg(GitHub profile, opens in a new tab)@@ -2256,7 +2218,4 @@22562218 context.lastKnownTotalProcessedTokens = accumulatedTotalProcessedTokens;22572219 }225822202259- const contextUsageSnapshot = yield* queryCurrentContextUsage(2260- context,2261- accumulatedTotalProcessedTokens ?? context.lastKnownTotalProcessedTokens,2262- );2221+ // Avoid getContextUsage because its token-count fallback can make extra model requests.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
812f85ad-1a5a-4378-b552-dbc6ff570ddbYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.