(sessionId: string)
| 212 | return persisted |
| 213 | } |
| 214 | function getStoredMetadata(sessionId: string): Record<string, unknown> | undefined { |
| 215 | const store = (engine as unknown as { store: Store }).store |
| 216 | const row = store.sessions.getSession(sessionId) |
| 217 | if (!row) return undefined |
| 218 | return row.metadata as unknown as Record<string, unknown> |
| 219 | } |
| 220 | |
| 221 | it('sets cursorMigrationState=in_progress before the migrator runs and clears it on failure', async () => { |
| 222 | const session = insertLegacy('session-flag-fail') |
no test coverage detected