(sessionId: string)
| 503 | * Load session by ID |
| 504 | */ |
| 505 | export function loadSessionById(sessionId: string): Session | null { |
| 506 | try { |
| 507 | const session = historyManager.load(sessionId); |
| 508 | return session; |
| 509 | } catch (error) { |
| 510 | logger.error("Error loading session by ID:", error); |
| 511 | return null; |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Load an existing session by ID or create a new one with that ID. |
no test coverage detected