Fix wrong ForgeBox slug in BoxLang AI module error message#656
Merged
lmajano merged 2 commits intodevelopmentfrom May 3, 2026
Merged
Fix wrong ForgeBox slug in BoxLang AI module error message#656lmajano merged 2 commits intodevelopmentfrom
lmajano merged 2 commits intodevelopmentfrom
Conversation
…sage Agent-Logs-Url: https://github.com/ColdBox/coldbox-platform/sessions/10bca700-d41c-44b9-ad58-6b058dbd7144 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix wrong ForgeBox slug in BoxLang AI module error message
Fix wrong ForgeBox slug in BoxLang AI module error message
May 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the BoxLang AI module installation guidance shown by the toAi() / toMCP() routing guard in Router.cfc, intended to point users at the correct ForgeBox slug when the module is missing.
Changes:
- Update the missing-module guard to reference
bx-aiinstead ofbxai. - Update the thrown
ModuleNotFoundExceptionmessage to suggestbox install bx-ai.
| } | ||
|
|
||
| if ( !getModuleList().keyArray().findNoCase( "bxai" ) ) { | ||
| if ( !getModuleList().keyArray().findNoCase( "bx-ai" ) ) { |
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.
The
toAi()/toMCP()routing guard inRouter.cfcreferenced the slugbxai, which doesn't exist on ForgeBox — causing users who followed the suggested install command to hit a "slug does not exist" error.Change
system/web/routing/Router.cfc: corrected module lookup and error message frombxai→bx-ai// Before if ( !getModuleList().keyArray().findNoCase( "bxai" ) ) { throw( type : "ModuleNotFoundException", message: "The BoxLang AI module (bxai) is required for AI/MCP routing. Install it via: box install bxai" ); } // After if ( !getModuleList().keyArray().findNoCase( "bx-ai" ) ) { throw( type : "ModuleNotFoundException", message: "The BoxLang AI module (bx-ai) is required for AI/MCP routing. Install it via: box install bx-ai" ); }