Skip to content

Fix wrong ForgeBox slug in BoxLang AI module error message#656

Merged
lmajano merged 2 commits intodevelopmentfrom
copilot/fix-forgebox-slug-boxlang-ai-module
May 3, 2026
Merged

Fix wrong ForgeBox slug in BoxLang AI module error message#656
lmajano merged 2 commits intodevelopmentfrom
copilot/fix-forgebox-slug-boxlang-ai-module

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 3, 2026

The toAi()/toMCP() routing guard in Router.cfc referenced the slug bxai, 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 from bxaibx-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"
    );
}

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
Copilot finished work on behalf of lmajano May 3, 2026 19:58
Copilot AI requested a review from lmajano May 3, 2026 19:58
@lmajano lmajano marked this pull request as ready for review May 3, 2026 19:59
Copilot AI review requested due to automatic review settings May 3, 2026 19:59
@lmajano lmajano merged commit e6b896f into development May 3, 2026
3 checks passed
@lmajano lmajano deleted the copilot/fix-forgebox-slug-boxlang-ai-module branch May 3, 2026 19:59
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.

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-ai instead of bxai.
  • Update the thrown ModuleNotFoundException message to suggest box install bx-ai.

}

if ( !getModuleList().keyArray().findNoCase( "bxai" ) ) {
if ( !getModuleList().keyArray().findNoCase( "bx-ai" ) ) {
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.

Wrong ForgeBox slug in BoxLang AI module error message and install hint

3 participants