diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 14751a3..17d1972 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -316,6 +316,10 @@ export default function App({ >(null); const [llmConfig, setLlmConfig] = useState(null); const [agentName, setAgentName] = useState(null); + const currentModelLabel = + llmConfig?.model_endpoint_type && llmConfig?.model + ? `${llmConfig.model_endpoint_type}/${llmConfig.model}` + : (llmConfig?.model ?? null); // Agent selector state const [agentSelectorOpen, setAgentSelectorOpen] = useState(false); @@ -2737,6 +2741,7 @@ Plan file path: ${planFilePath}`; interruptRequested={interruptRequested} agentId={agentId} agentName={agentName} + currentModel={currentModelLabel} /> {/* Model Selector - conditionally mounted as overlay */} diff --git a/src/cli/components/InputRich.tsx b/src/cli/components/InputRich.tsx index 930104d..d84df5e 100644 --- a/src/cli/components/InputRich.tsx +++ b/src/cli/components/InputRich.tsx @@ -6,6 +6,7 @@ import { useEffect, useRef, useState } from "react"; import type { PermissionMode } from "../../permissions/mode"; import { permissionMode } from "../../permissions/mode"; import { settingsManager } from "../../settings-manager"; +import { getVersion } from "../../version"; import { useTerminalWidth } from "../hooks/useTerminalWidth"; import { colors } from "./colors"; import { InputAssist } from "./InputAssist"; @@ -14,6 +15,7 @@ import { ShimmerText } from "./ShimmerText"; // Type assertion for ink-spinner compatibility const Spinner = SpinnerLib as ComponentType<{ type?: string }>; +const appVersion = getVersion(); // Only show token count when it exceeds this threshold const COUNTER_VISIBLE_THRESHOLD = 1000; @@ -32,6 +34,7 @@ export function Input({ interruptRequested = false, agentId, agentName, + currentModel, }: { visible?: boolean; streaming: boolean; @@ -46,6 +49,7 @@ export function Input({ interruptRequested?: boolean; agentId?: string; agentName?: string | null; + currentModel?: string | null; }) { const [value, setValue] = useState(""); const [escapePressed, setEscapePressed] = useState(false); @@ -504,7 +508,9 @@ export function Input({ ) : ( Press / for commands or @ for files )} - https://discord.gg/letta + + {`Letta Code v${appVersion} [${currentModel ?? "unknown"}]`} +