| 10 | const PERSISTENCE_ENABLED_KEY = 'opcode_tab_persistence_enabled'; |
| 11 | |
| 12 | interface SerializedTab { |
| 13 | id: string; |
| 14 | type: Tab['type']; |
| 15 | title: string; |
| 16 | sessionId?: string; |
| 17 | agentRunId?: string; |
| 18 | claudeFileId?: string; |
| 19 | initialProjectPath?: string; |
| 20 | projectPath?: string; |
| 21 | status: Tab['status']; |
| 22 | hasUnsavedChanges: boolean; |
| 23 | order: number; |
| 24 | icon?: string; |
| 25 | createdAt: string; |
| 26 | updatedAt: string; |
| 27 | // Note: We don't persist sessionData or agentData as they're complex objects |
| 28 | } |
| 29 | |
| 30 | export class TabPersistenceService { |
| 31 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected