@devries-cameron20 / t3code Mirror · read-only / commits / f559fe0ba6
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 11:30 UTC

fix(web): show context meter in compact composer (#9430)

Guilherme Vieira committed Sep 4, 2026 at 06:25 UTC f559fe0ba6fb5950bd14a2404f10b9c94b33f696
1 file changed +7 -4
apps/web/src/components/chat/ChatComposer.tsx
+7 -4
@@ -1057,7 +1057,6 @@ const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryActions(
1057 hasSendableContent: boolean;
1058 preserveComposerFocusOnPointerDown?: boolean;
1059 showSendWhileRunning?: boolean;
1060 - showSecondaryStatus: boolean;
1060 onPreviousPendingQuestion: () => void;
1061 onInterrupt: () => void;
1062 onImplementPlanInNewThread: () => void;
@@ -1067,7 +1066,7 @@ const ComposerFooterPrimaryActions = memo(function ComposerFooterPrimaryActions(
1066 }) {
1067 return (
1068 <>
1070 - {props.showSecondaryStatus && props.activeContextWindow ? (
1069 + {props.activeContextWindow ? (
1070 <ContextWindowMeter
1071 usage={props.activeContextWindow}
1072 modelDisplayName={props.activeThreadModelDisplayName}
@@ -5323,7 +5322,12 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
5322 className={cn(
5323 "relative",
5324 isComposerResting && "flex min-w-0 items-center gap-1",
5326 - isComposerResting && (showComposerAttachAction ? "pr-20" : "pr-12"),
5325 + isComposerResting &&
5326 + (settings.contextWindowMeterEnabled && activeContextWindow
5327 + ? "pr-28"
5328 + : showComposerAttachAction
5329 + ? "pr-20"
5330 + : "pr-12"),
5331 )}
5332 >
5333 <ComposerPromptEditor
@@ -5514,7 +5518,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
5518 hasSendableContent={composerSendState.hasSendableContent}
5519 preserveComposerFocusOnPointerDown={isMobileViewport || isComposerResting}
5520 showSendWhileRunning={isMobileViewport}
5517 - showSecondaryStatus={!isComposerResting}
5521 onPreviousPendingQuestion={onPreviousActivePendingUserInputQuestion}
5522 onInterrupt={handleInterruptPrimaryAction}
5523 onImplementPlanInNewThread={handleImplementPlanInNewThreadPrimaryAction}