| 1 | // SessionMeta is one saved session for the history panel. |
| 2 | export interface SessionMeta { |
| 3 | source?: import("../generated/desktopContract.generated").SessionSourceRef; |
| 4 | historical?: boolean; |
| 5 | historicalBranch?: boolean; |
| 6 | preparationStatus?: string; |
| 7 | path: string; |
| 8 | sessionId?: string; |
| 9 | hostId?: string; |
| 10 | codec?: string; |
| 11 | error?: string; |
| 12 | preview: string; |
| 13 | title?: string; // user-chosen name; falls back to preview when empty |
| 14 | turns: number; |
| 15 | turnsState?: "unknown" | "valid" | "corrupt" | string; |
| 16 | createdAt: number; // unix milliseconds |
| 17 | lastActivityAt: number; // unix milliseconds |
| 18 | modTime: number; // compatibility alias for lastActivityAt |
| 19 | deletedAt?: number; // unix milliseconds, present for trashed sessions |
| 20 | current: boolean; |
| 21 | open: boolean; |
| 22 | scope?: string; // "project" | "global"; empty for legacy → treated as "global" |
| 23 | workspaceRoot?: string; |
| 24 | topicId?: string; |
| 25 | topicTitle?: string; |
| 26 | kind?: "session" | "channel" | string; |
| 27 | channel?: string; |
| 28 | channelLabel?: string; |
| 29 | remoteId?: string; |
| 30 | chatType?: string; |
| 31 | userId?: string; |
| 32 | threadId?: string; |
| 33 | sessionSource?: string; |
| 34 | recovered?: boolean; // created by conflict recovery, including a continued branch |
| 35 | recoveryCopy?: boolean; // actual branch content is unchanged and covered by its parent |
| 36 | recoveryGroupId?: string; |
| 37 | recoveryRole?: string; // normal|covered_copy|adopted|diverged |
| 38 | recoveryCanonical?: boolean; |
| 39 | versionKind?: "normal" | "recovery" | "subagent" | string; |
| 40 | versionState?: "active" | "pending" | "resolved" | "trashed" | string; |
| 41 | parentVersionId?: string; |
| 42 | } |
| 43 |