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
8000
[Bug]: agentic search calls retrieval with a nil database #22810
The retrieval tool passes dao.DB into the same Search method. With a nil database, permission.NewDatabaseChecker has no source. Membership and resource lookups return permission: source is not configured, so an otherwise valid agentic search cannot complete the dataset authorization check.
Expected
Agentic search should pass the same application database the retrieval tool uses, so the permission check can load membership and dataset rows.
Where
internal/agent/tool/agentic_search.go, the svc.Search(ctx, nil, req) call. Present on current main.
Activity