diff --git a/src/renderer/src/components/status-bar/StatusBar.tsx b/src/renderer/src/components/status-bar/StatusBar.tsx index db022b7d1..968dc0838 100644 --- a/src/renderer/src/components/status-bar/StatusBar.tsx +++ b/src/renderer/src/components/status-bar/StatusBar.tsx @@ -46,6 +46,7 @@ import { ResourceUsageStatusSegment } from './ResourceUsageStatusSegment' import { PortsStatusSegment } from './PortsStatusSegment' import { isStatusBarItemAvailable } from './status-bar-agent-gating' import { isProviderConfigured } from './status-bar-provider-visibility' +import { StatusBarUsageEmptyCta } from './StatusBarUsageEmptyCta' import { shouldOpenStatusBarContextMenu } from './status-bar-context-menu-policy' import { PetStatusSegment } from './PetStatusSegment' import { TOGGLE_FLOATING_TERMINAL_EVENT } from '@/lib/floating-terminal' @@ -1621,6 +1622,17 @@ function StatusBarInner({ floatingTerminalOpen }: StatusBarProps): React.JSX.Ele floatingTerminalEnabled && floatingTerminalTriggerLocation === 'status-bar' const anyVisible = showClaude || showCodex || showGemini || showOpencodeGo || showKimi || showResourceUsage + // Why: a brand-new user with no provider configured would otherwise see an + // empty left side of the status bar and wonder what's missing. The CTA + // names the surface and points to the setup path. Detection is on + // configuration (not user toggles) so users who intentionally hid a + // provider's bar don't get the teaching prompt back. + const isEmptyUsageState = + !isProviderConfigured(claude) && + !isProviderConfigured(codex) && + !isProviderConfigured(gemini) && + !isProviderConfigured(opencodeGo) && + !isProviderConfigured(kimi) const anyFetching = claude?.status === 'fetching' || codex?.status === 'fetching' || @@ -1656,33 +1668,41 @@ function StatusBarInner({ floatingTerminalOpen }: StatusBarProps): React.JSX.Ele }} >
- {showClaude && } - {showCodex && } - {showGemini && ( - + {isEmptyUsageState ? ( + + ) : ( + <> + {showClaude && ( + + )} + {showCodex && } + {showGemini && ( + + )} + {showOpencodeGo && ( + + )} + {showKimi && ( + + )} + )} - {showOpencodeGo && ( - - )} - {showKimi && ( - - )} - {anyVisible && ( + {anyVisible && !isEmptyUsageState && ( + + +
+
Agent usage limits
+

+ Connect your AI provider accounts to see their usage in real time and easily switch + between accounts. +

+ {/* Why: name the full provider set so the feature doesn't read as + support for just one agent. */} +
+ Supports: + + + + + +
+ +
+
+ + ) +}