Skip to content

fix(misc): suppress outdated disclaimer for unsupported AI agents with AGENTS.md - #36324

Merged
AgentEnder merged 1 commit into
nrwl:masterfrom
ATKasem:fix/configure-ai-agents-disclaimer-unsupported-agent-36264
Jul 16, 2026
Merged

fix(misc): suppress outdated disclaimer for unsupported AI agents with AGENTS.md#36324
AgentEnder merged 1 commit into
nrwl:masterfrom
ATKasem:fix/configure-ai-agents-disclaimer-unsupported-agent-36264

Conversation

@ATKasem

@ATKasem ATKasem commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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).

@ATKasem
ATKasem requested a review from a team as a code owner July 13, 2026 20:42
@ATKasem
ATKasem requested a review from leosvelperez July 13, 2026 20:42
@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4105cd1

@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4105cd1

@pumano

pumano commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Would love to get it landed soon 🔜

@ATKasem

ATKasem commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @pumano! 🙌 Agreed

@pumano

pumano commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@leosvelperez could you please check it? really useful fix for me

@nx-cloud

nx-cloud Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 4105cd1

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 36m 47s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 5s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 1m 2s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 18s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-16 03:59:36 UTC

@AgentEnder AgentEnder changed the title fix(ai): suppress outdated disclaimer for unsupported agents with AGENTS.md fix(misc): suppress outdated disclaimer for unsupported AI agents with AGENTS.md Jul 15, 2026
nx-cloud[bot]

This comment was marked as outdated.

…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
ATKasem force-pushed the fix/configure-ai-agents-disclaimer-unsupported-agent-36264 branch from 6ac46cd to 4105cd1 Compare July 15, 2026 19:46
@pumano

pumano commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@AgentEnder format fixed

@ATKasem

ATKasem commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@pumano hope this helps! 😁

@nx-cloud nx-cloud Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Nx Cloud View detailed reasoning in Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

@pumano

pumano commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@AgentEnder @leosvelperez could you check this please?

@AgentEnder
AgentEnder merged commit a7a1991 into nrwl:master Jul 16, 2026
18 of 19 checks passed
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)
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.

Warning about not configured agent, while non standard agent used

3 participants