Skip to content

fix: close remaining incremental read and watch validation gaps - #269

Merged
mindsocket merged 3 commits into
mainfrom
fix/259-incremental-validation-gaps
Nov 30, 2026
Merged

mindsocket merged 3 commits into
mainfrom
fix/259-incremental-validation-gaps

Conversation

@mindsocket

Copy link
Copy Markdown
Owner

Closes #259

Summary

Addresses the 4 remaining items from #259 (items #4, #5, and #6 were already resolved in #256 and #257):

  1. Forward validate CLI options in watchValidate (src/index.ts, src/commands/validate.ts): --watch now passes --semantic, --no-cache, --rejudge, --cached-only, --depth, --include-gated, --rule-filter, and --json through to every watch validation run.
  2. Ignore dot-prefixed paths in partial readSpaceDirectory (src/plugins/markdown/read-space.ts): options.files now skips any path with a dot-prefixed segment (e.g. .obsidian/, .trash/, .git/, .sctx/), matching full readSpace (fast-glob default dot: false).
  3. Serialize concurrent watchValidate change events (src/commands/validate.ts): Extracted createWatchSession with a promise queue so overlapping chokidar events (such as unlink + add on rename) cannot race on currentReadResult.
  4. Expose cache options on PluginContext.callbacks.validate (src/plugins/util.ts): Added 'cacheMode' | 'cacheDir' to the callback's Pick<ValidateSpaceOptions, ...> (src/render/render.ts already spreads validateOptions into validateSpace).

Verification

  • bun test tests/read/refresh-read-result.test.ts tests/validate/watch-validate.test.ts (14 pass, 0 fail)
  • lefthook pre-push (check-plugin-version, pushed-tree full test + hook suites, review-check)

@claude

claude Bot commented Nov 30, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Comment thread src/commands/validate.ts Resolved
@mindsocket
mindsocket force-pushed the fix/259-incremental-validation-gaps branch from d2bf032 to 6b12f7f Compare November 30, 2026 13:11
Comment thread src/commands/validate.ts Resolved
@mindsocket
mindsocket force-pushed the fix/259-incremental-validation-gaps branch from 6b12f7f to ddd8885 Compare November 30, 2026 13:28
@mindsocket
mindsocket merged commit 66c45ec into main Nov 30, 2026
2 checks passed
@mindsocket
mindsocket deleted the fix/259-incremental-validation-gaps branch November 30, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-up to #183: remaining architecture and API gaps in incremental reads and cached validation

1 participant