- Issue created by @andrewbelcher
- π¬π§United Kingdom MrDaleSmith
The content type AI Agent has:
/** * {@inheritDoc} */ public function isAvailable() { // Check if node module is installed. return $this->agentHelper->isModuleEnabled('node'); }
so I'm not entirely sure how you got it to be available on a site without node enabled?
Can you provide steps to recreate?
- π¬π§United Kingdom andrewbelcher
Steps given in the initial report.
The
isAvailable
method only appears to be called inai_agents_extra
's MCP plugin, and theai_content_suggestions
settings form.That probably should be checked in other places, but is more suitable for "run time" checks, rather than dependency checks. For example, if a function call tried to inject a dependency from a module not enabled, you wouldn't be able to instantiate the plugin to call
isAvailable
. - π¬π§United Kingdom MrDaleSmith
Are you saying you want some kind of system that works without instantiating the plugin?
- π¬π§United Kingdom andrewbelcher
Ah, just realised this is a duplicate of a ticket Marcus has already fixed - π Add module dependencies to tools Active .
- Status changed to Closed: duplicate
5 days ago 4:27am 1 July 2025 - πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
We are doing some issue management housekeeping and adding/removing components.
We are removing the "Code" component and want people to categorize issues with the best module/submodule component.
Moving this issue to "AI Core module".
See π Update AI module project components Active for more details.