Pan-cancer T cell atlas links a cellular stress response state to immunotherapy resistance.