Skip to content

fix: agent files not loading from agents folder#1473

Merged
aaronpowell merged 1 commit intogithub:stagedfrom
AezanPathan:fix-agent
Apr 28, 2026
Merged

fix: agent files not loading from agents folder#1473
aaronpowell merged 1 commit intogithub:stagedfrom
AezanPathan:fix-agent

Conversation

@AezanPathan
Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description

Fix agent loading when ./agents points to a folder instead of a file.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

Additional Notes

  • Keeps changes minimal and consistent with existing code style.
  • No changes to plugin structure or specification.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings April 22, 2026 18:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

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

what scenario were you hitting this via?

@AezanPathan
Copy link
Copy Markdown
Contributor Author

I ran into this on the plugins page.

When a plugin has ./agents in its config, the items do show up in the list, but clicking on them doesn’t work.

It looks like the UI is trying to fetch ./agents as a file, but since that’s actually a folder it ends up with a 404.

I also saw this in the console:
Failed to fetch ./agents

Added a screenshot for reference.

image

@aaronpowell aaronpowell merged commit 8aa465d into github:staged Apr 28, 2026
14 of 16 checks passed
@aaronpowell
Copy link
Copy Markdown
Contributor

Great catch - I need to get some better validation around the website.

fizznix pushed a commit to fizznix/awesome-copilot that referenced this pull request Apr 29, 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.

3 participants