Promoting thiol expression increases the durability of antitumor T-cell functions.