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
{{ message }}
Repository navigation
[Bug]: canvas tenant id falls back to the user id #22809
canvasTenantID in internal/agent/tool/canvas_ctx.go returns sys.user_id when sys.tenant_id is empty. Agentic search and dataset navigation use that value as the tenant for retrieval.
A run that has a user but no tenant then searches with the user id in the tenant field. The search does not stop for a missing tenant.
Expected
When sys.tenant_id and the permission-context tenant are both empty, retrieval should fail closed and should not substitute user_id.
Where
internal/agent/tool/canvas_ctx.go, canvasTenantID. Confirmed on current main (also present at bb7b3c288).
This report does not include a patch. The local fix lives on our Gitee branch and is mixed with other canvas work.
Activity