| 3 | import { SessionPersistenceService } from '@/services/sessionPersistence'; |
| 4 | |
| 5 | export interface Tab { |
| 6 | id: string; |
| 7 | type: 'chat' | 'agent' | 'agents' | 'projects' | 'usage' | 'mcp' | 'settings' | 'claude-md' | 'claude-file' | 'agent-execution' | 'create-agent' | 'import-agent'; |
| 8 | title: string; |
| 9 | sessionId?: string; // for chat tabs |
| 10 | sessionData?: any; // for chat tabs - stores full session object |
| 11 | agentRunId?: string; // for agent tabs |
| 12 | agentData?: any; // for agent-execution tabs |
| 13 | claudeFileId?: string; // for claude-file tabs |
| 14 | initialProjectPath?: string; // for chat tabs |
| 15 | projectPath?: string; // for agent-execution tabs |
| 16 | status: 'active' | 'idle' | 'running' | 'complete' | 'error'; |
| 17 | hasUnsavedChanges: boolean; |
| 18 | order: number; |
| 19 | icon?: string; |
| 20 | createdAt: Date; |
| 21 | updatedAt: Date; |
| 22 | } |
| 23 | |
| 24 | interface TabContextType { |
| 25 | tabs: Tab[]; |
nothing calls this directly
no outgoing calls
no test coverage detected