MCPcopy Create free account
hub / github.com/winfunc/opcode / Tab

Interface Tab

src/contexts/TabContext.tsx:5–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { SessionPersistenceService } from '@/services/sessionPersistence';
4
5export 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
24interface TabContextType {
25 tabs: Tab[];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected