Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236)

This reverts commit d66a6f6124.
This commit is contained in:
claude-code-best
2026-05-17 10:06:09 +08:00
committed by GitHub
parent d66a6f6124
commit 2cc9a7daef
10 changed files with 0 additions and 483 deletions

View File

@@ -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)
}
}