diff options
Diffstat (limited to 'renderer/src/components/ActionBar.tsx')
| -rw-r--r-- | renderer/src/components/ActionBar.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/renderer/src/components/ActionBar.tsx b/renderer/src/components/ActionBar.tsx index 22f34b4..d270583 100644 --- a/renderer/src/components/ActionBar.tsx +++ b/renderer/src/components/ActionBar.tsx | |||
| @@ -11,6 +11,7 @@ interface ActionBarProps { | |||
| 11 | onSubmit: () => void; | 11 | onSubmit: () => void; |
| 12 | onPermissionModeChange: (mode: PermissionMode) => void; | 12 | onPermissionModeChange: (mode: PermissionMode) => void; |
| 13 | disabled: boolean; | 13 | disabled: boolean; |
| 14 | modelName?: string | null; | ||
| 14 | } | 15 | } |
| 15 | 16 | ||
| 16 | export function ActionBar({ | 17 | export function ActionBar({ |
| @@ -23,6 +24,7 @@ export function ActionBar({ | |||
| 23 | onSubmit, | 24 | onSubmit, |
| 24 | onPermissionModeChange, | 25 | onPermissionModeChange, |
| 25 | disabled, | 26 | disabled, |
| 27 | modelName, | ||
| 26 | }: ActionBarProps) { | 28 | }: ActionBarProps) { |
| 27 | const totalTokens = tokenUsage.inputTokens + tokenUsage.outputTokens; | 29 | const totalTokens = tokenUsage.inputTokens + tokenUsage.outputTokens; |
| 28 | const maxTokens = 200000; | 30 | const maxTokens = 200000; |
| @@ -52,6 +54,13 @@ export function ActionBar({ | |||
| 52 | </span> | 54 | </span> |
| 53 | </div> | 55 | </div> |
| 54 | 56 | ||
| 57 | {/* ── Model badge ── */} | ||
| 58 | {modelName && ( | ||
| 59 | <span className="model-badge" title="Active model"> | ||
| 60 | {modelName} | ||
| 61 | </span> | ||
| 62 | )} | ||
| 63 | |||
| 55 | {phase === "implement" && ( | 64 | {phase === "implement" && ( |
| 56 | <label className="permission-toggle"> | 65 | <label className="permission-toggle"> |
| 57 | <input | 66 | <input |
