diff --git a/packages/cli/src/tui/app.tsx b/packages/cli/src/tui/app.tsx index 6f7db82..0fbd68c 100644 --- a/packages/cli/src/tui/app.tsx +++ b/packages/cli/src/tui/app.tsx @@ -77,6 +77,7 @@ export function TuiApp({ gatewayUrl, conversationId, sessionCookie }: TuiAppProp modelName={socket.modelName} providerName={socket.providerName} thinkingLevel={socket.thinkingLevel} + conversationId={socket.conversationId} /> ); diff --git a/packages/cli/src/tui/components/bottom-bar.tsx b/packages/cli/src/tui/components/bottom-bar.tsx index cccb50b..f7eac28 100644 --- a/packages/cli/src/tui/components/bottom-bar.tsx +++ b/packages/cli/src/tui/components/bottom-bar.tsx @@ -11,6 +11,7 @@ export interface BottomBarProps { modelName: string | null; providerName: string | null; thinkingLevel: string; + conversationId: string | undefined; } function formatTokens(n: number): string { @@ -36,6 +37,7 @@ export function BottomBar({ modelName, providerName, thinkingLevel, + conversationId, }: BottomBarProps) { const gatewayStatus = connected ? 'Connected' : connecting ? 'Connecting…' : 'Disconnected'; const gatewayColor = connected ? 'green' : connecting ? 'yellow' : 'red'; @@ -56,7 +58,17 @@ export function BottomBar({ - {/* Line 2: token stats ····· (provider) model */} + {/* Line 2: token stats ····· session id */} + + + + + {conversationId ? `session: ${conversationId.slice(0, 8)}` : 'no session'} + + + + + {/* Line 3: token stats ····· (provider) model */} {hasTokens ? (