Skip to content

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

Merged
lmajano merged 3 commits into
developmentfrom
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 into
developmentfrom
copilot/fix-coldbox-ai-directory-checks

Conversation

CopilotAI commented May 6, 2026

Copy link
Copy Markdown
Contributor
  • Fix models/AIService.cfcdiagnose() 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 ✅)

CopilotAI changed the title [WIP] Fix directory checks for ColdBox AI commandsFix coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents)May 6, 2026
CopilotAI requested a review from lmajanoMay 6, 2026 15:47
@lmajano

Copy link
Copy Markdown
Member

@copilot Add this to the changelog

CopilotAI commented May 6, 2026

Copy link
Copy Markdown
ContributorAuthor

@copilot Add this to the changelog

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

@lmajano
lmajano marked this pull request as ready for review May 8, 2026 12:56
CopilotAI review requested due to automatic review settings May 8, 2026 12:56
@lmajano
lmajano merged commit b400e59 into developmentMay 8, 2026
3 checks passed
@lmajano
lmajano deleted the copilot/fix-coldbox-ai-directory-checks branch May 8, 2026 12:57

CopilotAI left a comment

Copy link
Copy Markdown

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.

FileDescription
models/AIService.cfcFixes AI install directory detection in diagnose() by using the centralized static.AI_DIR constant.
commands/coldbox/ai/uninstall.cfcUpdates uninstall path/messages to .agents and adjusts user-facing text accordingly.
changelog.mdDocuments 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 freeto 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

@lmajano