mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-01 02:01:24 +00:00
Aborting a graph stream mid-flight leaves a small lbug.wal file. Every subsequent open then fails on a missing lbug.shadow, and the web UI permanently shows "Graph not loaded" until the WAL is manually removed. This script reads ~/.gitnexus/registry.json, finds WAL files at or below the header-only size threshold (4 KB), backs them up to ~/.gitnexus/wal-backups/, and unlinks them. It refuses to run while `gitnexus analyze` is in flight to avoid truncating a real transaction. Usage: node gitnexus/scripts/heal-stale-wal.mjs # heal all node gitnexus/scripts/heal-stale-wal.mjs --check # dry run |
||
|---|---|---|
| .. | ||
| bench | ||
| spikes | ||
| assert-publish-grammar-coverage.cjs | ||
| bench-scope-resolution.ts | ||
| build-tree-sitter-grammars.cjs | ||
| build.js | ||
| cross-platform-shard.ts | ||
| cross-platform-tests.ts | ||
| ensure-fts.ts | ||
| heal-stale-wal.mjs | ||
| install-duckdb-extension.mjs | ||
| run-cross-platform.ts | ||
| shard-arg.ts | ||
| sync-plugin-manifests.mjs | ||