Related Party Transactions - Additional Information (Details) - USD ($) |
1 Months Ended | ||
|---|---|---|---|
Apr. 30, 2023 |
Jun. 30, 2024 |
Dec. 31, 2023 |
|
| Related Party Transaction [Line Items] | |||
| Prepaid expenses and other current assets | $ 9,593,000 | $ 8,326,000 | |
| Affini T Therapeutics, Inc. | |||
| Related Party Transaction [Line Items] | |||
| Investment in equity securities | $ 1,800,000 | $ 2,000,000 | |
| Erasca Foundation | |||
| Related Party Transaction [Line Items] | |||
| Amount loaned in exchange of non-interest bearing promissory note | $ 125,000 | ||
| Amount donated to related party | $ 125,000 |