mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
This reverts commit d66a6f6124.
This commit is contained in:
@@ -5,7 +5,6 @@ import type {
|
||||
} from '@anthropic-ai/sdk/resources/index.mjs'
|
||||
import type { CanUseToolFn } from './hooks/useCanUseTool.js'
|
||||
import { FallbackTriggeredError } from './services/api/withRetry.js'
|
||||
import { updateGoalTokens } from './services/goal/goalState.js'
|
||||
import {
|
||||
calculateTokenWarningState,
|
||||
estimateMaxTurnGrowth,
|
||||
@@ -1266,13 +1265,6 @@ async function* queryLoop(
|
||||
if (warningInfo) {
|
||||
yield createCacheWarningMessage(warningInfo)
|
||||
}
|
||||
|
||||
// Update goal token usage
|
||||
const totalTokens =
|
||||
usage.input_tokens +
|
||||
(usage.cache_creation_input_tokens ?? 0) +
|
||||
(usage.cache_read_input_tokens ?? 0)
|
||||
updateGoalTokens(totalTokens)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user