Skip to content

Fix CLAUDE.local.md and AGENTS.local.md not ignored during project render#14200

Merged
cderv merged 1 commit intomainfrom
fix/issue-14198
Mar 12, 2026
Merged

Fix CLAUDE.local.md and AGENTS.local.md not ignored during project render#14200
cderv merged 1 commit intomainfrom
fix/issue-14198

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Mar 12, 2026

When a project contains CLAUDE.local.md or AGENTS.local.md files, they are picked up as project input files and rendered to HTML output. These .local.md variants were missed when #13907 added ignore patterns for CLAUDE.md and AGENTS.md.

Fix

Extend the ignore patterns in both locations that #13907 touched:

  • projectHiddenIgnoreGlob in src/project/project-context.ts — adds **/CLAUDE.local.md and **/AGENTS.local.md globs
  • kBuiltInExcludes in src/extension/template.ts — adds CLAUDE.local.md and AGENTS.local.md entries

Existing tests for both project render and quarto use template are extended with .local.md assertions.

Fixes #14198

…template use

The .local.md variants of AI assistant config files were not excluded from
project file discovery or extension templates. Extends the ignore patterns
added in #13907 to also cover these files.

Fixes #14198
@cscheid cscheid added this to the v1.9 milestone Mar 12, 2026
Copy link
Collaborator

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Mar 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv cderv merged commit 45102d2 into main Mar 12, 2026
51 checks passed
@cderv cderv deleted the fix/issue-14198 branch March 12, 2026 17:04
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.

CLAUDE.local.md and AGENTS.local.md are not ignored during project render

3 participants