Skip to content

fix(scan): Skip changed-line budget for explicit file scans#422

Merged
dcramer merged 1 commit into
mainfrom
dcramer/fix-explicit-file-target-budget
Jul 2, 2026
Merged

fix(scan): Skip changed-line budget for explicit file scans#422
dcramer merged 1 commit into
mainfrom
dcramer/fix-explicit-file-target-budget

Conversation

@dcramer

@dcramer dcramer commented Jul 2, 2026

Copy link
Copy Markdown
Member

Explicit local file-target scans now ignore maxChangedLines, so a user-supplied target list is not partially skipped by the PR/diff changed-line safety budget. PR and diff-based scans still enforce that budget, and explicit file-target scans still enforce the existing file count, file size, ignore, generated-file, and chunking limits.

The regression coverage exercises explicit file targets bypassing maxChangedLines, verifies maxFiles still applies, and checks trigger path filtering preserves the explicit-target context marker. The scan config docs now describe maxChangedLines as a PR/diff scan budget.

Fixes #419

Explicit local file-target runs now bypass maxChangedLines because the user already selected the files to scan. PR and diff-based runs still enforce that budget, and the existing file count and file size limits continue to apply.

Fixes #419
Co-Authored-By: GPT-5 Codex <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review July 2, 2026 17:12
@dcramer dcramer merged commit 9ee3458 into main Jul 2, 2026
22 checks passed
@dcramer dcramer deleted the dcramer/fix-explicit-file-target-budget branch July 2, 2026 17:12
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.

Do not apply PR changed-line scan budget to explicit file-target runs

1 participant