mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
- Settings and Scheduled Tasks now open as special tabs in the TabBar, matching IDE conventions (closeable, icon-prefixed, persistent) - New Session directly creates a session with the current workDir - ChatInput shows DirectoryPicker before first message, locks after - Remove connection status from StatusBar (unnecessary noise) - ContentRouter routes by tab type instead of activeView - Settings page no longer has a back-button header Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { useSettingsStore } from '../../stores/settingsStore'
|
|
import { useSessionStore } from '../../stores/sessionStore'
|
|
import { useTabStore } from '../../stores/tabStore'
|
|
|
|
export function StatusBar() {
|
|
const { currentModel } = useSettingsStore()
|
|
const activeTabId = useTabStore((s) => s.activeTabId)
|
|
const sessions = useSessionStore((s) => s.sessions)
|
|
|
|
const activeSession = sessions.find((s) => s.id === activeTabId)
|
|
|
|
const projectName = activeSession?.projectPath
|
|
? activeSession.projectPath.split('-').filter(Boolean).pop() || ''
|
|
: ''
|
|
|
|
return (
|
|
<div className="h-[var(--statusbar-height)] flex items-center justify-between px-4 border-t border-[var(--color-border)] bg-[var(--color-surface-sidebar)] select-none text-[11px]">
|
|
<div className="flex items-center gap-3">
|
|
{projectName && (
|
|
<span className="text-[var(--color-text-secondary)] font-[var(--font-mono)]">{projectName}</span>
|
|
)}
|
|
</div>
|
|
|
|
<div className="flex items-center gap-4">
|
|
{currentModel && (
|
|
<span className="text-[var(--color-text-tertiary)] font-[var(--font-mono)]">
|
|
{currentModel.name}
|
|
</span>
|
|
)}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|