Real fix: - events-db: add closeDb() to release the better-sqlite3 file lock on activity-events.db. Without it, Windows callers cannot rmSync the AO base dir while the connection is open. Test teardowns in test-utils.ts and plugin-integration.test.ts now call closeDb() before rm to fix 4 EBUSY failures. Test-only: - tmux-utils.test.ts: normalize backslashes to forward slashes in two resolveTmuxSession 'hash-prefix' tests; matches the pattern already used by sibling tests in the same file. - dashboard.test.ts, script-runner.test.ts, update-script.test.ts: add it.skipIf(process.platform === 'win32') to four tests that assert Unix-specific behavior (lsof cwd matching, posix script paths, ao-update.sh smoke). Each file already uses the same skip pattern for sibling tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| direct-terminal-ws.ts | ||
| mux-websocket.ts | ||
| start-all.ts | ||
| terminal-observability.ts | ||
| tmux-utils.ts | ||