fix(misc): suppress outdated disclaimer for unsupported AI agents with AGENTS.md - #36324
Merged
AgentEnder merged 1 commit intoJul 16, 2026
Conversation
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for nx-dev pending review.Visit the deploys page to approve it
|
4 tasks
Contributor
|
Would love to get it landed soon 🔜 |
Contributor
Author
|
Thanks @pumano! 🙌 Agreed |
Contributor
|
@leosvelperez could you please check it? really useful fix for me |
AgentEnder
approved these changes
Jul 15, 2026
Contributor
|
View your CI Pipeline Execution ↗ for commit 4105cd1
☁️ Nx Cloud last updated this comment at |
…NTS.md When the active AI agent is not supported by configure-ai-agents, do not show the outdated-config warning if AGENTS.md already contains Nx rules. Fixes nrwl#36264
ATKasem
force-pushed
the
fix/configure-ai-agents-disclaimer-unsupported-agent-36264
branch
from
July 15, 2026 19:46
6ac46cd to
4105cd1
Compare
Contributor
|
@AgentEnder format fixed |
Contributor
Author
|
@pumano hope this helps! 😁 |
Contributor
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
Since the failure was identified as flaky, the solution is to rerun CI. Because this branch comes from a fork, it is not possible for us to push directly, but you can rerun by pushing an empty commit:
git commit --allow-empty -m "chore: trigger rerun"
git push
🎓 Learn more about Self-Healing CI on nx.dev
Contributor
|
@AgentEnder @leosvelperez could you check this please? |
FrozenPandaz
pushed a commit
that referenced
this pull request
Jul 20, 2026
…h AGENTS.md (#36324) ## Current Behavior After a task run, Nx shows an "outdated configure-ai-agents" warning whenever any supported agent config is stale — even if the active agent isn't one `configure-ai-agents` can update (e.g. qwen) and `AGENTS.md` already has Nx rules. ## Expected Behavior Only show the outdated banner for the detected supported agent. For unsupported agents, skip it when `AGENTS.md` already contains the Nx rules block. ## Related Issue(s) Fixes #36264 Extracted `shouldPrintConfigureAiAgentsDisclaimer` from `run-command.ts`. Unit tests in `configure-ai-agents-disclaimer.spec.ts` (5 passing). (cherry picked from commit a7a1991)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current Behavior
After a task run, Nx shows an "outdated configure-ai-agents" warning whenever any supported agent config is stale — even if the active agent isn't one
configure-ai-agentscan update (e.g. qwen) andAGENTS.mdalready has Nx rules.Expected Behavior
Only show the outdated banner for the detected supported agent. For unsupported agents, skip it when
AGENTS.mdalready contains the Nx rules block.Related Issue(s)
Fixes #36264
Extracted
shouldPrintConfigureAiAgentsDisclaimerfromrun-command.ts. Unit tests inconfigure-ai-agents-disclaimer.spec.ts(5 passing).