When the onion has just softened, add the curry paste and break it up as you sauté for 1-2 minutes. As you fry the curry paste the heat helps to bring out more flavors.
Add the pineapple, stir to combine again. Then cook just until the chicken is done. Season to taste with fish sauce, coconut sugar, and sea salt. Remove the lime leaves and serve.