From 9a93b81a1caa4070c4e410b0faf24b303f53e1c5 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Sun, 24 May 2026 01:48:26 -0700 Subject: [PATCH] [eric] picker: drop Fits/Tight/Too small badges, show only context length --- .../src/app/pages/AgentChat/ChatInput.tsx | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/frontend/src/app/pages/AgentChat/ChatInput.tsx b/frontend/src/app/pages/AgentChat/ChatInput.tsx index 4e5b5992..273907ce 100644 --- a/frontend/src/app/pages/AgentChat/ChatInput.tsx +++ b/frontend/src/app/pages/AgentChat/ChatInput.tsx @@ -812,12 +812,6 @@ const ChatInput = forwardRef(({ onSend, disabled, mode, ); const imageSupported = ['anthropic', 'gemini', 'gemini-cli', 'openai', 'openrouter'].includes(currentModelApi); - const pendingPayloadEstimate = useMemo(() => { - const history = Math.max(0, contextEstimate?.used ?? 0); - const filesSum = contextPaths.reduce((acc, cp) => acc + (cp.tokens || 0), 0); - return history + (sessionFrameworkOverhead || 0) + filesSum; - }, [contextEstimate, contextPaths, sessionFrameworkOverhead]); - const pendingKinds = useMemo(() => { const set = new Set(); for (const cp of contextPaths) { @@ -2267,9 +2261,6 @@ const ChatInput = forwardRef(({ onSend, disabled, mode, const cannotPdf = pendingKinds.has('pdf') && !optSupportsPdf; const cannotImg = pendingKinds.has('image') && !optSupportsImage; if (!win) return null; - const fits = pendingPayloadEstimate > 0 && win >= Math.floor(pendingPayloadEstimate * 1.1); - const tight = pendingPayloadEstimate > 0 && !fits && win >= pendingPayloadEstimate; - const tooSmall = pendingPayloadEstimate > 0 && win < pendingPayloadEstimate; return ( {(cannotPdf || cannotImg) && ( @@ -2277,21 +2268,6 @@ const ChatInput = forwardRef(({ onSend, disabled, mode, No {cannotPdf ? 'PDF' : 'image'} )} - {!cannotPdf && !cannotImg && fits && ( - - Fits - - )} - {!cannotPdf && !cannotImg && tight && ( - - Tight - - )} - {!cannotPdf && !cannotImg && tooSmall && ( - - Too small - - )} {formatTokenCount(win)}