Printable idea sheet
single_sync_walk
reqlan rq/indexer/cache-reuse.rq:35
Katz 0.080
One native directory walk records base roots, `.rq` paths, and allowlisted code paths.
The walk does not read file bodies.
Startup, Refresh, and create-base each run that walk once. They do not call `findFiles` and they do not run a second native `syncWorkspace` walk.
Soft sync indexes the path list and skips unchanged mtimes.
Idle stale check stats paths already stored in SQLite. New files arrive from the file watcher.
The language server does not walk. The extension sends the base roots after the scan.
Overlapping callers share one in-flight scan.
CLI and MCP `sync_workspace` uses the same walk ( one pass, stop at nested bases ).
index_cache_reuse
soft_sync
scan_limits
- implementation
- scan.rs, scan-workspace.ts, index-service.ts, workspace-index.ts, session.rs
- status
- done
- tests
- scan.rs:one_walk_returns_bases_rq_and_code_and_skips_ignored_dirs, refresh-rediscovers-bases.test.ts:startup scan does not call findFiles
Interactive page: single_sync_walk