Closed (fixed)
Project:
AI +
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2026 at 01:17 UTC
Updated:
24 Jun 2026 at 01:20 UTC
Jump to comment: Most recent
ai_plus resolves the entity for the page the user is on and propagates it to the agent as prompt tokens (current_entity_context / current_view_mode). AI tools and skills, however, execute outside the prompt and cannot read those tokens, so they had no way to know which entity or bundle the user is viewing.
entity_blueprint provides a shared CurrentEntityContext service precisely for passing this context out-of-band to tool execution, but ai_plus was not populating it, so guidance that depends on the current page (for example bundle-specific tool guidance) could not resolve.
TokenPropagationSubscriber, after capturing the current entity for the prompt tokens, also call CurrentEntityContext::set() with the entity type and bundle, so tools and skills can resolve guidance for the current page.TokenPropagationSubscriber gains a CurrentEntityContext (entity_blueprint) constructor dependency, injected via autowiring. No other signature changes.
Comments
Comment #3
tim bozeman commented