fix: keep only BYOK triangle highlighted in footer

Render the model bracket text and model name with normal dim styling and apply provider color only to the BYOK triangle indicator so footer emphasis matches prior behavior without changing footer layout stability.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
This commit is contained in:
cpacker
2026-02-09 15:16:17 -08:00
parent faa022c317
commit 00c2a98e3e

View File

@@ -146,8 +146,8 @@ const InputFooter = memo(function InputFooter({
);
const maxAgentChars = Math.max(10, Math.floor(rightColumnWidth * 0.45));
const displayAgentName = truncateEnd(agentName || "Unnamed", maxAgentChars);
const byokFlag = isByokProvider ? " ▲" : "";
const reservedChars = displayAgentName.length + byokFlag.length + 4;
const byokExtraChars = isByokProvider ? 2 : 0; // " ▲"
const reservedChars = displayAgentName.length + byokExtraChars + 4;
const maxModelChars = Math.max(8, rightColumnWidth - reservedChars);
const displayModel = truncateEnd(currentModel ?? "unknown", maxModelChars);
@@ -186,18 +186,17 @@ const InputFooter = memo(function InputFooter({
) : (
<Text wrap="truncate-end">
<Text color={colors.footer.agentName}>{displayAgentName}</Text>
<Text
dimColor={!isByokProvider}
color={
isByokProvider
? isOpenAICodexProvider
? "#74AA9C"
: "yellow"
: undefined
}
>
{` [${displayModel}${byokFlag}]`}
</Text>
<Text dimColor={!isByokProvider}>{" ["}</Text>
<Text dimColor={!isByokProvider}>{displayModel}</Text>
{isByokProvider ? (
<>
<Text> </Text>
<Text color={isOpenAICodexProvider ? "#74AA9C" : "yellow"}>
</Text>
</>
) : null}
<Text dimColor={!isByokProvider}>{"]"}</Text>
</Text>
)}
</Box>