fix: 修复剩余AI审查的问题
This commit is contained in:
parent
c551f5ae81
commit
1d209db059
|
|
@ -45,7 +45,7 @@ import { isVimModeEnabled } from './PromptInput/utils.js';
|
||||||
import { computeHitRate, tokenSignature } from '../utils/cacheStats.js';
|
import { computeHitRate, tokenSignature } from '../utils/cacheStats.js';
|
||||||
import { onResponse as cacheOnResponse, getCacheStatsState, initCacheStatsState } from '../utils/cacheStatsState.js';
|
import { onResponse as cacheOnResponse, getCacheStatsState, initCacheStatsState } from '../utils/cacheStatsState.js';
|
||||||
import { BuiltinStatusLine } from './BuiltinStatusLine.js';
|
import { BuiltinStatusLine } from './BuiltinStatusLine.js';
|
||||||
import { formatTokens } from '../utils/format.js';
|
import { formatTokens } from 'src/utils/format.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// CachePill — cache hit-rate + 1-hour TTL countdown pill
|
// CachePill — cache hit-rate + 1-hour TTL countdown pill
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,13 @@ export function useGoalContinuation(opts: UseGoalContinuationOpts): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
const goal = getGoal()
|
const goal = getGoal()
|
||||||
if (!goal) return
|
if (!goal) {
|
||||||
|
budgetLimitFiredRef.current = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (goal.status === 'active') {
|
||||||
|
budgetLimitFiredRef.current = false
|
||||||
|
}
|
||||||
|
|
||||||
if (goal.status === 'budget_limited' && !budgetLimitFiredRef.current) {
|
if (goal.status === 'budget_limited' && !budgetLimitFiredRef.current) {
|
||||||
budgetLimitFiredRef.current = true
|
budgetLimitFiredRef.current = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user