Skip to content

Fix coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents)#67

Merged
lmajano merged 3 commits intodevelopmentfrom
copilot/fix-coldbox-ai-directory-checks
May 8, 2026
Merged

Fix coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents)#67
lmajano merged 3 commits intodevelopmentfrom
copilot/fix-coldbox-ai-directory-checks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

  • Fix models/AIService.cfc diagnose() to use static.AI_DIR (.agents) instead of /.ai
  • Fix commands/coldbox/ai/uninstall.cfc to use .agents directory instead of .ai
  • Update user-facing messages referencing .ai to reference .agents
  • Add changelog entry under [Unreleased] > Fixed
  • Run validation (code review ✅, CodeQL ✅)

Copilot AI changed the title [WIP] Fix directory checks for ColdBox AI commands Fix coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents) May 6, 2026
Copilot finished work on behalf of lmajano May 6, 2026 15:47
Copilot AI requested a review from lmajano May 6, 2026 15:47
@lmajano
Copy link
Copy Markdown
Member

lmajano commented May 6, 2026

@copilot Add this to the changelog

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 6, 2026

@copilot Add this to the changelog

Added a Fixed entry under [Unreleased] in changelog.md in commit 2545364.

Copilot finished work on behalf of lmajano May 6, 2026 20:11
@lmajano lmajano marked this pull request as ready for review May 8, 2026 12:56
Copilot AI review requested due to automatic review settings May 8, 2026 12:56
@lmajano lmajano merged commit b400e59 into development May 8, 2026
3 checks passed
@lmajano lmajano deleted the copilot/fix-coldbox-ai-directory-checks branch May 8, 2026 12:57
Copy link
Copy Markdown

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.

Pull request overview

This PR fixes AI command behavior where coldbox ai doctor and coldbox ai uninstall were checking the legacy /.ai directory instead of the standardized /.agents directory used by the current AI integration.

Changes:

  • Updated AIService.diagnose() to check the AI installation directory using static.AI_DIR (.agents).
  • Updated coldbox ai uninstall to look for and reference .agents instead of .ai.
  • Added a changelog entry under [Unreleased] → Fixed documenting the correction.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
models/AIService.cfc Fixes AI install directory detection in diagnose() by using the centralized static.AI_DIR constant.
commands/coldbox/ai/uninstall.cfc Updates uninstall path/messages to .agents and adjusts user-facing text accordingly.
changelog.md Documents the bugfix under the Unreleased “Fixed” section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

var aiDirectory = "#arguments.directory#/.ai"
var aiDirectory = "#arguments.directory#/.agents"
Comment on lines 36 to 39
if ( !arguments.force ) {
print.line()
printWarn( "⚠️ This will permanently delete the .ai directory and all AI configuration." )
printWarn( "⚠️ This will permanently delete the .agents directory and all AI configuration." )
print.line()
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.

coldbox ai doctor and coldbox ai uninstall check for .ai directory but coldbox ai install uses .agents

3 participants