Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03450-4, published online 22 January 2025.

In the version of this article initially published, the labels “≥5” and “<5” were missing from the PD-L1 CPS at baseline (22C3) column in Fig. 1d; in Fig. 3a–c, the y-axis labels “PFS (%)” now replace overall survival “OS (%),” while in Fig. 3a, the hazard ratio value “0.53” now replaces the original “0.55.” The figures are updated in the HTML and PDF versions of the article.