refactor(context-management): remove deprecated code and optimize token calculations
- Delete deprecated useTokenCount.ts hook (replaced by useTokenEstimation) - Remove unused runCompaction and scheduleCompactionCheck functions - Filter out generating messages in buildContextForAI to exclude incomplete responses - Use cached tokenCount values in genMessageContext when available - Remove redundant filter in getContextMessageIds (already handled by buildContextForAI)
T
themez committed
a20e5c5cec52686ffbb55e77d1da44197fd202a4
Parent: 7882896