fix(session): scope wiki fixer to shared KB tenant

This commit is contained in:
wolfkill
2026-05-21 00:08:33 +08:00
committed by lyingbug
parent 6a6513caba
commit 5bdaf58d45
4 changed files with 277 additions and 0 deletions
+3
View File
@@ -24,6 +24,7 @@ type Handler struct {
customAgentService interfaces.CustomAgentService // Service for managing custom agents
tenantService interfaces.TenantService // Service for loading tenant (shared agent context)
agentShareService interfaces.AgentShareService // Service for resolving shared agents (KB scope in retrieval)
kbShareService interfaces.KBShareService // Service for resolving shared KB permissions
fileService interfaces.FileService // Service for file storage (image uploads)
modelService interfaces.ModelService // Service for model management (VLM access)
userService interfaces.UserService // Service for resolving per-user preferences (e.g. enable_memory default)
@@ -40,6 +41,7 @@ func NewHandler(
customAgentService interfaces.CustomAgentService,
tenantService interfaces.TenantService,
agentShareService interfaces.AgentShareService,
kbShareService interfaces.KBShareService,
fileService interfaces.FileService,
modelService interfaces.ModelService,
userService interfaces.UserService,
@@ -55,6 +57,7 @@ func NewHandler(
customAgentService: customAgentService,
tenantService: tenantService,
agentShareService: agentShareService,
kbShareService: kbShareService,
fileService: fileService,
modelService: modelService,
userService: userService,