You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(app-shell): send current-page object to the AI assistant context (#1698)
The floating console assistant only forwarded appName + the full objects
list, never the object the user is actually viewing. So asking it to
"analyse this object" (especially in a non-English prompt) gave the agent
nothing to anchor on and it replied that it couldn't find the object.
Derive the current object/record from the route (mirroring
useTrackRouteAsRecent's URL layout, tolerant of a `_console` shell prefix)
and pass them as context.objectName / context.recordId. The backend then
injects that object's schema into the system prompt and scopes data
queries to it.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments