Plant secondary chemistry mediates the performance of a nutritional symbiont associated with a tree-killing herbivore.