Add pine nuts to a dry pan and toast over low heat, about 2 minutes. Set aside to cool.
Bring a large pot of lightly salted water to a boil. Trim the snow and snap peas and pick the English peas, if using fresh. Cook the peas in the boiling water until tender but still crisp and immediately emerge in ice water for a few minutes, then drain. Sweat the shallots in olive oil until soft and translucent, then add the peas and cook a few minutes more until the mixture is warmed through. Add the pesto and toss to coat peas. Drizzle the peas with chili oil and sprinkle with the pine nuts and salt