()
| 164 | * Resets the session entirely (called on history clear). |
| 165 | */ |
| 166 | export function resetSession(): void { |
| 167 | session = null; |
| 168 | const filePath = sessionPath(); |
| 169 | if (filePath && existsSync(filePath)) { |
| 170 | try { unlinkSync(filePath); } catch { /* ignore */ } |
| 171 | } |
| 172 | } |
no test coverage detected