Heat the olive oil in a large pot over medium heat. Cook the onion, carrots and celery for 5-6 minutes until softened, then add the garlic and cook 1 minute.
Sprinkle the flour over the vegetables and stir constantly for 1-2 minutes.
Slowly whisk in the chicken broth, then stir in the coconut milk, thyme, salt and black pepper. Bring to a gentle simmer.
Add the shredded chicken and simmer for 5 minutes so the flavors come together.
Stir in the gnocchi and cook for 3-4 minutes until they are tender and float to the top.
Turn off the heat and stir in the spinach until just wilted.
Taste and adjust the salt and pepper, then serve hot. The soup thickens beautifully as it sits.