The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style: satisfy curly + padding-line eslint rules in usage comparator
Teknium4d1ef7fbd2f2
diff --git a/ui-tui/src/app/createGatewayEventHandler.ts b/ui-tui/src/app/createGatewayEventHandler.tsindex a29f0126cd0..ce584c20fe9 100644--- a/ui-tui/src/app/createGatewayEventHandler.ts+++ b/ui-tui/src/app/createGatewayEventHandler.ts@@ -50,15 +50,23 @@ const normalizeVoiceSubmitMode = (value: unknown): VoiceSubmitMode =>// be silently dropped from the comparison.export const usageChanged = (prev: Usage, next: Usage): boolean => {const keys = new Set([...Object.keys(prev), ...Object.keys(next)]) as Set<keyof Usage>+for (const key of keys) {- if (prev[key] !== next[key]) return true+ if (prev[key] !== next[key]) {+ return true+ }}+return false}export const mergeUsageStable = (prev: Usage, patch: Partial<Usage> | undefined): Usage => {- if (!patch) return prev+ if (!patch) {+ return prev+ }+const merged: Usage = { ...prev, ...patch }+return usageChanged(prev, merged) ? merged : prev}