Overview

The entity type and entity ID parameters are no longer accessible from the drupalSettings.canvas object, as they were removed in #3502887: Prepare for avoiding full page reloads: move entity type and ID from base path and into routing parameters. The chat interface is not working because of this, since tools such as ai_agent:get_entity_information require entity information.

/files/issues/2025-09-08/Screenshot%20from%202025-09-08%2011-36-42.png

Proposed resolution

User interface changes

CommentFileSizeAuthor
Screenshot from 2025-09-08 11-36-42.png196.83 KBakhil babu

Issue fork canvas-3545378

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

akhil babu created an issue. See original summary.

narendrar’s picture

akhil babu’s picture

Status: Active » Needs review

This is now ready for review. I have also removed the use of navigate from operations handler as user was getting redirected form the page once components were placed

narendrar’s picture

Changes looks good to me.

Re #4, This navigate was added in #3537739: XB AI: The selected component context should not be passed after page creation task. to fix context related issue. We should try to update navigate('/editor') to maybe just reload the page, once all operations are performed.
We should navigate to editor page after all operations are performed.
Something like navigate(`/editor/${entityType}/${entityId}`);

akhil babu’s picture

Thanks @narendrar. I have added it

narendrar’s picture

Assigned: akhil babu » balintbrews
Status: Needs review » Reviewed & tested by the community

Moving it to RTBC.

marcus_johansson’s picture

Can also verify that I have manually tested this together with #3533079: Introduce AI Agents and tools to create entire page templates using available component entities and it fixes the issue.

jessebaker’s picture

Assigned: balintbrews » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.