Skip to content

fix: guard invalid batch size settings - #203

Merged
vycdev merged 2 commits into
vycdev:developfrom
vycdev2:fix/guard-invalid-batch-size
Aug 10, 2026
Merged

fix: guard invalid batch size settings#203
vycdev merged 2 commits into
vycdev:developfrom
vycdev2:fix/guard-invalid-batch-size

Conversation

@vycdev2

@vycdev2 vycdev2 commented Aug 10, 2026

Copy link
Copy Markdown

Summary

  • Add a shared positive-integer normalizer for Todo-file and JavaScript embedded scan batches.
  • Reject invalid batch-size settings in the extension configuration schema.
  • Prevent zero or fractional settings from stalling scans or creating partial batches.

Verification

  • TS_NODE_TRANSPILE_ONLY=1 npx mocha --no-config -r ts-node/register test/batch-size.spec.ts --exit (2 passing)
  • npm test (136 passing)
  • npm run compile (passed)
  • npm run format:check (passed)
  • git diff --check (passed)

Risk

  • Low: valid positive settings retain their behavior; invalid values fall back to 50 and fractional values are floored.

This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.

@vycdev
vycdev merged commit 5458a9f into vycdev:develop Aug 10, 2026
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.

2 participants