Fix coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents)#67
Merged
lmajano merged 3 commits intodevelopmentfrom May 8, 2026
Conversation
…f .ai Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/34266c38-e042-4cf3-bd14-32c40280e8a6 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix directory checks for ColdBox AI commands
Fix May 6, 2026
coldbox ai doctor and coldbox ai uninstall checking wrong directory (.ai vs .agents)
Member
|
@copilot Add this to the changelog |
Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/74bcab47-6579-4cb3-baed-75661c6e28e9 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com>
Contributor
Author
Added a |
There was a problem hiding this comment.
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 usingstatic.AI_DIR(.agents). - Updated
coldbox ai uninstallto look for and reference.agentsinstead 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() |
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.
models/AIService.cfcdiagnose()to usestatic.AI_DIR(.agents) instead of/.aicommands/coldbox/ai/uninstall.cfcto use.agentsdirectory instead of.ai.aito reference.agents[Unreleased] > Fixed