diff --git a/internal/gateway/methods/teams_tasks_mutations.go b/internal/gateway/methods/teams_tasks_mutations.go index 6f180570..c6c13ffd 100644 --- a/internal/gateway/methods/teams_tasks_mutations.go +++ b/internal/gateway/methods/teams_tasks_mutations.go @@ -405,6 +405,7 @@ func (m *TeamsMethods) dispatchTaskToAgent(ctx context.Context, task *store.Team Content: content, UserID: userID, AgentID: ag.AgentKey, + TenantID: store.TenantIDFromContext(ctx), Metadata: meta, }) slog.Info("teams.tasks.dispatch: sent task to agent",