(prefix: string)
| 326 | let pendingFocusReturn = false |
| 327 | |
| 328 | function generateId(prefix: string): string { |
| 329 | return `${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 8)}` |
| 330 | } |
| 331 | |
| 332 | function ensureSessionState(params: EnsureAIChatSessionParams): { chatKey: string; state: AIChatSessionState } { |
| 333 | const chatKey = buildAIChatKey(params) |
no test coverage detected