feat(chat): open cost modal from token usage

This commit is contained in:
Simos Mikelatos
2026-06-05 17:33:22 +00:00
parent beaa2d2533
commit f238050b85
4 changed files with 32 additions and 8 deletions

View File

@@ -178,6 +178,7 @@ function ChatInterface({
isInputFocused: _isInputFocused,
commandModalPayload,
closeCommandModal,
showCostModal,
} = useChatComposerState({
selectedProject,
selectedSession,
@@ -368,6 +369,7 @@ function ChatInterface({
permissionMode={permissionMode}
onModeSwitch={cyclePermissionMode}
tokenBudget={tokenBudget}
onShowTokenUsage={showCostModal}
slashCommandsCount={slashCommandsCount}
onToggleCommandMenu={handleToggleCommandMenu}
hasInput={Boolean(input.trim())}