Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(codex): connect a chatgpt plan on web and bill codex runs to it (#108909)

Shy Alterdd11b919d0f0
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index f6ffb7057660..37d2b6b72c19 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -12287,141 +12287,153 @@ snapshots:
scenes-app-settings-authentication-domains--boost-needs-upgrade--light:
hash: v1.k794b7964.4a06b37acfcbb850cc7b9cda55f1b76d3f0c14cd9651e0d39a1dc250f14877e9.Qn4a4tC9pAXgk_SVych4jaeQT8CDnOIdVATh04x9ZC8
scenes-app-settings-authentication-domains--enterprise-mixed--dark:
- hash: v1.k794b7964.9fc224431973adeb73e40c2fa1cd3279fc7bcff2999e3ad1788c47485b5d59b1.CKy_i4VpZtgrTZlXpnl3Y3LoYau3Q7bcPOwRsX36SR0
+ hash: v1.k794b7964.555c2206d2e48ae8a1c8aa0e17849711622c183b481151aa7b13638aae2b9bbf.qL-u4tVhLVcCucBlvBeleoh2cRhMjIXHsGedS-Djpnk
scenes-app-settings-authentication-domains--enterprise-mixed--light:
- hash: v1.k794b7964.a2b4da24ccaf482ac9b5bd630d8433f2b959a4dfa208f921b6958ff6b572a6f2.VMJys96tOyheIc7S18DxjxYA5f0coXTaqheBBxAzJgM
+ hash: v1.k794b7964.cef5a9e9cd5f4e2d189b88c52d7cb5ddd0bfe653e4626e31ffc264e970dfab7c.11nCnyktZDcBjYjVTmJ-7IqJIsOBTzk90jAgLr9O-nU
scenes-app-settings-authentication-domains--enterprise-redesigned--dark:
- hash: v1.k794b7964.3e8f02d68f34dcff30b3243080ea1a76424759881b3f8cf9ff2d384015acda9e.RFuLUlHU1GxlCO0wWUShgpLEHiqQUb4HgXm0UiYKMv0
+ hash: v1.k794b7964.b298edb9b3a47c3d168805fcf8f89299e20a8c18dd3c92b928294d18d2c3a99e.-gtvgWyq1_SJFiZKdZRABzJh-kc3nM8mSh54hCzUQ4I
scenes-app-settings-authentication-domains--enterprise-redesigned--light:
- hash: v1.k794b7964.00b10bd2d30f2eed42849071a7bc4c17c83fd3f676d9e18bcc556ec3ccf69f6b.POhcneQklyAcMsNwfE0xOFs1NdodTBRMdnKOYYDZ4iI
+ hash: v1.k794b7964.e70ceb58d43f6ac38362ca3bf5ae8f4b807c37c443f31a88109297576a1b916c.2K-w1xgTEshEMfliSPcAzt9BVmrUJbHSX1vgIGnEBG8
scenes-app-settings-authentication-domains--enterprise-redesigned-not-configured--dark:
- hash: v1.k794b7964.b79cc699cabb9eee0de19ddb9c5b3217639c35022da22215ddf3f513c975ca63.SSYRK-UcoBNAv7r5Kjfz6i2gbXAsqgXSWXj7XnQ-NXM
+ hash: v1.k794b7964.7a8f70c3b240ecdb252fdbe5a57f5c4164d62c99656251d7e295e4fb6598c1d0.EpR8zcTtuwWC00nwxMplgRBFeGeHYEhBqrwkCdv3jGQ
scenes-app-settings-authentication-domains--enterprise-redesigned-not-configured--light:
- hash: v1.k794b7964.eee3200fec6cd00cfcdd44d4f91f91cd0bbe45dd9a7b6b14cd29adfc60cbdb84.3bbaGntKqYr5OaLg8P1TW9rY7b1_Oi5vM-VtY2xBrAg
+ hash: v1.k794b7964.31edca1580e038cee78b2c800c71a039e3ff1191817a250340fd0dc360d30c47.GbHvlnpRsMYhtrDznK6H5IsC__B--N9es_s2vL0P6WA
scenes-app-settings-authentication-domains--enterprise-redesigned-partially-configured--dark:
- hash: v1.k794b7964.6f49b4b591a40afcefd8b68e6ceef192aa9a2dfaa85f9bf134e015e47cc40f31.gVgaA3rK8Ca_ECCpzCGj8UL_C9p4nz3vNBu__t0Rq6M
+ hash: v1.k794b7964.0995a71abe163e2a9fa206b26e677d509dc4d95050ed8279b823442ba2219d01.G0HxQhWm23iReV4Oyh36gPLhWh-SxPuw1p7fbLkMB7k
scenes-app-settings-authentication-domains--enterprise-redesigned-partially-configured--light:
- hash: v1.k794b7964.2bf81837e241e978315801d00ec2091ac00f82aeb2f78d792eeebebbde0d669a.YrhtwLygEq_wVQvTdl7s1H6Zq6QNTFl0nH9aRrB_3Bk
+ hash: v1.k794b7964.654074284f5d42bcc912e59f093898155e0e00889258c6255cbe7c0452b29316.HMENKjNHfM1zg0MgJwEPEzkUd_z5KFBhNKF1zXrQLfI
scenes-app-settings-authentication-domains--no-domains--dark:
- hash: v1.k794b7964.597ad7ea8dfb77fbcee778ed41f05580d86046fef2ff784573b1ecd6858d76dc.kw2uXzfKVCC4p8TZS2LlqzhOMKA-4Q6X6tP6efOlLuc
+ hash: v1.k794b7964.fe09466cd97f88923bbda820575ffad58ea09d42758711d3d04352cb4b937f42.aJXkbhe0FeVNNx7Uqkb5yul6d2HKtuatm4Wa7FEbV8M
scenes-app-settings-authentication-domains--no-domains--light:
- hash: v1.k794b7964.e993e7fbf0da78950d690652ab996f3a18056585b65bd4cc28d173d2f14ff414.27THupjpgZ2fvcrR8SUzJiWAJu-pvpriGFUugZ5CI-8
+ hash: v1.k794b7964.170fb624de9ad1cbb1a158a54e4bcdc44b2bd473644273f15d07ec564f5f6af3.z8cchOoswpBlOILNEnqinW0oQC6IfModB5FRR348Qs0
scenes-app-settings-authentication-domains--one-unverified-domain--dark:
- hash: v1.k794b7964.e68f7ac60c73fb0779f28e2d37840e2f37e86086835b7bb0a4e0ebf11b0da707.iydJ9p0YXQjCQH10nkvyEiuJqGwoaq89kM4afi2zhMw
+ hash: v1.k794b7964.cd189d6c2e7ce11524b79d7583de3114b4e7aaaa332452ed200910ffe7b6ae5a.Wp7uorXslNozPDDwWniA4sbUrZ7Sq6Ax_CYAYPO3N0E
scenes-app-settings-authentication-domains--one-unverified-domain--light:
- hash: v1.k794b7964.193686f0a48bac9730157515b56e3d02c8386150b5ec2709127c2661688f7f68.5AEa17e3f-bjiIqLaTfT4_BPeT7kZB3a_FTldUf3unI
+ hash: v1.k794b7964.dfc09ea31d5083088782197b39d8a78ec2bbfa0f6cd2d9c5a0218c584c78eaae.8Z45nRETnh5sG1a7yW9hYLMADB6aOQ_DlTNJnzopCE0
scenes-app-settings-authentication-domains--redesigned-needs-upgrade--dark:
- hash: v1.k794b7964.c9b61d174f4b8d1ba93b54376a930b4820a2d691909a68db19eaf128866c903b.fcTXOGkUXwuZviQXUWzARYj-NA35NYIV0Dys00tw1iY
+ hash: v1.k794b7964.1d1b6a32f9ead543b632d497dc7dbc34f5b96daab7ad9b5c0f4b3470770009ff.WbtbFLq-gVN9Z0pCnTbNxcD65M1M4SzoyI_GzC7L1Ys
scenes-app-settings-authentication-domains--redesigned-needs-upgrade--light:
- hash: v1.k794b7964.3796c40507d8a070e703133a44893f18ea1151ac7f2cd2c917f39229abd92ec6.vV_wR2Q71Sqs2y7afXKOx5Q3PJ95YajviZzkuF8OKZo
+ hash: v1.k794b7964.5a444beb49672eef574867a37195f15caac349e4d376be6ed332272ee96668da.VqbffqNYSTbF5nkcvVuT_YlJlC7PHKOgqilzmn65QB8
scenes-app-settings-environment--settings-environment-access-control--dark:
- hash: v1.k794b7964.1f33790f3bd0e99fd788a2ba51b5da89070890668342136be956671fcb7102d4.CTModQEdtdAl7A8abkUSFmeUOK1607H1sKFdQhJBq4U
+ hash: v1.k794b7964.3e1f710c3594c9c0cac80d7fbba12b485b3a82988da6ccbadd0528222baade8f.nne2RcfR0O3iL6SR1la0MEBXwi34MBO7UhgcbY6H6jM
scenes-app-settings-environment--settings-environment-access-control--light:
- hash: v1.k794b7964.9ea484177cb94c831f0508e3482b1a876fc2b69db66c95b8f69fe73586909a3b._EvRaax5KzNHywyiNOpnbtVEPebu79kfKuX5zFMrXj0
+ hash: v1.k794b7964.4db0b294055268042339567332baacb7e146a3e9dc23540758661be827676453.-yd-uoKdLzSw45djm908SeMJ9Puv3sFy3tLjMOZ_a7Q
scenes-app-settings-environment--settings-environment-activity-logs--dark:
- hash: v1.k794b7964.bec25f039acad0509dec5b2fd7cce474115b8392e538f765e4188759d7df9e4e.tE7Zfs5dnNod8DYmAb5I4E2gvTd_scj-SO06DqiIHRQ
+ hash: v1.k794b7964.c5f43d6c33923de09f347a56616c95d22323504d4fd6ab8145798635fd8f57f2.KgtBcPdSvPYSgl6UJSE0iH21NPvtdFfC8oQ3eiIsFzU
scenes-app-settings-environment--settings-environment-activity-logs--light:
- hash: v1.k794b7964.6ce5b161e9a5c35ca3ccbcf3285a13dfd9cc4b42fda92a347502d426001524ad.Uj3btOOX8b5EqJL4mIgv2-2A7WVTqC4ivyjuytg7xv0
+ hash: v1.k794b7964.753e0715e94469f13d5506eb7fed41362028dd18062dd7175ce2d767d83738be.W8prN3Y6Bs6-63PfKR2Xjz10ejpYk3A2qsIL0vpdFcg
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connect-modal--dark:
+ hash: v1.k794b7964.a736395d4f5e26d3df100c0620467dcf3d0f4d8c68e009238e19f96ca0ded1c2.oKore0IeXbtNi-INrktyldmjfaDYFu3qoykEMwtweUk
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connect-modal--light:
+ hash: v1.k794b7964.cebb2c0841f4e4e37d2ea1df6e0104ded1eb59190a5c4ac0b69627f8fa8e3c6e.XAjjATZlE8eh-QyykaJWux_ZL3vwbQa4pwIV508e_yc
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connected--dark:
+ hash: v1.k794b7964.43219c21fd41e07cddcd2da6f0dbd61dac25e2a22d19d322a0029262774886cd.oJVejD195IYggzc3sKJnfHd0cx5p7p9n49RtUFwQfrI
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connected--light:
+ hash: v1.k794b7964.98304a689c136222d75db956f1fda4abfc4cbf1902ccdb4e68c6023517e81fe5.oizhDuSgd51ralAxt6MtCBlh3A7PthmgYRgxZkKashA
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-reauth-required--dark:
+ hash: v1.k794b7964.a5f59905892a8bae4f2e74e9ffa1ef5635d2f86554b5a7535218940a909e5040.n-Xm6A9setL1AapW1j-rmts9Cb1xIQ66cXg6Yg0h88Y
+ scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-reauth-required--light:
+ hash: v1.k794b7964.8120cda1fbc968f256552be022afde2bf8b58b102770a61eacb80bd96eff4b22.yUyz-CBanhJ6QvG7rjgQ8Ku5XcSfb5kBtRBzSxlmDNQ
scenes-app-settings-environment--settings-environment-autocapture--dark:
- hash: v1.k794b7964.e92fb6c59f611c46950a85444866f8aae03fe8c6713403fc0e1fa090a1d3471f.EdK2ioxkG8wCE9caWvvH9fCfVfUnRBOz97ArCisFzEI
+ hash: v1.k794b7964.367793a59557b95b8aa86c9e00c3bcc423034d459da8b28289a49b7bd15cea0e.Z-at8v1BnBOViS2ggWfC7WrFr8Q4e8hedP0TaSy0HMg
scenes-app-settings-environment--settings-environment-autocapture--light:
- hash: v1.k794b7964.686906b13609b91551ae24ab45ae35b172b2bdaaf66eabd46d40fb4c44e4bde8.7NAOH85bpCOMpDiFOYUGT_oRXb_gu1FO53YJNnRHHmg
+ hash: v1.k794b7964.ddd15585ea6a89508138aa795a12cebd7effc392c102430bafbb77113ef8ba9a.dpN9yXnw_sUfMrJnDZI4KkLL5IqCHqReicA46i61V3Y
scenes-app-settings-environment--settings-environment-business-knowledge--dark:
- hash: v1.k794b7964.7077f81f115e6ee67bb6fd6a317ea1e4093ab02982a6ff7a76197841f76916b5.oPgX8pd0MWvv21FciYUmgktIADN1zNes4B0Z9IXBX9k
+ hash: v1.k794b7964.4f036960cc85cec95785ecf19934ff3587f23a863bc057ec50a5d9bff8d0e43c.QmOn1RlrmM7C0IMGfg6v5uYr3Z4y5kSupLr2JoIUZ9s
scenes-app-settings-environment--settings-environment-business-knowledge--light:
- hash: v1.k794b7964.c8ec2b96099656fe925e917261f3ed7b8dc3e3276e4052af37f23f365cd8935e.cZ2anJEEHttWVyjOXREziCKxsxkE6ixA-1-VXWRyQJY
+ hash: v1.k794b7964.2fa966ef983b3b77ff5ba31730fed4758577535dd666df926d79ed50ff69a647.ldKxfPzZGehU7mupT-Oe-75n037WpSXg1MTytuD06jI
scenes-app-settings-environment--settings-environment-business-knowledge-learning-on-support-off--dark:
- hash: v1.k794b7964.93e407e55846fcce3f9839d7bfbd511bb50f5fdd471c47a93b63db68425d4a9b.ynnE9EdbjhneMYy4f2jHUnLxBhg0WfYORQBNv0E8kdQ
+ hash: v1.k794b7964.2426091f684da82f673bf4ca0193082380175c842418084305b1db3b1d9b8144.h_Ji286xqD3zjqdDGhnqmePNhUIP_nOzuL-ok5MbLng
scenes-app-settings-environment--settings-environment-business-knowledge-learning-on-support-off--light:
- hash: v1.k794b7964.7dea6bb76ef75d9f51e7528fc90f4711144c82ee96876901b28d493e19775968.ClLEDHG9PX0EpswmWqg_sTZqjF-bFJYnhoMHBYZdCFo
+ hash: v1.k794b7964.13f318e563b8559c9a30de27389ecb922e97f5953618f7e4b3a9583697859a45.kT6RNTgHyk0ZOhkKQO-JW5L_dXj3AqYEJ2iz6aBPKhg
scenes-app-settings-environment--settings-environment-business-knowledge-support-off--dark:
- hash: v1.k794b7964.5148154cb0ccfc16e9ccd58f01f19bc80b9a2c90a671b6cc691899f192623464.aEOKPfj6EW4Uqg3TAyA3Bfp7PnMUJCBZb29iMYbCMqI
+ hash: v1.k794b7964.0675a3e63509b2da7350f0a472be9a27ac34718031b7979ef57cfba5ba14d9e1.Mazf5BKaQTIDt_GJAp758WMq4vxWt1RgTjFKdi0GfC8
scenes-app-settings-environment--settings-environment-business-knowledge-support-off--light:
- hash: v1.k794b7964.0cbfcd3c0a3c212ed8d3a3ce9d354f62eeda951feaf43204f64373c9664ddc68.ddS3VOvocHq-J6tRaD1f_OIOM52YoLGN4zrnKldNAYI
+ hash: v1.k794b7964.06ac12e979f47725661c3245e758cad8fb859316a8132da8b5a51ca167de2458.4Rt_iAjBwMPz1YB8w2wIZGKEQk3aqM_BqSX731nwj4g
scenes-app-settings-environment--settings-environment-csp-reporting--dark:
- hash: v1.k794b7964.c3671c268239bbe4e0bcedaacff16f98b85e7a07d5b791808ae5690b3e18219e.ptL0237qq5NbB36qZvERvPgvs7xCmXmznF-OtHd3ZwE
+ hash: v1.k794b7964.782d7d03683740ac47555e976770bf78c4d44c7ecc1817855fbd912226a86d2d.R6TFF2ULVPfhLlH_fNMkHoYXKMjDJ5CMuQPR6xzS1Bk
scenes-app-settings-environment--settings-environment-csp-reporting--light:
- hash: v1.k794b7964.7987a483420b6d9c60a27ac3bce58a6dd63c80af7afe25f9bbec7b240a757fa3.Tsa856gKfU-Eu93BcLs0x1Xapszlv1KI72Tyy0M5lXw
+ hash: v1.k794b7964.1ff194ccead2e57a82b897ab93cfb6583d896230a6d5ce92bb8dd1ca84d0f333.HMd3aaZlKvNnrBYCsOYvY6YAk-bCG6GvvyLTOBsp1rU
scenes-app-settings-environment--settings-environment-customization--dark:
- hash: v1.k794b7964.ee2f6721a73ddb3d7039f049aae8875dd708a66f8216c3920cd5067daea467b9.EQcyIzhJH2q7_T8ljDKQh68EJBH4IvWyoxUNpCEcB4E
+ hash: v1.k794b7964.71795ad88959169a3a4a17f6ce92757a2292766eed9ed3a3cdbaedc8affdadd0.W13tXX3XY5iLme-dqIJoHTaWUscQ3G2FZMOE2lJdJqM
scenes-app-settings-environment--settings-environment-customization--light:
- hash: v1.k794b7964.6ef28ce703b233b976d1cfc18beaf438b4d42dbb2d24d2c74f230506d7dfc85e.iTiNSq7dzo6FXo-0_mBgG7YRg7SyE2oHEd-gbxXUWko
+ hash: v1.k794b7964.96948ceecb6e12500c96b15c864f5798000e2f2fab8a153c5f99e91e436caaa4.3qjbG-xZHfsnVyTlPy_Fxi1n0v_1CganxZAzGZQw_yU
scenes-app-settings-environment--settings-environment-danger-zone--dark:
- hash: v1.k794b7964.9c2fc7dbe005a63e8bdc1c8d1886819cb871b71d95b33aaf3ffcca61e20b85d6.j59FsmtM5O0WRwbSokQt9pkoz1_xfHpAZTLJGL3wLU0
+ hash: v1.k794b7964.2b373720f044026da5b98c581e9f05d18d2287fe4f42a8e79bfb2d7baa16d364.oET4sjIXxH7oWiVWFHBvMEaqn2S93HcEzbBKleLEbEM
scenes-app-settings-environment--settings-environment-danger-zone--light:
- hash: v1.k794b7964.a9d674f34d4e8cba39f0e063953203a8cd3bf3ce17518bf4040853331e6e45b0.tBQ8J_bXB7L6PQifxRLFP74EKRbDMxR6V_75GGP0loA
+ hash: v1.k794b7964.daa4b6fda1204424af33b68386dd2f411913d2bff879649f10bcd7d0ffd97012.9RZ2J5doNNHWnKBAVAKl18XUcGo2Y9Wi3-M6rAPF1QM
scenes-app-settings-environment--settings-environment-data-quality--dark:
- hash: v1.k794b7964.abc8dab1023d49d442af53e4961c2f82fef74b58333ba1cbc31475c6c543eeba.JDVZT3bK74d6Y-ghPZiHtZ_0rmBhVQlSQyzZqIrnEPo
+ hash: v1.k794b7964.2a1f102a9597b1c86f943e9436359e9193ae0639a9dc2dc06faf5a341861236d.UoE6fCuMXfBVmu6NdSmWGyBgKl0roU4zWfYojxUFupU
scenes-app-settings-environment--settings-environment-data-quality--light:
- hash: v1.k794b7964.55c4bbf4a7be16dae70d6ce8a31d8a77360b4b1fc672108923964940fab1fa7c.-QhpibJDRFWBAd-bTKO0YasIrrWF9DwnGdvBySklouY
+ hash: v1.k794b7964.e3772247a6ed4924230227748080b80a499e518f8055034fe4540dc933c5b411.lJuNFsAEe8AVvk2-MVqI8bidK1tcnQGH-RgtVzsACIg
scenes-app-settings-environment--settings-environment-details--dark:
- hash: v1.k794b7964.9c2fc7dbe005a63e8bdc1c8d1886819cb871b71d95b33aaf3ffcca61e20b85d6.ezjk5Je5j_3QaXbKCIeQ_IrRb6Os50bVwFJDw87G7AQ
+ hash: v1.k794b7964.2b373720f044026da5b98c581e9f05d18d2287fe4f42a8e79bfb2d7baa16d364.mDt66hMOO8sLSR2LBYcjGVRK-ZboaN6TX5orv3I3Eb8
scenes-app-settings-environment--settings-environment-details--light:
- hash: v1.k794b7964.a9d674f34d4e8cba39f0e063953203a8cd3bf3ce17518bf4040853331e6e45b0.Ha0bPYR869tF1qd9GEb8TYRrqW4XJ24YkKgfBGVqwDc
+ hash: v1.k794b7964.daa4b6fda1204424af33b68386dd2f411913d2bff879649f10bcd7d0ffd97012.4i-jJMkFLLuLTbw47-UJB8aVut4Vt5tiPebfteCUzM8
scenes-app-settings-environment--settings-environment-error-tracking--dark:
- hash: v1.k794b7964.7856b68dffef3f3617b0f3668d094522e55363a3f63bc4fa12f9a4ff75a948bf.vEkS9WNH6ExEKgAb_SGccT6IqEpzKBsYRJN2l02H8-o
+ hash: v1.k794b7964.2f1e1ba97d105b4c54d974d6acb8da969f01d44dbdef88099e3fdea2f9def4b0.khIC6RwEG11ygzQwuwrZjC1n9WgLytEf6TjJeMDf-Tk
scenes-app-settings-environment--settings-environment-error-tracking--light:
- hash: v1.k794b7964.ab7b4b74c3495b5e9d6152794cb0ada24201dbaf00ded21fb1a68f884ffe7139.Wu-cGBkxQLcGE6VAu_gpYL2pFrfNWHLAFsT3jutGEf4
+ hash: v1.k794b7964.547b55286cfedb0175308a543ad04a20faa39d4c9f49bf786aba6c5ead508bc7.SSrI5aJiEOZs7rDQ_a69qQ85dJWd2bHN506awi7HKFw
scenes-app-settings-environment--settings-environment-error-tracking-configuration--dark:
- hash: v1.k794b7964.5389531656b98551428d0348f86123184edee37f4c3a32fdb4a1cc0869adc3ff.W_v_OXNRYXMUup9iAKFHeMPkwy3iwVpJ6BlmnA6QO_c
+ hash: v1.k794b7964.bf9361658dc987a6b475ba3fd286880500208bd4d8332a74a4ca531e7953af15.cstn8Pd818qdcR8x6PHyh0cs5IXfpxiYaKOxJRKa7zg
scenes-app-settings-environment--settings-environment-error-tracking-configuration--light:
- hash: v1.k794b7964.05cd4d11178a6ab2b511d9bf210abe0d975216c98945669170f00138e560fd16.sqlVQyLt-1PLj-fF9YbPdwnFo_RxtHzrHyZe2OQiSDc
+ hash: v1.k794b7964.478270c8c83b08c7fcc9898062f8b76c01558c74dda96e645393c02599c0e8c1.0_CrOqd5c3ggQE667Flm7WmcwBYVYeRAwvQ2bRjjRA8
scenes-app-settings-environment--settings-environment-experiments--dark:
- hash: v1.k794b7964.34ea9c4a5eec940e7e9a2a9435da52e1ebe91d2f7a7f540c76b6323bfdcf830e.HzYgBbQwQQww7_CWcnVIOZ5AwNvp-HlX1gxrQsDwoa4
+ hash: v1.k794b7964.8df3018d282b845aab2cab046795146071f74c1d0f07bb858a9bc0a516b197c9.8yJQ35WJdwY_etyssgC4nhOHEEEaMnzTXPZqwY5PNTI
scenes-app-settings-environment--settings-environment-experiments--light:
- hash: v1.k794b7964.50405eeca5576a2c771427b596d742f2925f63e17bc96558f7969c65469fac79.yoc74JSxnEwjvd8Qneqn2pDzNMKiG5sx1D6LGwoe1Wk
+ hash: v1.k794b7964.cf851abfee1fb14a5f403f0eaaded57e96e98e3ae64acf21fcfaac526ba2a80f.QkIjTDilknXTLuJkyi6WKFNkYoVVeqvrOyPDH7VtF_M
scenes-app-settings-environment--settings-environment-experiments-multiple-recalculation-times--dark:
- hash: v1.k794b7964.abb4dd1a852e9385f2e8cafdf2c4d2ce4de190264a5e1ff0b2c292c3f63d5e46.PY-FpIqembu2873Ap2oLLqhLSD4ztD-YIQF-ZsLjwps
+ hash: v1.k794b7964.08803034d4fb1d757d2acec24ab349392c314189a5fb3cd6350a42bc425280fa.SIkdwJxh7ECXoTPvW4VQjrGjF69L9cfCORBDTXHX2Ow
scenes-app-settings-environment--settings-environment-experiments-multiple-recalculation-times--light:
- hash: v1.k794b7964.89e10068373a18cea80e0291f91987548f10ef0249832e2b9af526f20d3e036f.yHfM1hYyfc5Ab9jOUF9W4syLXhycaRFAGLZkquZVQ9s
+ hash: v1.k794b7964.53b32d482b6a7790b993eee742e9cc70d07183e8c8e806d8c33c25b6e62bcb39.vm5FxLiUXo1yRyA5Yk-GnG_yHphaWrM2BMcjM_fBl44
scenes-app-settings-environment--settings-environment-feature-flags--dark:
- hash: v1.k794b7964.f542dc208f8caacdc2978c3e17d6c077d299f4896b6acf1b0cbe51eb1e7e2f34.KnYG2YFjexeGzYr2iZlQmND2MXxJXDH3G9_vOeCMy84
+ hash: v1.k794b7964.58a1c19d0dc5e0d260f2595e22f7c5663b2eaabf8958f197f93f13d5d49ec351.-RCuviy-hN0AEieJrxh2jJXAcyoqjJbvnomoomo-H5A
scenes-app-settings-environment--settings-environment-feature-flags--light:
- hash: v1.k794b7964.1727c58a0c3d1d7b98d9837e7bc9371ed6917ece4e4bd56e117c8346dcdcab73.33HDPAg7mL_qrKAVTV2Q9hGSZxtDS6geLAt4ohn8Uw4
+ hash: v1.k794b7964.bee4c9bd98297c31f961ed326c31e74851b917fdd11fcaacf4c0bbc1c3668267.k9lXVKw-TmrhEX9jLKGuL3KQlaVAPyAQN4hnUNjRj0k
scenes-app-settings-environment--settings-environment-heatmaps--dark:
- hash: v1.k794b7964.2e1a4ab99529aea8bedf4ed8acc2a6a88f82070cb66efbd86be237afdb76ac43.r49rtZmhxy0F163z1LlyTV0x_ZBOHMT03jA4exX3kks
+ hash: v1.k794b7964.9d0590199b32121935a14ddefede6fa3b5350852f656b82a271ae10b3e6cffff.NeTZj581shyTlCO-mM6qd3ako_qdcm1qMDRcOqa8kvg
scenes-app-settings-environment--settings-environment-heatmaps--light:
- hash: v1.k794b7964.7e0d0d75dd8062ce9a721d0c02670e8296719c81920cf734714f01acf2acc8b6.W-OPwcwWXMEX0tktVzfYANAaZCHh-AHV_do0yhmyFF4
+ hash: v1.k794b7964.788a1378e4ad5354dfc2319855c1310b5cb647c299578ab37cfbb671d0e2a9fb.9ORdrOK3vlLI7HlT1Oi4WltsMQTrQiDiBvj1Nzf-T_M
scenes-app-settings-environment--settings-environment-heatmaps-screenshot-cookie--dark:
- hash: v1.k794b7964.21109a9420a75754051c04b640bfd86af75f7461f161082f8cc47e4e46a8bc41.tkqEvQIxePpDNgTj7n5CJ7opSoIwI9DQO3T9Eqjxkls
+ hash: v1.k794b7964.91d3dd644cae697882c2bdeb34d1cad088e14a57e4cbc4cf559e95e9d101d0bb.282lL7DGqJ3f4gGP3HIfEJygIt14EvP57hL1tnn-TnY
scenes-app-settings-environment--settings-environment-heatmaps-screenshot-cookie--light:
- hash: v1.k794b7964.bd06b0f161066c3188aea067ebfce219b05cbe333d196f68db83080fb6807c28.prEHUClGQEvlS9eF131QntF_FDeP0hSACpGbyPYfntg
+ hash: v1.k794b7964.8668566a06e0bb9ac5db3b09144e31c9bf4a4fdb0d2a75f72747f69ac2f1431d.zXflgkKBorp1cUKa8bUA7JbWIsymZt5HOUL8Fhfsawc
scenes-app-settings-environment--settings-environment-integrations--dark:
- hash: v1.k794b7964.8bc9a0a3c68e9379000d45e767214553c220039f07512af99d61892720b7d9aa.kDGcZ2uuaPxJOJuTXS2lAqe9TytcYSTv2liWakub61Y
+ hash: v1.k794b7964.95cb5dadb923df180feb7d258e1d555847b13fdea54037e16ccd35ad87e1d17c.7XGtCXQYbBlOMoYFTC1u4UIB6tc5OW4DmpA2GaPmRX8
scenes-app-settings-environment--settings-environment-integrations--light:
- hash: v1.k794b7964.7e44eb5f34601ea71f789a14566d68ee8cd899515623d56eb7ac5de3b4a298c1.BMEcaP7cAAXuIFiiqvKbqlZDby1H3nJJ93mBWy9pwko
+ hash: v1.k794b7964.19116f57a291558ee81b08364acb1c30a67268886c226e53bcfc8bc67254f41a.OYTq-h7d7dXyjjcONOVAb84nP_TVFYf75QykrAMW9rw
scenes-app-settings-environment--settings-environment-marketing-analytics--dark:
- hash: v1.k794b7964.ce50eb2ceb93107a2dd46a661a1f4a746e602f968b55216af427403068521729.viGh0iVO1vMHTAwXpJEgQvynV4_8nVe3mtmKBwQFR2o
+ hash: v1.k794b7964.effaeea9de7320e928ce54f05ca50cff81d7d6b0b2fc1637fdf0fc84359c581b.QHkITko0zLZbGJ44zX3iYZWNzzMgWkNN6TvogJvmbZU
scenes-app-settings-environment--settings-environment-marketing-analytics--light:
- hash: v1.k794b7964.dda239f4dc08e45f0522ed95556a3166a6466a101e0a6cce55eec0b106fec096.bOEE2G1h8ZdInRkqU2kqSDWFvej--F7ETK-vXit3I3E
+ hash: v1.k794b7964.13a4884b21f1d8a3e30d37b653e125019a820ef4f81c39e41dd633bb48957317.jizFJLIgaZXiZ_fo0lyxUEwzI7_NXX_WBt85UHr0ng8
scenes-app-settings-environment--settings-environment-max--dark:
- hash: v1.k794b7964.901cd93493c9ac78c9c2a3920c57712a363937e3ce82450fe596e90fa94e7bf7.XbiCnsj2Ilnqu_UdEPfQvUlWqUXH1e5jVecRvCuPkhk
+ hash: v1.k794b7964.6142d64476a651377ea7435c837cf44b1ab20be050c7a36ac0170c3b742d75f9.g5XCr_34UJ_IKL43Ih9QyGY9geyV6vCbMuBfc3au1y4
scenes-app-settings-environment--settings-environment-max--light:
- hash: v1.k794b7964.eba690b86e7d5db603f62599109e5488ef4b3578161c35ec0072e41abd81ffd2.2G_ACagN3Ma52M7Ll4_OLvNYF64uyNt7OFdlQHDaliY
+ hash: v1.k794b7964.13ecb3667fce133366d044e26b567396c3eecbcbe65f039bfd1121e531c1a8de.D6ZjGsVdmAbswA19h_n11JvysCJLmdkklbwnmy6uuAI
scenes-app-settings-environment--settings-environment-privacy--dark:
- hash: v1.k794b7964.d8e586dc15bd266a7e613d061befae332c00b43233b51dd7136b10aa1852b25e.LjZJ8qpkfWzAWTt0RQfxynISD5btaWsqI0BcdiNySis
+ hash: v1.k794b7964.65a025c9cfbf186a0c0a20afa9cfcc0ba28bcb7f724252949c50197328ebe8e2.3-NJhzJxbBpI6IB8rMZL1R6kDvre4AT1TTnkww4yBGg
scenes-app-settings-environment--settings-environment-privacy--light:
- hash: v1.k794b7964.15ff892804a4ad351c4d70e8080fe61fc0da06fb305c71913a4d5236454a14ae.N8KJjDbitWNv9AoP99vHJJinCEv7_zfPaxNhSu5qL0M
+ hash: v1.k794b7964.e23f222bc25f6ac2ea8838f3ba537da4b2741e79e8844e5d0de9a5adb524b673.Dn-znEqNwEXGBxWNOz1MmYBREaEL0KYXJI5q87tcqG8
scenes-app-settings-environment--settings-environment-product-analytics--dark:
- hash: v1.k794b7964.35ee5692373e5eb06d01513a297e48c98d788004fd1701384c6a5c0c3db08fa3.slqOWsf5Wqr5FTWLPZP8OAvz5rqOWRpeZFjxnPcc94g
+ hash: v1.k794b7964.aed5f7fa9160d3eb9b64ba2fa71ae7892c6f15f169a81a5a14d5009d7ebaacc8.WailAz4OXbLkd51EshYrOERMzayBmA10Jw-Vyq6MKX0
scenes-app-settings-environment--settings-environment-product-analytics--light:
- hash: v1.k794b7964.1b283e45e0cb0186139ce74d01e941f770a6de73561debc73693ac4f16376a4a.kpj2Wnhj2GBS3G2uP-4NW45LQBMFmVYKFG0w6OdBci4
+ hash: v1.k794b7964.a271142f12fba44433f520c027e90c8fa043f23529f64e89080e5e49d033d710.tk0LCHNgXU0PA5opPxyYKy9ZCz0yVT7f12x6cY1RlSo
scenes-app-settings-environment--settings-environment-replay--dark:
- hash: v1.k794b7964.b1af4063b804beadbba24c8301e93ced6c71b1ca20947022ebf797e9bd39f4aa.N71dC9q-wSV3j9vwhMR0GGoFW5kx8ihT2nrlLziFBl4
+ hash: v1.k794b7964.11ab13055db9cd01d23fbf7ba68c2a6e7e2d96c425ec55d17071343d0ceb9fbe.BZurxqgw5jlPbdah2F_zRAKHf5IBkKw_vxdT4XMPcew
scenes-app-settings-environment--settings-environment-replay--light:
- hash: v1.k794b7964.3535b5df78348e511d819cda189c23e0fd2756d32836e0473f8606bc45c1931e.QGr41IFnIhfqy9H8diyMg8oBOBRfSXbEUTlF4EViA4w
+ hash: v1.k794b7964.4fa902d321e31edd8b7c659cacde22cc57a994f7b444a55b48291674f4b84c82.Y94iqi1Dqk981MjgPKCgGK-uV-Koa-GBsXzcUobZvXY
scenes-app-settings-environment--settings-environment-revenue-analytics--dark:
- hash: v1.k794b7964.3096de7441604189a012773d4fb69962b4c7ab84e9ab85ff446b6ea01eb3d3ae.tbcVbVcyeX4BePfjP987c7NxFBW60_eSdYMJ9TGFTNs
+ hash: v1.k794b7964.857fa4d2d31c457ded8ffd0d7a46297806545aaf6156530a08e33293106413c1.CJIonIrQ6EUjj8MFip0N1vlRvcHYwzlZGD582_TvTLg
scenes-app-settings-environment--settings-environment-revenue-analytics--light:
- hash: v1.k794b7964.3aab8c17526a6524f1b53469c26bc87d593485612b07253612982f921837bedf.B6_zzcgOYfXX3D8AlUdX4oNSnL0M_7GdtqrgRZ8ThLY
+ hash: v1.k794b7964.88818effdbc4708006f0490e5c852f9f5d31392671c8ec00769dca33b69632ec.EkOX3q_2hOOGE0VDnUqEItIr_pQ1cqONQMaccGUpZu4
scenes-app-settings-environment--settings-environment-surveys--dark:
- hash: v1.k794b7964.a39a0d9b1097794ff9523add1ea41b366acbfb28136fc35b592108a3e1a70e01.OIWd5RSEQshyBEE3g_SH2GmNJ4nJoLIGieAwatFQtT8
+ hash: v1.k794b7964.8d1396ad1aeebae4fed7c96474f7ac7243b49fb40e425492703db643731fa8e0.UDK1kHyhDYEhNvP6mlW5vkoh4Tg2AUROO6unRJqIZ6o
scenes-app-settings-environment--settings-environment-surveys--light:
- hash: v1.k794b7964.163747e5c6e8948df4db226d98285ec6dc82597df4b6ea3da702820d623813f2.Uk9gJMmhlUE2FyoxnXeMk2BrQb8AZbcRRWI0lw5_ZtE
+ hash: v1.k794b7964.a8cceae328f30f76b19a51523a9955905b03d1b6b20239aeda5ffc8dcfcaccfb._bbOOTUDAdu3GXt2Sfz5KOSaPSQujb4AaBDo3MnyTY8
scenes-app-settings-environment--settings-environment-web-analytics--dark:
- hash: v1.k794b7964.fd9812c83ef1776245e1cb1c4ef2ce48513ef19fb473b7f4869348dbfd48370e.YhBCAewkxhTd4nVZjbokNjzpHk5Bkx-U9IefgcSa_WM
+ hash: v1.k794b7964.62cee63e340a94e0318420d76f4c606b74fceb074cd536d5b938969abf8d0c2d.mceb4JDI8akjSC4_y7hiK8C_266SQskkiATxBbkYKG0
scenes-app-settings-environment--settings-environment-web-analytics--light:
- hash: v1.k794b7964.71f6b9c1343a9bb2d8ec78dfebae8d7d9845882353fd2f03f63d45c5ce238431.gnx48GKk7hyfbiZTB-hdcMC4K5dpCekR-NpE7kD7sVY
+ hash: v1.k794b7964.36f188870df619c691b946ddc92e2ce5b9a9c00d87ec59763a18afbf07e6bb77._Ng9GWIeJmSHwsoR0taQckukDWegPeUxs87q_GoqKAo
scenes-app-settings-identity-provider-configuration--oidc--dark:
hash: v1.k794b7964.1177527533a6ec000b396e1ee39627722226aed5cbab11759198dbbc2d72dcb3.NqKVUNSdSz-yE-r1M5EiEIaPRbQwBbyjCAf7rSSi9Do
scenes-app-settings-identity-provider-configuration--oidc--light:
@@ -12451,65 +12463,65 @@ snapshots:
scenes-app-settings-identity-provider-configuration--xaa-needs-upgrade--light:
hash: v1.k794b7964.9d93b0682bf14e191da3fa9614a1500ec01fbe7a9c313680c5fa2d776ae65806.KFggaDLcSJvceGa1JimS0m5ayPo6m_OtoH7_tzeqR-8
scenes-app-settings-organization--settings-organization-authentication--dark:
- hash: v1.k794b7964.10cf86a319b6dbbd26e15ac3f03e7674838366cb05de992451eb59eea14a0c82.hD1hx2SFUdFf5-gga6QI-DCPbnHU5mQf0QMi18gnubo
+ hash: v1.k794b7964.21f0e6e4e45714487e01ad7caea8355561dd7fc20f94d2c47bf9af6dfbd6e694.GTlocFA0OxXP-aph5S37TexFbpIL_asF8RwsVko9fgA
scenes-app-settings-organization--settings-organization-authentication--light:
- hash: v1.k794b7964.bd85953593ca2e38573d79f532b4730bc977c47b9571a7c7fd377a9787dabe34.3epCB5zztPrdiKPrw951ic-63wCFa9A3SR7BpH1RwtM
+ hash: v1.k794b7964.8b8766d01a696c7c7a14914a74ea5481e4000c90ea40a7f5425bdd42883a2c16.uRoN_x2zhSvoqCjwbV-YhptH6O7Mddwo-Eyhny6xOhk
scenes-app-settings-organization--settings-organization-billing--dark:
- hash: v1.k794b7964.9c2fc7dbe005a63e8bdc1c8d1886819cb871b71d95b33aaf3ffcca61e20b85d6.XSkl4gws3y4DuB1zn-jdWxQDKXm0tvLYpLl4n0L638A
+ hash: v1.k794b7964.2b373720f044026da5b98c581e9f05d18d2287fe4f42a8e79bfb2d7baa16d364.g2Xm09nLCZpeEzBoKKy4OFkzGaOOeUJw7AFkKAx-H6s
scenes-app-settings-organization--settings-organization-billing--light:
- hash: v1.k794b7964.a9d674f34d4e8cba39f0e063953203a8cd3bf3ce17518bf4040853331e6e45b0.gp9LeGBHPhfsdYkzuA1hIHcAyCJUyMjvXIiUEU2fMWI
+ hash: v1.k794b7964.daa4b6fda1204424af33b68386dd2f411913d2bff879649f10bcd7d0ffd97012.0kAKUsbVm8BmKsfacp4GYKNOaPm4R-KTOHcE_-0IdhY
scenes-app-settings-organization--settings-organization-cimd-verification-tokens--dark:
- hash: v1.k794b7964.e7c01a84f757c03ccd70f707658fe902dbbd3bd0f0d3d632ab50ce52db81327c.I9cHh8I55qbP4Uw0wQR5W15vh6AFSlLC_I0J387iR2o
+ hash: v1.k794b7964.4b4b48c6c63fc5690b0f2d427688af6a340ba0108f068582637ae9a77fe6c174.n5YcfNi7uv5mXQvjyIdPF05gKYCmKAyuMRk3TLwB8mU
scenes-app-settings-organization--settings-organization-cimd-verification-tokens--light:
- hash: v1.k794b7964.f8e6e09fece0606bf88bc56a28df620ca35205115c82ed2ba745da9728a7e94e.LqKzj4PosHsLg8DKJv2g324FNhR1TfZ7qZgQHJ885m8
+ hash: v1.k794b7964.1d6dbf3dba9f75aae520cf56ef815e8dc7e932acc10bfec6031b4eb4e53ab628.w7vPEI58U0oa9INjEi9EC1Xd3pBRlrYwTiWSePI4vYU
scenes-app-settings-organization--settings-organization-danger-zone--dark:
- hash: v1.k794b7964.53cae501b65425eeeb065d19691d5ac2ae6fe6ba46d22fd9beef6221f9a1e9e5.MVJgHhQL0pG8mTmBnvjeOA--OHI0IY4s0uJ1EY06a-M
+ hash: v1.k794b7964.867d988ffdbf9c726d6ab83807221645f0fbae9c359c8709f9fbf08f3b1cec88.3JMIR_hmhxpJboMqTS0ct3bTTOlxh5VbwuhHy3T9g10
scenes-app-settings-organization--settings-organization-danger-zone--light:
- hash: v1.k794b7964.d94207cbb5cb28e15e4aa2811cfaa432549f1f6e9676a33be4af6691bcd2c2a5.9sB3V8VlyYhOIyA9Vw3NAOjcEww_FON4oT-Y9z5h3X4
+ hash: v1.k794b7964.a8ac193ef1b532eedef6a4fe1cf4d635ae9d534d6fa9ff6587ec275d0d3dc3c9.9CMfNkKLzTH25mSuHWnWRDrDzzmkQ6dvDTP0wcrmG88
scenes-app-settings-organization--settings-organization-details--dark:
- hash: v1.k794b7964.aa20bd662940eed2aa7684314d23b2b9d1da59c223d48d930694b26176214b0f.r1bU7Yf6o_vFCFW3IsKpM_4TuG0SXPAlKjXJmx7ixYI
+ hash: v1.k794b7964.2256d4b72f1459da4dd1f581565e31bc9c616591f38811d042885d53e40de30e._GaTL5fs_SlTLyKIIhPghCfUmnHhDZ2NjV-I6-BFqWw
scenes-app-settings-organization--settings-organization-details--light:
- hash: v1.k794b7964.cc797b5816e079594c687cec240e13d5d3411403e247720f6fcaf5f0f5d72318.FMc09Ob0_HMh5d-SMZEDeOX4on05IH5IMBt7Acnp1_o
+ hash: v1.k794b7964.9781a419684f76d0a57fa0cd42f12611e62fa465c3d4333895d56692874814e8.lqv5Y3ANHDiqc9XiYCXRtAODQsPj-z7UtkUKDz8o8cE
scenes-app-settings-organization--settings-organization-members--dark:
- hash: v1.k794b7964.948d0954a165c99ab171b301859c367a8f9f12d0223cb15c21ddcdf1422db5cd.IZd4QIb61gDvqT4SsyTTSBb_3RJSlbpHBCj8KY4na1A
+ hash: v1.k794b7964.6aef318a653669fea6b6add79658543ed258f547bb106c37596d5c70ec8d4178.8OtqYfyqUVf3UTj0SAk9NYA6ewz0Ddo5rSwx5G_dGWY
scenes-app-settings-organization--settings-organization-members--light:
- hash: v1.k794b7964.e07387a759dc6da65770169c4fe4cb98c1d1003008cf5f582a3216ee0a9bab30.Jr1pIlyjYxv803qMJJuhMHhv_uJPI_nlK1nYl0Oon_0
+ hash: v1.k794b7964.6ad7ec139f4a2df23d2e9f6885b92d0b0a158ca6ddb53922b732fb81ff1b1e36.ATusDWVeMcqrhUOLXDf3Pxu1P7eZNMUK7eGcekp5tKk
scenes-app-settings-organization--settings-organization-proxy--dark:
- hash: v1.k794b7964.8a48611a334ba1c56f561e631370afd0e44b1df18fad355ab94e1a4532d0ce84.McboI3SIr3q_k8jj8rfF_84-37fuWVXeQ544jxc_vQM
+ hash: v1.k794b7964.15bec0b0e82a5f683cb3c340e677d88f34f11e2b853a9b0a8979fe827f601caa.yy2dp_t-YIsX-IMk-akbGvaqwblNTRj-Ur-cEX-6pxM
scenes-app-settings-organization--settings-organization-proxy--light:
- hash: v1.k794b7964.aba4c78a1165f794a106feacf42b4a76632d612c6f40f29b73876a0d5287c0d0.vYTqNBN2Tt3VWCswaOjFndRsCtF4RsA_z0mUrGVo4X4
+ hash: v1.k794b7964.ca6711fda75d1a93c17bd393dba70a0e3fe39f0c69c6eb875bf26d7830ad7a1c.2TJIPEFn6hMIdKEKRKfxNb0Cgb4-eTX_7EIeiqneb4o
scenes-app-settings-organization--settings-organization-roles--dark:
- hash: v1.k794b7964.d35d0644407ff52a6b5f78c40f0eb2f3b790a55617f0b9e0c06830108fd4e476.gD1y_gtWUf-N7hwNMlDyH1qm3YlTEc58cGc-xs4dkI8
+ hash: v1.k794b7964.1d627f347491253087f9a5d216474f6d09fde3cb1d45f64e1b96ea1568bfc4d0.b7F2ZGKss9BbfCM0evgT1si3DdQmv1-ZQ8DtcJVKpfw
scenes-app-settings-organization--settings-organization-roles--light:
- hash: v1.k794b7964.ad2b96d6dbf17c320ecf825fba78373f8e99cc19e76afb490214758f019532be.2qkeKvMmUNNUcpySEqt3Ek7cY4ZVKDHVWEt0gRHvC9o
+ hash: v1.k794b7964.f574db882ea9594a0f869580c6c740c18a56413449e4a2e6ec46b4f3de930b2b.xUhriiYCLLFouXSy_Umgj2tzBhduQyFp_3WKSR3irWY
scenes-app-settings-organization--settings-organization-startup-program--dark:
- hash: v1.k794b7964.4270642327ef0e620b0fcf1c7293785fcd21b913ddc3c562c39f42982bf04465.HDv3_jxEB_Vj7dAGxTgVv-vNdde4gto0St17AFnZ0DM
+ hash: v1.k794b7964.7c38f15cb474472ba874c64b38b662b054dcff21a3a88abea40d90b1ac6fc244.j8m_DqBlLevZcpdZqWhZhPdrnaY-52r6Kdebi3Iq330
scenes-app-settings-organization--settings-organization-startup-program--light:
- hash: v1.k794b7964.9016cd7cbeec9dd377732c7e3067b77d6ea3f51a10adc322ffa0b9d11c2a2b05.LrClyfeQk_V83_vqiWZ6Q3SJPbZuW3VxKOuru2VAeEA
+ hash: v1.k794b7964.5d490e1b8cd3d1e869cbba1322efccc90fb11af9cc91ef89dc9dbefe427b469c.7OvFVw4pxTBsYRrOdkvDnERRoDnaf8UIipHLyD3C5Q0
scenes-app-settings-project--settings-project-access-control--dark:
- hash: v1.k794b7964.c5ea10cc0b9014f139683d49a60329533bbcd774c281b8d58395797965583355.qRo6oX_MO91PTGyG1rt9vRhP4kDyts_nVSeWI6gw6VQ
+ hash: v1.k794b7964.49870046c9f07e40352878967b065fccdeac56c4172d0740b94ba1362defaf0a.jeAJO8AiDjxzGvblYXvm9PeYbGT2V7zJZWMs_kYL_l8
scenes-app-settings-project--settings-project-access-control--light:
- hash: v1.k794b7964.f349c742ec3ef646f88c4400f287569a4fd61d2f943010b37b7848daa49407d2.hpUfZ6m9YDEgYylfqQKLE_cGezkmn738em6fmwdYdmY
+ hash: v1.k794b7964.3d7331357e4d1e29d9aef37e7842655ac6a402ee50986865fd691658aa310fed.f3Kv6JCilf6Z0Fn17b2FDgoBVEDL-1kndsGRpp6JfC0
scenes-app-settings-project--settings-project-autocapture--dark:
- hash: v1.k794b7964.e92fb6c59f611c46950a85444866f8aae03fe8c6713403fc0e1fa090a1d3471f.NS-EfkNFKqR9x53cuKBAK5Jwb3RRzFB0K44GMdJlgyA
+ hash: v1.k794b7964.367793a59557b95b8aa86c9e00c3bcc423034d459da8b28289a49b7bd15cea0e._ua3xjzAHeLUQIBGcuLqefAG46g4C-_dZem5Q_tstnE
scenes-app-settings-project--settings-project-autocapture--light:
- hash: v1.k794b7964.686906b13609b91551ae24ab45ae35b172b2bdaaf66eabd46d40fb4c44e4bde8.MANwMy04AxPk1gPftNkbi1DFc692rJ_c7mqQtZ5xrVA
+ hash: v1.k794b7964.ddd15585ea6a89508138aa795a12cebd7effc392c102430bafbb77113ef8ba9a.9bM392Ni3oqf8QBFySkyX4wTSIJG1ouWSo6CKBvJenE
scenes-app-settings-project--settings-project-customization--dark:
- hash: v1.k794b7964.ee2f6721a73ddb3d7039f049aae8875dd708a66f8216c3920cd5067daea467b9.CCLH8h_GmASECi0FE-VRxSlZ67Z1zkKKWJBmhHr9T0Q
+ hash: v1.k794b7964.71795ad88959169a3a4a17f6ce92757a2292766eed9ed3a3cdbaedc8affdadd0.Tjw6RIxtgMo9NVzSuVBagvAS2-O7k78k2ezjSs-hJPU
scenes-app-settings-project--settings-project-customization--light:
- hash: v1.k794b7964.6ef28ce703b233b976d1cfc18beaf438b4d42dbb2d24d2c74f230506d7dfc85e._oK61ibMjl2DJlkrM51CmcDur5M_OsKqeYji4pfswAw
+ hash: v1.k794b7964.96948ceecb6e12500c96b15c864f5798000e2f2fab8a153c5f99e91e436caaa4.Yvt028MglY6Tfp7USGflPUwg06j5Z-d1tbbpt-qhXUs
scenes-app-settings-project--settings-project-danger-zone--dark:
- hash: v1.k794b7964.4be415dad77cd1906873786db55808942eeaecfbcf3b228c3c0d2151b888fa7c.1cEC7XnNveFuR6PC9jQd20m7PZZBU7l48v49CfgT8qU
+ hash: v1.k794b7964.632029887a9163e6bf63fb858a12ffd5961e74d1b4620dfedb3f62136c3235f6.D8RCP1-GJgTlyVConcz8OzY93yAsKQgt5bneduEZF3U
scenes-app-settings-project--settings-project-danger-zone--light:
- hash: v1.k794b7964.b2fcdaef3a64a7d32e72c99bb2e7459f414332298eb9c107c18bb0f96fd4c57b.aUrhYzQEe_j7lZ83TOmJnrIrxfH-59VFZpehjiXhGnU
+ hash: v1.k794b7964.fc5e270c54ab49424a239c965265ff62c0fb07933a7c311b308a7674ae54939f.Q8ARqyXqY87twnQmC-JEPD3xsYYEVB0Fzdl-G3TvVO0
scenes-app-settings-project--settings-project-details--dark:
- hash: v1.k794b7964.b4509f8083d8f1289e15997fd4a64b9b9719b001815d39a0a6ac2b623e0671b9.QDQ53WB-CKpjNUMmU0oxjoH2DeZgV_A4t3dGVXCnbog
+ hash: v1.k794b7964.8eb201b594afa8d78a6b75f9a6a08a11b3b114116e7dc28ecf5e262f0383da0a.CSOHqxFkKwDYwCMo0nCwJb3hvZnFG-sxmMRMMlQpphg
scenes-app-settings-project--settings-project-details--light:
- hash: v1.k794b7964.ee221714e08e9f75d8ee360c0a7a9ee26827772d50ae47e7cb6f13c4562a0783.bznURWK98FkoypEVCceYH123iP8F98TIdncaNXipOLk
+ hash: v1.k794b7964.049d345f0429bddbf2894d4dd40e34d3e288df344417ded61f6661748727ac61.WSSiL4Z_fjZ00_bx-hdI6G_WQiYI64Vohy4G0opZdvQ
scenes-app-settings-project--settings-project-integrations--dark:
- hash: v1.k794b7964.8bc9a0a3c68e9379000d45e767214553c220039f07512af99d61892720b7d9aa.kZh5Y-9-hiGOasm25v6q0g1yP19cwrxXfEJwFQViNgs
+ hash: v1.k794b7964.95cb5dadb923df180feb7d258e1d555847b13fdea54037e16ccd35ad87e1d17c.LT3vQw8uYN0USkoTFMe1KfAczu68RZ8BqnpYd0mcPFE
scenes-app-settings-project--settings-project-integrations--light:
- hash: v1.k794b7964.7e44eb5f34601ea71f789a14566d68ee8cd899515623d56eb7ac5de3b4a298c1.pFj4r7sp0_7x1jsWXx-KeXTNp5UGnrhntrc0Zg8TDqI
+ hash: v1.k794b7964.19116f57a291558ee81b08364acb1c30a67268886c226e53bcfc8bc67254f41a.OtyAhLk29qMlG7X3ml3sy3ASLx8tVrDc4EC9WH0zH1w
scenes-app-settings-project--settings-project-logs--dark:
hash: v1.k794b7964.49d053d0783c37817aef5a402d8b00781837f6d4fcf96ce8018dcc439ee744f6.XDbj-HU8eX-2niM5nkM6KmkxOLY_sD30DE6_93XKRsU
scenes-app-settings-project--settings-project-logs--light:
@@ -12531,17 +12543,17 @@ snapshots:
scenes-app-settings-project--settings-project-logs-read-only--light:
hash: v1.k794b7964.4e11ad0c20b5ae6426397736a50c17ba21f6750d95d1a0a9f3106ed9cfc002ba.TrjQhBRaVixnEN_lFBvMriCqDdY0iA3Q2tdHRAybdvs
scenes-app-settings-project--settings-project-product-analytics--dark:
- hash: v1.k794b7964.b10de8b10188706f5c4f68dd47b9c025b3628ab5beb049146a0c720a88395d19.wmngiMzSh7nfJWDqAHtB9faWb82pf2wcY-iCh80QOlY
+ hash: v1.k794b7964.e57b7a6f926b5872a2b68f46582fd3e4e6b727596e3ef4a4558e779b49a352ac.5Me_sWEDBM3LMuxMe0H-k7LA-36g9C8MY4y2TQ4Vos4
scenes-app-settings-project--settings-project-product-analytics--light:
- hash: v1.k794b7964.ecfb8d5b50fbb4178deeaaf082b9cd529c9609414250a745a1853e1e0c392824.whegFxqjAO0hFRuYhi0Kzwv_sxc8X97GQv4guMLnr2w
+ hash: v1.k794b7964.0cc6dd6b693d16d9f7631ff5b790c1119e2d0da257b35dbc7f34ddc1a5700bb4.-rrXfVpg290Lt-JqOFkg8lmkpwofu3dVyAwzwbYEcXA
scenes-app-settings-project--settings-project-replay--dark:
- hash: v1.k794b7964.b1af4063b804beadbba24c8301e93ced6c71b1ca20947022ebf797e9bd39f4aa.QfJXFIuYOf8oIvlYD-xn0dEhrlXgv2hGjuzGralUV70
+ hash: v1.k794b7964.11ab13055db9cd01d23fbf7ba68c2a6e7e2d96c425ec55d17071343d0ceb9fbe.AfS0p25RQCJdM397CDqEohGW4oL0VzM_Keu5cy31h4k
scenes-app-settings-project--settings-project-replay--light:
- hash: v1.k794b7964.3535b5df78348e511d819cda189c23e0fd2756d32836e0473f8606bc45c1931e.wxm0ZnqZ6na25AujUKTVlw2fyAH38uyvhMBFQEwPz34
+ hash: v1.k794b7964.4fa902d321e31edd8b7c659cacde22cc57a994f7b444a55b48291674f4b84c82.HyYxhMcFF7da_NIgLkXGdhc_AMghQsd67LRyBUv4x-E
scenes-app-settings-project--settings-project-surveys--dark:
- hash: v1.k794b7964.b2de0cd0533566c2406e9c66bcbe6a83c6f7b2bd0e1862027ba36a33a78624d1.D6LgyASNsXWSr98qx80h-brseJENrtIOMEJsSNN9sUo
+ hash: v1.k794b7964.93099f7e46eaa66e5b9f3eba6b70aa69ceaaf0786b95ed79a7753924d122b842.iC1qmybD8mAe7Ihi2ap5XtIqBFz9l9uv_966eEQFpwY
scenes-app-settings-project--settings-project-surveys--light:
- hash: v1.k794b7964.1dce2d50ae8e763257abefd34003f487df7baa41b6313291544ef850594c67eb.FZ2Kzj3Zzi8EPr4bXptpzNAps-OhQ0Je0kW17u3dXwc
+ hash: v1.k794b7964.6611100119f818929710afe1908a03b4f35abd051b31f5bcb2c60b5ec990b18b.qQVqjp7R80XdPDR4C3ND7SgpzWlnK20Z1ByZOP87qPM
scenes-app-settings-settingsectionunavailable--admin-only--dark:
hash: v1.k794b7964.b6580b1a9c7735f0b03e9d5b58954169a1772b47bc2ae449f14771e1c5281a7b.Pp01b8BavwsYTSE4Mo3Q57hwN0X73qsh7JDbp7_DORo
scenes-app-settings-settingsectionunavailable--admin-only--light:
@@ -12551,9 +12563,9 @@ snapshots:
scenes-app-settings-settingsectionunavailable--not-enabled--light:
hash: v1.k794b7964.06e88a65c54124deb1ddd8236f4473695e5a87d5360ae5ab266779e9fc118f0b.m-LRG6zgQ_Ci4Y8_7H8N1OSIa2-GAzu9ZogXu0IDCdk
scenes-app-settings-user--settings-user-api-keys--dark:
- hash: v1.k794b7964.018cdff94d8593dea7f71a8beef867b5862dcccea79d7302ddd5bd2e7c22e84d.GANOBePxom88yyGcpQWwClTagqDPdu1QaundI0J0xuM
+ hash: v1.k794b7964.e42e11aa1a91cb44a4a17ce067a0d8506b6fa8a6db999289e5c4b8bad644c87a.DD0lM88FSphqMyyXgJDzWB5ykTJ61QlYBQha_n6534w
scenes-app-settings-user--settings-user-api-keys--light:
- hash: v1.k794b7964.9640239f3cb8279e7ccf48a26fe1079aacf98506f941db320ea4426766216507.SSXar-Jc8Nez5KO6KIBzJxxMOhj0dMrc1un4-jJrLD8
+ hash: v1.k794b7964.b61fbe892c6618e543c6a2caa7ee775912a2e0a68ef62f06cf6a26b0546a3e29.6BCHwovlOphg5Luv0-SQYtK9SZa3CQ6eO2bwA857VUw
scenes-app-settings-user--settings-user-backup-codes-modal--dark:
hash: v1.k794b7964.fee174652504bedf45b5050dae77b7f38ffaac07d04c14c8c77b010d565cba97.n_drnTbGpOMa04Hy05-KZlJhx74bmdscz3V2bjDSQiw
scenes-app-settings-user--settings-user-backup-codes-modal--light:
@@ -12563,37 +12575,37 @@ snapshots:
scenes-app-settings-user--settings-user-backup-codes-modal-generated--light:
hash: v1.k794b7964.9c51bd1bd794659c4b6fdf9a5612dbf375e08f30375778c77cd79caff47c5aa7.s_2QKaTg7Wc2fBiUbAXjD4TG43A37T9Bpbrj3XFCN_Q
scenes-app-settings-user--settings-user-customization--dark:
- hash: v1.k794b7964.3045408e193e8e615527308d22dc413de653dda5d6c43805e7132e9f3840f4cb.b9QA2XgUqj92RL5nj3twT9YKKhCeCzTsVLAGPdQ6-ms
+ hash: v1.k794b7964.e975ecebfd7f96489ec347642318cbe4637a56e574f706574cd18d6d497a30a1.7qbkhCs4SgA5chfCQgoqOO21DZfrr0JX-rwW7jK6I2M
scenes-app-settings-user--settings-user-customization--light:
- hash: v1.k794b7964.060094abba224302a994668db661b12e8ae212196475ee499484f20f761b3d79.K4YyuPaBVOOQte4OrQrTtPBXeBhyknd6nyC6x4ztaIo
+ hash: v1.k794b7964.e72e96c0727036712edf311568f4ebc3ccfd4323b71459b4451a6bf9de4de402.7B5x64EE3syKdXKnKvrHKO3tfXIAcGm1sZPc9nQQCc8
scenes-app-settings-user--settings-user-danger-zone--dark:
- hash: v1.k794b7964.4fa6c4238b06ef1c1dd0c749ef72a6e8d12e0a8d73f233bbf6ee15afe13f4c37.gqVHsXRhQu5FMrVIQCU_1b7zyTXlYVcJQAu3h4jJcFM
+ hash: v1.k794b7964.9058f703dd70cd0651c1ea404b4fadaa91288dfb2b94b464a88f6eb67a03539e.YOxHBc0K_cuRU7tbSqVdJRsRGlBk5mJChiqtmaYacXw
scenes-app-settings-user--settings-user-danger-zone--light:
- hash: v1.k794b7964.588b1d5390399d7d71e55ed023f0af6576e5b37c8fa491b6d6ccbf123f48732b.M6r-NkphdCHOZ7CToPy_CTgIHFn4L1QP8YO2NLs-DW8
+ hash: v1.k794b7964.edc4ae8ca513ef05fa7703328e2343574dbb82e5e28cfa738f835bfd3803d6db.DqhTaXNitk3kZzUiFZTrMDgO6i61ubA-7EIffV6Ov3E
scenes-app-settings-user--settings-user-navigation--dark:
- hash: v1.k794b7964.8dd30d75f10b3f85822b3112314e290a388d0f4dbb6d1e9ba9a81fc28597cd48.sQAtho9f7Yt0I3JriLx4Ig_HTzp6pFZZ2foD9_3r8bY
+ hash: v1.k794b7964.29a279a4a867e1100bea247d212b518236095653253caad287bf66fa378fbdd8.0Ju66FAa99_0vLxD6GGu1lMfF56NuI3y030O8_lL8tg
scenes-app-settings-user--settings-user-navigation--light:
- hash: v1.k794b7964.ee8b6cb54e1187aa157a2bbeadd7fe04d4c5f1f25324a14d99e3db29cc57b451.sQdEM5dOgggHj23fURR3CQ9CM9-EZBHbFJiKoUpfczY
+ hash: v1.k794b7964.722ec73a88717e1d48ad24b519bfcd7fa5acc11ef148dfbd16f480f875453438.bUWYDrZzcB0-QpQtKuK4EMqtwp5ibiNNNmiYAK25Kv0
scenes-app-settings-user--settings-user-notifications--dark:
- hash: v1.k794b7964.1fc4163c567f18057b929328e07459c13277805442523070136233c17d5e633a.Tbp1Kb6RmIhrzsmp7CWml5LEnFyy9iY9-A-lTK-h76c
+ hash: v1.k794b7964.a94b30c47d35141bca14de4c5b4dc72653f4124028d1a406a632616d754da53a.2Tdvbimb8y6SxBJTx7DNI1aC3CTzGRIPPJl4NdxAJ0A
scenes-app-settings-user--settings-user-notifications--light:
- hash: v1.k794b7964.1d238eb22fba4c223038a8a9be5d13ca4a7eb944f0ce07ed5402d270249923d9.HNm6rvMowebOKIqjSZORE_6aLQAHiqSd6DMw-Su8dYI
+ hash: v1.k794b7964.00f6c89b732eeb7798faeb348aa44f4965b8b987ad98d5cab507ad33b9d98eac.4k2dcG7-4JN2iJm8wbYd-PR3FtnbVXebrNX7wsT57E0
scenes-app-settings-user--settings-user-profile--dark:
- hash: v1.k794b7964.83fafff8b1a57762a360843935973a8950f029750d5a4bf08f3190d7b3adfa27.bi_Feo8myzqGy96qOZRLMojF-VfkCWmC0qk5-ZJlGGc
+ hash: v1.k794b7964.dce2579b47f97e5a58d0a95ba629c3875b4abe191c065b60a33fa8687fb4776b.E9F1TcwoL6EA-w1BqMsxml5TjPif8IbFS4pYMaw7i7w
scenes-app-settings-user--settings-user-profile--light:
- hash: v1.k794b7964.a0b486f9b0e72b99cd0fd4f81e82cc03659f6e390ef250d2dc9ee962741a1a3a.S5gHNNqZtvyF_SXMgDISUTI6I85I72nc7v2OKtEIMZ0
+ hash: v1.k794b7964.8ffe6b16f5e78062fd7c88a18a608a9331a1e36921f56883d5e8f1b664985b98.5gxdOTcOem6AzGIX1oHUW2ZwNQcqP_SJKOkeuA8X9Cc
scenes-app-settings-user--settings-user-profile-hedgehog-avatar--dark:
- hash: v1.k794b7964.20dfb98bd32dfc24e5970be5eec3ab3e7f7f2d2bf0d4a14ab7d5125ce8790af9.zJ9b3p2PBVjnlL9vtCssJJnh1KQtw8gDxm_LH2rKmy0
+ hash: v1.k794b7964.3ee20208ed67fe5db40b58a20b2e1f6ac704dd9e375e2bed27de3ed02270b99c.kIAKvRKhyuk1BqK1Qyx5PNgZl4heWhfjwqlsszB9ZJA
scenes-app-settings-user--settings-user-profile-hedgehog-avatar--light:
- hash: v1.k794b7964.f084e072a7a26ec829a01c5ad48e6809cc6e3b74aeeb5f988832aa0e26bafa55.oQ-PmhBcXwy6i_GzZK_AkhqWwHq9DFgsNlrOi6hXp60
+ hash: v1.k794b7964.71e76fb88d97b787ad91e975b2849e901a9ea4379208fd5f4d2f3097e8f29ba4.sfxcPbT_tgDW6GaSZ0Mdl6bKg2VDv_00B3BK9DuUW2k
scenes-app-settings-user--settings-user-profile-stale-session--dark:
- hash: v1.k794b7964.3b7c016ddd09e595239ead276cf9ee430ffc41ebbd80d611b21f5e8be484bcca.Ht4Lfz6Ty0dOyyhvXAHPE-gUW6Rvb8dAid1ZVaAh4sI
+ hash: v1.k794b7964.dce2579b47f97e5a58d0a95ba629c3875b4abe191c065b60a33fa8687fb4776b.TyitjPYUCQvHoaI2XPLKHiKLzAV0bSxwX4Onk-T4FD8
scenes-app-settings-user--settings-user-profile-stale-session--light:
- hash: v1.k794b7964.7065458715c17c9b865c3574e941fe1ff3a9a8370f5774031d05e38033f9a919.0DsA-uuULQts_SJaYekwBuM3d5D0UcEh1o2adba-6J8
+ hash: v1.k794b7964.8ffe6b16f5e78062fd7c88a18a608a9331a1e36921f56883d5e8f1b664985b98.NNTG12lYTC-5DWD6cDu8lOgd71p1vsDAzkEjlIELDw8
scenes-app-settings-user--settings-user-reminders-modal--dark:
- hash: v1.k794b7964.d0767a8deef594f605dea9ffde6b7fc39276ba9dd2673558fbffa4452afa17a3.nAo3JBm4U0nqWPSI9hPJDAiTYAZjhytrSWTCcBeh5to
+ hash: v1.k794b7964.9243d15efd327e7472d3fa6af8b951f5097bb715e952ce0dc64fa0cb97cea1b2.mROZaY7KHDyFw4Q64C19_zUFcRMx_7FbDsUls0XOSUY
scenes-app-settings-user--settings-user-reminders-modal--light:
- hash: v1.k794b7964.fd4e6cef9717acd549a70ae2618b1327454c06028bab22e3f3f8bdebf37f94a7.Sy_iHcMFIQNixUcgJE0WkbH3pSmIwDeIRZoxT2EfEQU
+ hash: v1.k794b7964.ea4a5219c132113470e070b0c2e551c29976e1065a508203c4ea15328fbc82d7.-oXY468_eaA-tFzx4mkDqBkYhTkXq2ClYvAURjZCbzk
scenes-app-sidepanels--side-panel-access-control--dark:
hash: v1.k794b7964.cde211ffacaa6094bdd1287c1518b614db47847807f8d0657fd2a17bed79bbc4.ZHgX_KskdNRu66iyKIFsK48AXBW2YgfbWKoR0QgJ_N4
scenes-app-sidepanels--side-panel-access-control--light:
@@ -13667,17 +13679,17 @@ snapshots:
scenes-other-onboarding-shared-wizard-sync-card--stalled--light:
hash: v1.k794b7964.b52a107e85cd22687e6bc1dcf23a4067f185915e7aaa4518b39ef1bbfefe87ac.TU0cv3huC_bueumE3zh9JXnBoRGtM6FKvdbtqCcUL4c
scenes-other-org-member-invites--current-user-is-admin--dark:
- hash: v1.k794b7964.ec53183f80d7e83191a0e4dd75d07e2e8711744e44e6e0f8c0f0e418a34f7f06.NfjMFHuMD7wEXsV3BYObaYf4ZGHBFrYafbQOA7bh0O8
+ hash: v1.k794b7964.be9a1ece2efdf9208c65d2a67a26292db96d2f60511fc10a6cb0d40d0fbc9c54.p0GvtSnXDf-lsCI5znv42HTMyE7ljSNXpFnuB59QN24
scenes-other-org-member-invites--current-user-is-admin--light:
- hash: v1.k794b7964.b2d0b70d2e055ed6222eb4d07207554fa5a3c6c4c3f71a31bad36d175ff0d1b7.e-tehFiLj550rzzAnfHN_PYWaPaJ6xY-SoyTEsh13Ig
+ hash: v1.k794b7964.939816bff426d914c391b76c2c8bc1a1f96102f37917b27508c319d4e76c29c9.bIb_1hQ0FN2s_Rbe1pWhrQPOIDBAUtbfaIFvyMQ6yn4
scenes-other-org-member-invites--current-user-is-member--dark:
- hash: v1.k794b7964.c7ed7d130d2baef7b4d264efd4690574a9c402f98506baa9ebfd5d518232e680.EdG48Pk4q8O9VthkPDVuidIQ74WojJ3d-dIsfxLDzJw
+ hash: v1.k794b7964.163babc85bd17648c957bdc14503b6206b9501ba3d716d8258726baa41d55c51.DgZPwclp8_xhfS9Js2Zep6H_nrpXVkysy4cVeNc7xxA
scenes-other-org-member-invites--current-user-is-member--light:
- hash: v1.k794b7964.798c856eb2da1354f0ad18fa67f9f1398ea7f371c0deeec3c374830c8c7768be.oeN5eo_NXtcHxgUVJ9_5TOV4-Amj2ImTSAKWT17TsQM
+ hash: v1.k794b7964.c5cf533ae1d47e7ec5f62bd46a66dc58c7fb88eea107631c54315e6b279c5b96.BnTpNMbz3u6u4HbHM-9UrH97Iz1JaVY9QK-xbGvjU30
scenes-other-org-member-invites--current-user-is-owner--dark:
- hash: v1.k794b7964.ec53183f80d7e83191a0e4dd75d07e2e8711744e44e6e0f8c0f0e418a34f7f06.a3CB3mN1YwlYU9zbszIi_QLBM8SruNyLKd1oTwPH-oI
+ hash: v1.k794b7964.be9a1ece2efdf9208c65d2a67a26292db96d2f60511fc10a6cb0d40d0fbc9c54.rcSpTMZwZtdr1riSCvoqMNd8lNQcNHl0byhjV0afB60
scenes-other-org-member-invites--current-user-is-owner--light:
- hash: v1.k794b7964.b2d0b70d2e055ed6222eb4d07207554fa5a3c6c4c3f71a31bad36d175ff0d1b7.O7gZlrxBwBy7o4DG5vAx-R4mku8UtyRPtWAJpM3kq54
+ hash: v1.k794b7964.939816bff426d914c391b76c2c8bc1a1f96102f37917b27508c319d4e76c29c9.K5kylI3gzcqvqJklnKGZaQTFqZJEgj0Nwa6mKVLwcME
scenes-other-organization-deactivated--deactivated--dark:
hash: v1.k794b7964.c97f1ed943259f5567c27813c96bbb0566aca0adbf84459ee7d56b2ebea36b57.SgcQHuoYp4dLjnk797pwVsGonoLU6rH2XdLf0lrzefk
scenes-other-organization-deactivated--deactivated--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 0f9fd8da30b5..14b7b1eb1305 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -457,6 +457,7 @@ export const FEATURE_FLAGS = {
POSTHOG_AI_CONVERSATION_FEEDBACK_LLMA_SESSIONS: 'posthog-ai-conversation-feedback-llma-sessions', // owner: #team-posthog-ai
POSTHOG_AI_QUEUE_MESSAGES_SYSTEM: 'posthog-ai-queue-messages-system', // owner: #team-posthog-ai
POSTHOG_CODE_BILLING: 'posthog-code-billing', // owner: #team-desktop
+ POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD: 'posthog-code-codex-own-subscription-cloud', // owner: #team-desktop, gates the Codex subscription settings and the composer billing row
POSTHOG_CODE_TASK_ANALYSIS: 'posthog-code-task-analysis', // owner: #team-desktop
POSTHOG_CONNECT: 'posthog-connect', // owner: @Gilbert09, gates the "connect another PostHog project" personal integration
POSTHOG_DESKTOP_CLOUD_COMPUTE_BILLING: 'posthog-desktop-cloud-compute-billing', // owner: #team-desktop
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index 4d16b5360db9..1f2b6caad533 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -189,6 +189,7 @@ import { MCPHintsSetting } from './user/MCPHintsSetting'
import { OptOutCapture } from './user/OptOutCapture'
import { PasskeySettings } from './user/PasskeySettings'
import { PersonalAPIKeys } from './user/PersonalAPIKeys'
+import { PersonalCodexIntegration } from './user/PersonalCodexIntegration'
import { PersonalGitHubIntegrations, PersonalSlackIntegrations } from './user/PersonalIntegrations'
import { ProfilePictureSettings } from './user/ProfilePictureSettings'
import { RealtimeNotificationPreferences } from './user/RealtimeNotificationPreferences'
@@ -404,6 +405,23 @@ export const SETTINGS_MAP: SettingSection[] = [
},
],
},
+ {
+ level: 'environment',
+ id: 'environment-ai-subscriptions',
+ title: 'Subscriptions',
+ group: 'AI',
+ flag: 'POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD',
+ settings: [
+ {
+ id: 'ai-subscription-codex',
+ title: 'Codex',
+ description:
+ 'Connect your ChatGPT account so your Codex cloud tasks can run on your own ChatGPT plan. The connection is yours and applies in every project.',
+ component: <PersonalCodexIntegration />,
+ keywords: ['codex', 'chatgpt', 'openai', 'subscription', 'plan', 'billing', 'cloud', 'personal'],
+ },
+ ],
+ },
{
level: 'environment',
id: 'posthog-mcp',
diff --git a/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx b/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx
index ce98312cc2c1..636698bf0c69 100644
--- a/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx
+++ b/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx
@@ -1,6 +1,8 @@
import { MOCK_DEFAULT_TEAM } from 'lib/api.mock'
import type { Meta, StoryObj } from '@storybook/react'
+import { within } from '@testing-library/dom'
+import userEvent from '@testing-library/user-event'
import { useActions } from 'kea'
import { router } from 'kea-router'
import { useEffect, useState } from 'react'
@@ -273,3 +275,55 @@ export const SettingsEnvironmentBusinessKnowledgeLearningOnSupportOff: Story = {
}),
],
}
+
+const codexSubscriptionMocks = (codex: Record<string, unknown>): Record<string, Record<string, unknown>> => ({
+ get: {
+ '/api/users/@me/integrations/codex/': codex,
+ },
+})
+
+export const SettingsEnvironmentAiSubscriptionsCodexConnected: Story = {
+ args: { sectionId: 'environment-ai-subscriptions' },
+ parameters: {
+ msw: {
+ mocks: codexSubscriptionMocks({
+ status: 'connected',
+ plan_type: 'pro',
+ email: '[email protected]',
+ connected_at: '2023-05-20T10:00:00Z',
+ }),
+ },
+ },
+}
+
+export const SettingsEnvironmentAiSubscriptionsCodexReauthRequired: Story = {
+ args: { sectionId: 'environment-ai-subscriptions' },
+ parameters: {
+ msw: {
+ mocks: codexSubscriptionMocks({
+ status: 'reauth_required',
+ plan_type: 'plus',
+ email: '[email protected]',
+ connected_at: '2023-05-20T10:00:00Z',
+ }),
+ },
+ },
+}
+
+export const SettingsEnvironmentAiSubscriptionsCodexConnectModal: Story = {
+ args: { sectionId: 'environment-ai-subscriptions' },
+ parameters: {
+ msw: {
+ mocks: codexSubscriptionMocks({
+ status: 'not_connected',
+ plan_type: null,
+ email: null,
+ connected_at: null,
+ }),
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement)
+ await userEvent.click(await canvas.findByText('Connect Codex'))
+ },
+}
diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.ts
index 0f165877b2d3..1b871cf55007 100644
--- a/frontend/src/scenes/settings/types.ts
+++ b/frontend/src/scenes/settings/types.ts
@@ -55,6 +55,7 @@ export type SettingSectionId =
| 'environment-secret-api-keys'
| 'environment-surveys'
| 'environment-task-agents'
+ | 'environment-ai-subscriptions'
| 'environment-tracing'
| 'environment-web-analytics'
| 'environment-workflows'
@@ -290,6 +291,7 @@ export type SettingId =
| 'surveys-default-appearance'
| 'surveys-interface'
| 'task-agent-my-preference'
+ | 'ai-subscription-codex'
| 'task-agent-project-default'
| 'theme'
| 'tracing-distinct-id-attribute-keys'
diff --git a/frontend/src/scenes/settings/user/CodexConnectModal.tsx b/frontend/src/scenes/settings/user/CodexConnectModal.tsx
new file mode 100644
index 000000000000..ee8c01feb93e
--- /dev/null
+++ b/frontend/src/scenes/settings/user/CodexConnectModal.tsx
@@ -0,0 +1,137 @@
+import { useActions, useValues } from 'kea'
+
+import { IconCheck } from '@posthog/icons'
+import { LemonBanner, LemonButton, LemonInput, LemonModal, LemonSegmentedButton, Link } from '@posthog/lemon-ui'
+
+import { CodeSnippet, Language } from 'lib/components/CodeSnippet'
+import { platformCommandControlKey } from 'lib/utils/dom'
+
+import { CODEX_LOGIN_PLATFORM_OPTIONS, codexLoginCommand } from './codexLoginCommands'
+import { personalCodexIntegrationLogic } from './personalCodexIntegrationLogic'
+
+const PLATFORM_HINTS = {
+ macos: 'Run it in Terminal.',
+ linux: 'Run it in a terminal. It needs wl-clipboard, xclip, or xsel to copy to the clipboard.',
+ windows: 'Run it in PowerShell.',
+}
+
+export const SETTINGS_CODEX_CONNECT_OPENER = 'settings'
+
+export interface CodexConnectModalProps {
+ /** Several surfaces can show the dialog at once. Each opens only for the opener that asked for it. */
+ opener: string
+}
+
+export function CodexConnectModal({ opener }: CodexConnectModalProps): JSX.Element {
+ const { connectModalOpener, authFileText, connectError, connecting, loginPlatform } =
+ useValues(personalCodexIntegrationLogic)
+ const { closeConnectModal, setLoginPlatform, commandCopied, pasteAuthFile, pasteFromClipboard, submitAuthFile } =
+ useActions(personalCodexIntegrationLogic)
+ const pasted = authFileText.length > 0
+
+ return (
+ <LemonModal
+ isOpen={connectModalOpener === opener}
+ onClose={closeConnectModal}
+ closable={!connecting}
+ title="Connect Codex"
+ description="Sign in to ChatGPT with a device code in your terminal. Then paste the sign-in here."
+ width={560}
+ footer={
+ <>
+ <LemonButton
+ type="secondary"
+ onClick={closeConnectModal}
+ disabledReason={connecting ? 'Connecting…' : undefined}
+ >
+ Cancel
+ </LemonButton>
+ <LemonButton
+ type="primary"
+ onClick={submitAuthFile}
+ loading={connecting}
+ disabledReason={!pasted ? 'Paste the sign-in first' : undefined}
+ data-attr="codex-connect-submit"
+ >
+ Connect
+ </LemonButton>
+ </>
+ }
+ >
+ <div className="flex flex-col gap-4">
+ <div className="flex flex-col gap-2">
+ <div className="flex flex-wrap items-center justify-between gap-2">
+ <h4 className="mb-0">1. Run this command</h4>
+ <LemonSegmentedButton
+ size="small"
+ value={loginPlatform}
+ onChange={setLoginPlatform}
+ options={CODEX_LOGIN_PLATFORM_OPTIONS}
+ data-attr="codex-login-platform"
+ />
+ </div>
+ <CodeSnippet
+ language={loginPlatform === 'windows' ? Language.Text : Language.Bash}
+ compact
+ wrap
+ thing="command"
+ onCopy={commandCopied}
+ >
+ {codexLoginCommand(loginPlatform)}
+ </CodeSnippet>
+ <p className="mb-0 text-xs text-secondary">
+ <span>{PLATFORM_HINTS[loginPlatform]}</span> Open the link that it shows, sign in, and enter the
+ one-time code. The command copies your sign-in to the clipboard and deletes its temporary
+ folder, so nothing stays on your computer.
+ </p>
+ <p className="mb-0 text-xs text-secondary">
+ You need the{' '}
+ <Link to="https://developers.openai.com/codex/cli" target="_blank">
+ Codex CLI
+ </Link>
+ . Install it with <code>npm install -g @openai/codex</code>.
+ </p>
+ <p className="mb-0 text-xs text-secondary">
+ Turn on device code login in your ChatGPT security settings first. In a ChatGPT workspace, an
+ admin turns it on in the workspace permissions.
+ </p>
+ </div>
+ <div className="flex flex-col gap-2">
+ <h4 className="mb-0">2. Paste the sign-in</h4>
+ <div className="flex flex-wrap items-center gap-2">
+ <LemonInput
+ className="min-w-48 flex-1"
+ value=""
+ onChange={() => undefined}
+ onPaste={(event) => {
+ event.preventDefault()
+ pasteAuthFile(event.clipboardData.getData('text'))
+ }}
+ placeholder={
+ pasted ? 'Sign-in received' : `Click here and press ${platformCommandControlKey('V')}`
+ }
+ suffix={pasted ? <IconCheck className="text-success" /> : undefined}
+ autoComplete="off"
+ spellCheck={false}
+ disabled={connecting}
+ data-attr="codex-auth-file-input"
+ />
+ <LemonButton
+ type="secondary"
+ onClick={pasteFromClipboard}
+ disabledReason={connecting ? 'Connecting…' : undefined}
+ data-attr="codex-paste-from-clipboard"
+ >
+ Paste from clipboard
+ </LemonButton>
+ </div>
+ </div>
+ {connectError ? <LemonBanner type="error">{connectError}</LemonBanner> : null}
+ <LemonBanner type="info">
+ PostHog never shows your sign-in and tries to clear your clipboard after you paste. It stores the
+ sign-in encrypted and uses it only for your Codex cloud tasks. You can disconnect at any time.
+ </LemonBanner>
+ </div>
+ </LemonModal>
+ )
+}
diff --git a/frontend/src/scenes/settings/user/PersonalCodexIntegration.tsx b/frontend/src/scenes/settings/user/PersonalCodexIntegration.tsx
new file mode 100644
index 000000000000..895b80c5e16e
--- /dev/null
+++ b/frontend/src/scenes/settings/user/PersonalCodexIntegration.tsx
@@ -0,0 +1,128 @@
+import { useActions, useValues } from 'kea'
+
+import { IconPlus, IconTerminal, IconTrash } from '@posthog/icons'
+import { LemonBanner, LemonButton, LemonDialog, LemonSkeleton, LemonTag } from '@posthog/lemon-ui'
+
+import { TZLabel } from 'lib/components/TZLabel'
+
+import { CodexIntegrationStatusEnumApi, type UserCodexIntegrationApi } from '~/generated/core/api.schemas'
+
+import { CodexConnectModal, SETTINGS_CODEX_CONNECT_OPENER } from './CodexConnectModal'
+import { personalCodexIntegrationLogic } from './personalCodexIntegrationLogic'
+
+function CodexAccountRow({ integration }: { integration: UserCodexIntegrationApi }): JSX.Element {
+ const { disconnectCodex } = useActions(personalCodexIntegrationLogic)
+ const { codexIntegrationLoading } = useValues(personalCodexIntegrationLogic)
+
+ const handleDisconnect = (): void => {
+ LemonDialog.open({
+ title: 'Disconnect Codex?',
+ description: (
+ <p>
+ PostHog removes your ChatGPT sign-in. Codex cloud tasks that use your ChatGPT plan stop working
+ until you connect again.
+ </p>
+ ),
+ primaryButton: {
+ children: 'Disconnect',
+ status: 'danger',
+ onClick: () => disconnectCodex(),
+ },
+ secondaryButton: { children: 'Cancel' },
+ })
+ }
+
+ return (
+ <div className="flex items-center gap-4 px-4 py-3">
+ <div className="shrink-0">
+ <div className="flex h-10 w-10 items-center justify-center rounded-md border bg-surface-secondary text-2xl">
+ <IconTerminal />
+ </div>
+ </div>
+ <div className="min-w-0 flex-1">
+ <div className="flex flex-wrap items-center gap-2">
+ <span className="font-semibold truncate">{integration.email || 'ChatGPT account'}</span>
+ {integration.plan_type ? (
+ <LemonTag type="muted" className="capitalize">
+ {`ChatGPT ${integration.plan_type}`}
+ </LemonTag>
+ ) : null}
+ </div>
+ <div className="mt-0.5 text-xs text-secondary">
+ {integration.connected_at ? (
+ <>
+ <span>Connected </span>
+ <TZLabel time={integration.connected_at} className="align-baseline" />
+ </>
+ ) : (
+ 'Connected'
+ )}
+ </div>
+ {integration.status === CodexIntegrationStatusEnumApi.ReauthRequired ? (
+ <LemonBanner type="error" className="mt-2">
+ Your ChatGPT sign-in stopped working. Connect Codex again to keep using your ChatGPT plan.
+ </LemonBanner>
+ ) : null}
+ </div>
+ <div className="flex shrink-0 items-center">
+ <LemonButton
+ size="small"
+ type="secondary"
+ status="danger"
+ icon={<IconTrash />}
+ onClick={handleDisconnect}
+ disabledReason={codexIntegrationLoading ? 'Loading…' : undefined}
+ tooltip="Disconnect Codex"
+ data-attr="codex-disconnect"
+ />
+ </div>
+ </div>
+ )
+}
+
+export function PersonalCodexIntegration(): JSX.Element {
+ const { codexIntegration, codexIntegrationLoadFailed, connecting } = useValues(personalCodexIntegrationLogic)
+ const { openConnectModal } = useActions(personalCodexIntegrationLogic)
+
+ if (codexIntegration === null) {
+ return codexIntegrationLoadFailed ? (
+ <LemonBanner type="error">Could not load your Codex connection. Refresh the page to try again.</LemonBanner>
+ ) : (
+ <LemonSkeleton className="h-16 w-full" />
+ )
+ }
+
+ const notConnected = codexIntegration.status === CodexIntegrationStatusEnumApi.NotConnected
+ const reauthRequired = codexIntegration.status === CodexIntegrationStatusEnumApi.ReauthRequired
+
+ return (
+ <>
+ <div className="divide-y rounded border bg-surface-primary">
+ {notConnected ? (
+ <div className="px-4 py-6 text-center text-sm text-secondary">
+ <IconTerminal className="text-3xl mb-2 opacity-40" />
+ <p className="mb-0">No Codex account connected</p>
+ </div>
+ ) : (
+ <CodexAccountRow integration={codexIntegration} />
+ )}
+ {notConnected || reauthRequired ? (
+ <div className="flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-3">
+ <LemonButton
+ type="secondary"
+ size="small"
+ icon={<IconPlus />}
+ onClick={() => openConnectModal(SETTINGS_CODEX_CONNECT_OPENER)}
+ disabledReason={connecting ? 'Connecting…' : undefined}
+ data-attr="codex-connect"
+ >
+ {reauthRequired ? 'Connect again' : 'Connect Codex'}
+ </LemonButton>
+ <span className="text-xs text-secondary text-balance">You need a paid ChatGPT plan.</span>
+ </div>
+ ) : null}
+ </div>
+ <CodexConnectModal opener={SETTINGS_CODEX_CONNECT_OPENER} />
+ </>
+ )
+}
diff --git a/frontend/src/scenes/settings/user/codexAuthFile.test.ts b/frontend/src/scenes/settings/user/codexAuthFile.test.ts
new file mode 100644
index 000000000000..72a0a83b8382
--- /dev/null
+++ b/frontend/src/scenes/settings/user/codexAuthFile.test.ts
@@ -0,0 +1,37 @@
+import { parseCodexAuthFile } from './codexAuthFile'
+
+describe('parseCodexAuthFile', () => {
+ it('reads the tokens from a ChatGPT auth.json', () => {
+ const text = JSON.stringify({
+ OPENAI_API_KEY: null,
+ tokens: {
+ id_token: 'fake-id-token',
+ access_token: 'fake-access-token',
+ refresh_token: 'fake-refresh-token',
+ account_id: 'fake-account',
+ },
+ last_refresh: '2026-01-01T00:00:00Z',
+ })
+
+ expect(parseCodexAuthFile(`\n${text}\n`)).toEqual({
+ tokens: {
+ access_token: 'fake-access-token',
+ refresh_token: 'fake-refresh-token',
+ id_token: 'fake-id-token',
+ },
+ error: null,
+ })
+ })
+
+ it.each([
+ ['text that is not JSON', 'codex login', 'does not hold a Codex sign-in'],
+ ['an API key login', JSON.stringify({ OPENAI_API_KEY: 'sk-fake', tokens: null }), 'not with an API key'],
+ ['a JSON array', '[]', 'not with an API key'],
+ ['a file without a refresh token', JSON.stringify({ tokens: { access_token: 'fake' } }), 'missing its tokens'],
+ ])('rejects %s', (_name, text, expectedError) => {
+ const result = parseCodexAuthFile(text)
+
+ expect(result.tokens).toBeNull()
+ expect(result.error).toContain(expectedError)
+ })
+})
diff --git a/frontend/src/scenes/settings/user/codexAuthFile.ts b/frontend/src/scenes/settings/user/codexAuthFile.ts
new file mode 100644
index 000000000000..265118facbeb
--- /dev/null
+++ b/frontend/src/scenes/settings/user/codexAuthFile.ts
@@ -0,0 +1,36 @@
+import type { UserCodexAuthTokensApi } from '~/generated/core/api.schemas'
+
+export type CodexAuthFileResult = { tokens: UserCodexAuthTokensApi; error: null } | { tokens: null; error: string }
+
+function readString(value: unknown): string | null {
+ return typeof value === 'string' && value.trim() ? value.trim() : null
+}
+
+export function parseCodexAuthFile(text: string): CodexAuthFileResult {
+ let parsed: unknown
+ try {
+ parsed = JSON.parse(text)
+ } catch {
+ return {
+ tokens: null,
+ error: 'The clipboard does not hold a Codex sign-in. Run the command again, then paste.',
+ }
+ }
+ const rawTokens = parsed && typeof parsed === 'object' ? (parsed as Record<string, unknown>).tokens : undefined
+ if (!rawTokens || typeof rawTokens !== 'object') {
+ return {
+ tokens: null,
+ error: 'This is not a ChatGPT sign-in. Run the command again and sign in with ChatGPT, not with an API key.',
+ }
+ }
+ const tokens = rawTokens as Record<string, unknown>
+ const accessToken = readString(tokens.access_token)
+ const refreshToken = readString(tokens.refresh_token)
+ if (!accessToken || !refreshToken) {
+ return { tokens: null, error: 'This sign-in is missing its tokens. Run the command again.' }
+ }
+ return {
+ tokens: { access_token: accessToken, refresh_token: refreshToken, id_token: readString(tokens.id_token) },
+ error: null,
+ }
+}
diff --git a/frontend/src/scenes/settings/user/codexLoginCommands.test.ts b/frontend/src/scenes/settings/user/codexLoginCommands.test.ts
new file mode 100644
index 000000000000..2644dc8d32ca
--- /dev/null
+++ b/frontend/src/scenes/settings/user/codexLoginCommands.test.ts
@@ -0,0 +1,15 @@
+import { detectCodexLoginPlatform } from './codexLoginCommands'
+
+describe('detectCodexLoginPlatform', () => {
+ it.each([
+ ['macOS', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36', 'macos'],
+ ['MacIntel', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Version/17.0 Safari/605.1.15', 'macos'],
+ ['Windows', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36', 'windows'],
+ ['Win32', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0', 'windows'],
+ ['Linux x86_64', 'Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0', 'linux'],
+ ['Chrome OS', 'Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36', 'linux'],
+ ['', '', 'macos'],
+ ])('maps platform %j to the right command', (platform, userAgent, expected) => {
+ expect(detectCodexLoginPlatform(platform, userAgent)).toBe(expected)
+ })
+})
diff --git a/frontend/src/scenes/settings/user/codexLoginCommands.ts b/frontend/src/scenes/settings/user/codexLoginCommands.ts
new file mode 100644
index 000000000000..edf9c9c1f520
--- /dev/null
+++ b/frontend/src/scenes/settings/user/codexLoginCommands.ts
@@ -0,0 +1,59 @@
+export type CodexLoginPlatform = 'macos' | 'linux' | 'windows'
+
+export const CODEX_LOGIN_PLATFORM_OPTIONS: { value: CodexLoginPlatform; label: string }[] = [
+ { value: 'macos', label: 'macOS' },
+ { value: 'linux', label: 'Linux' },
+ { value: 'windows', label: 'Windows' },
+]
+
+const CODEX_LOGIN = 'codex login --device-auth -c cli_auth_credentials_store=file'
+const COPIED_MESSAGE = 'Copied. Paste it in PostHog.'
+
+const LINUX_COPY =
+ 'if [ -n "$WAYLAND_DISPLAY" ] && command -v wl-copy >/dev/null; then wl-copy < "$d/auth.json"; ' +
+ 'elif command -v xclip >/dev/null; then xclip -selection clipboard < "$d/auth.json"; ' +
+ 'else xsel --clipboard --input < "$d/auth.json"; fi'
+
+function posixLoginCommand(copyToClipboard: string): string {
+ return (
+ `sh -c 'd=$(mktemp -d) && trap "rm -rf \\"$d\\"" EXIT INT TERM HUP && ` +
+ `CODEX_HOME="$d" ${CODEX_LOGIN} && ${copyToClipboard} && echo "${COPIED_MESSAGE}"'`
+ )
+}
+
+const WINDOWS_LOGIN_COMMAND =
+ '$d = Join-Path $env:TEMP ([guid]::NewGuid()); $h = $env:CODEX_HOME; ' +
+ 'New-Item -ItemType Directory -Path $d | Out-Null; ' +
+ `try { $env:CODEX_HOME = $d; ${CODEX_LOGIN}; ` +
+ `if ($LASTEXITCODE -eq 0) { Get-Content -Raw (Join-Path $d 'auth.json') | Set-Clipboard; '${COPIED_MESSAGE}' } } ` +
+ 'finally { $env:CODEX_HOME = $h; Remove-Item -Recurse -Force $d }'
+
+export function codexLoginCommand(platform: CodexLoginPlatform): string {
+ switch (platform) {
+ case 'macos':
+ return posixLoginCommand('pbcopy < "$d/auth.json"')
+ case 'linux':
+ return posixLoginCommand(LINUX_COPY)
+ case 'windows':
+ return WINDOWS_LOGIN_COMMAND
+ }
+}
+
+export function detectCodexLoginPlatform(platform: string, userAgent: string): CodexLoginPlatform {
+ const source = `${platform} ${userAgent}`.toLowerCase()
+ if (source.includes('mac')) {
+ return 'macos'
+ }
+ if (source.includes('win')) {
+ return 'windows'
+ }
+ if (source.includes('linux') || source.includes('x11') || source.includes('cros')) {
+ return 'linux'
+ }
+ return 'macos'
+}
+
+export function browserCodexLoginPlatform(): CodexLoginPlatform {
+ const nav = navigator as Navigator & { userAgentData?: { platform?: string } }
+ return detectCodexLoginPlatform(nav.userAgentData?.platform || nav.platform || '', nav.userAgent)
+}
diff --git a/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.test.ts b/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.test.ts
new file mode 100644
index 000000000000..8465c3003d53
--- /dev/null
+++ b/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.test.ts
@@ -0,0 +1,111 @@
+import { expectLogic } from 'kea-test-utils'
+
+import { useMocks } from '~/mocks/jest'
+import { initKeaTests } from '~/test/init'
+
+import { personalCodexIntegrationLogic } from './personalCodexIntegrationLogic'
+
+const AUTH_FILE = JSON.stringify({
+ tokens: { access_token: 'fake-access', refresh_token: 'fake-refresh', id_token: 'fake-id' },
+})
+const CONNECTED = { status: 'connected', email: '[email protected]', plan_type: 'pro' }
+const NOT_CONNECTED = { status: 'not_connected' }
+
+function deferred<T>(): { promise: Promise<T>; resolve: (value: T) => void } {
+ let resolve!: (value: T) => void
+ const promise = new Promise<T>((res) => {
+ resolve = res
+ })
+ return { promise, resolve }
+}
+
+describe('personalCodexIntegrationLogic', () => {
+ let logic: ReturnType<typeof personalCodexIntegrationLogic.build>
+ let connectRequests: number
+ let pendingRead: ReturnType<typeof deferred<void>> | null
+
+ beforeEach(() => {
+ connectRequests = 0
+ pendingRead = null
+ useMocks({
+ get: {
+ '/api/users/@me/integrations/codex/': async () => {
+ await pendingRead?.promise
+ return [200, NOT_CONNECTED]
+ },
+ },
+ post: {
+ '/api/users/@me/integrations/codex/': () => {
+ connectRequests += 1
+ return [200, CONNECTED]
+ },
+ },
+ })
+ initKeaTests()
+ })
+
+ afterEach(() => {
+ logic?.unmount()
+ })
+
+ it('does not connect when the dialog closes before the clipboard read finishes', async () => {
+ const clipboard = deferred<string>()
+ Object.assign(navigator, { clipboard: { readText: () => clipboard.promise, writeText: jest.fn() } })
+ logic = personalCodexIntegrationLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+
+ logic.actions.openConnectModal('settings')
+ logic.actions.pasteFromClipboard()
+ logic.actions.closeConnectModal()
+ clipboard.resolve(AUTH_FILE)
+ await expectLogic(logic).toFinishAllListeners()
+
+ expect(connectRequests).toBe(0)
+ expect(logic.values.authFileText).toBe('')
+ })
+
+ it('connects once when two clipboard reads land together', async () => {
+ const clipboard = deferred<string>()
+ Object.assign(navigator, { clipboard: { readText: () => clipboard.promise, writeText: jest.fn() } })
+ logic = personalCodexIntegrationLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+
+ logic.actions.openConnectModal('settings')
+ logic.actions.pasteFromClipboard()
+ logic.actions.pasteFromClipboard()
+ clipboard.resolve(AUTH_FILE)
+ await expectLogic(logic).toDispatchActions(['connectCodexSuccess']).toFinishAllListeners()
+
+ expect(connectRequests).toBe(1)
+ })
+
+ it('drops an invalid paste so the dialog does not show it as received', async () => {
+ logic = personalCodexIntegrationLogic()
+ logic.mount()
+ logic.actions.openConnectModal('settings')
+
+ logic.actions.pasteAuthFile('codex login --device-auth')
+ await expectLogic(logic).toFinishAllListeners()
+
+ expect(logic.values.authFileText).toBe('')
+ expect(logic.values.connectError).toContain('does not hold a Codex sign-in')
+ expect(connectRequests).toBe(0)
+ })
+
+ it('keeps a new connection when an older reload finishes after it', async () => {
+ pendingRead = deferred<void>()
+ logic = personalCodexIntegrationLogic()
+ logic.mount()
+
+ logic.actions.openConnectModal('settings')
+ logic.actions.pasteAuthFile(AUTH_FILE)
+ await expectLogic(logic, () => undefined).toDispatchActions(['connectCodexSuccess'])
+ pendingRead.resolve()
+ await expectLogic(logic).toFinishAllListeners()
+
+ expect(connectRequests).toBe(1)
+ expect(logic.values.codexIntegration?.status).toBe('connected')
+ })
+})
diff --git a/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.ts b/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.ts
new file mode 100644
index 000000000000..e82a908e46a1
--- /dev/null
+++ b/frontend/src/scenes/settings/user/personalCodexIntegrationLogic.ts
@@ -0,0 +1,302 @@
+import { MakeLogicType, actions, events, kea, listeners, path, reducers } from 'kea'
+import { loaders } from 'kea-loaders'
+import posthog from 'posthog-js'
+
+import { lemonToast } from '@posthog/lemon-ui'
+
+import {
+ usersIntegrationsCodexCreate,
+ usersIntegrationsCodexDestroy,
+ usersIntegrationsCodexRetrieve,
+} from '~/generated/core/api'
+import {
+ CodexIntegrationStatusEnumApi,
+ type UserCodexAuthTokensApi,
+ type UserCodexIntegrationApi,
+} from '~/generated/core/api.schemas'
+
+import { parseCodexAuthFile } from './codexAuthFile'
+import { type CodexLoginPlatform, browserCodexLoginPlatform } from './codexLoginCommands'
+
+const CONNECT_ERROR_FALLBACK = 'Could not connect Codex. Run the command again, then paste the new sign-in.'
+const CLIPBOARD_BLOCKED_ERROR = 'Your browser blocked clipboard access. Click the field and paste with your keyboard.'
+
+async function clearClipboard(): Promise<void> {
+ try {
+ await navigator.clipboard.writeText('')
+ } catch {
+ lemonToast.warning('Could not clear your clipboard. Copy something else to remove the sign-in from it.')
+ }
+}
+
+function describeConnectError(error: unknown): string {
+ const detail = error && typeof error === 'object' ? (error as { detail?: unknown }).detail : undefined
+ return typeof detail === 'string' && detail ? detail : CONNECT_ERROR_FALLBACK
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface personalCodexIntegrationLogicValues {
+ authFileText: string
+ codexIntegration: UserCodexIntegrationApi | null
+ codexIntegrationLoadFailed: boolean
+ codexIntegrationLoading: boolean
+ codexMutationCount: number
+ connectError: string | null
+ connectModalOpener: string | null
+ connectModalSession: number
+ connecting: boolean
+ loginPlatform: CodexLoginPlatform
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface personalCodexIntegrationLogicActions {
+ closeConnectModal: () => {
+ value: true
+ }
+ commandCopied: () => {
+ value: true
+ }
+ connectCodex: (tokens: UserCodexAuthTokensApi) => UserCodexAuthTokensApi
+ connectCodexFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ connectCodexSuccess: (
+ codexIntegration: UserCodexIntegrationApi,
+ payload?: UserCodexAuthTokensApi
+ ) => {
+ codexIntegration: UserCodexIntegrationApi
+ payload?: UserCodexAuthTokensApi
+ }
+ disconnectCodex: () => any
+ disconnectCodexFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ disconnectCodexSuccess: (
+ codexIntegration: UserCodexIntegrationApi,
+ payload?: any
+ ) => {
+ codexIntegration: UserCodexIntegrationApi
+ payload?: any
+ }
+ loadCodexIntegration: () => any
+ loadCodexIntegrationFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadCodexIntegrationSuccess: (
+ codexIntegration: UserCodexIntegrationApi | null,
+ payload?: any
+ ) => {
+ codexIntegration: UserCodexIntegrationApi | null
+ payload?: any
+ }
+ openConnectModal: (opener: string) => {
+ opener: string
+ }
+ pasteAuthFile: (authFileText: string) => {
+ authFileText: string
+ }
+ pasteFromClipboard: () => {
+ value: true
+ }
+ rejectAuthFile: (error: string) => {
+ error: string
+ }
+ setConnectError: (connectError: string | null) => {
+ connectError: string | null
+ }
+ setLoginPlatform: (loginPlatform: CodexLoginPlatform) => {
+ loginPlatform: CodexLoginPlatform
+ }
+ submitAuthFile: () => {
+ value: true
+ }
+}
+
+export type personalCodexIntegrationLogicType = MakeLogicType<
+ personalCodexIntegrationLogicValues,
+ personalCodexIntegrationLogicActions
+>
+
+export const personalCodexIntegrationLogic = kea<personalCodexIntegrationLogicType>([
+ path(['scenes', 'settings', 'user', 'personalCodexIntegrationLogic']),
+
+ actions({
+ openConnectModal: (opener: string) => ({ opener }),
+ closeConnectModal: true,
+ setLoginPlatform: (loginPlatform: CodexLoginPlatform) => ({ loginPlatform }),
+ commandCopied: true,
+ pasteAuthFile: (authFileText: string) => ({ authFileText }),
+ pasteFromClipboard: true,
+ setConnectError: (connectError: string | null) => ({ connectError }),
+ submitAuthFile: true,
+ rejectAuthFile: (error: string) => ({ error }),
+ }),
+
+ loaders(({ values }) => ({
+ codexIntegration: [
+ null as UserCodexIntegrationApi | null,
+ {
+ loadCodexIntegration: async () => {
+ const mutationCount = values.codexMutationCount
+ const integration = await usersIntegrationsCodexRetrieve('@me')
+ // A connect or disconnect that started meanwhile is newer than this read.
+ return values.codexMutationCount === mutationCount ? integration : values.codexIntegration
+ },
+ connectCodex: async (tokens: UserCodexAuthTokensApi) =>
+ await usersIntegrationsCodexCreate('@me', { tokens }),
+ disconnectCodex: async (): Promise<UserCodexIntegrationApi> => {
+ await usersIntegrationsCodexDestroy('@me')
+ return { status: CodexIntegrationStatusEnumApi.NotConnected }
+ },
+ },
+ ],
+ })),
+
+ reducers({
+ codexMutationCount: [
+ 0,
+ {
+ connectCodex: (count) => count + 1,
+ disconnectCodex: (count) => count + 1,
+ },
+ ],
+ connectModalSession: [
+ 0,
+ {
+ openConnectModal: (session) => session + 1,
+ closeConnectModal: (session) => session + 1,
+ connectCodexSuccess: (session) => session + 1,
+ },
+ ],
+ connectModalOpener: [
+ null as string | null,
+ {
+ openConnectModal: (_, { opener }) => opener,
+ closeConnectModal: () => null,
+ connectCodexSuccess: () => null,
+ },
+ ],
+ loginPlatform: [
+ browserCodexLoginPlatform(),
+ {
+ setLoginPlatform: (_, { loginPlatform }) => loginPlatform,
+ },
+ ],
+ authFileText: [
+ '',
+ {
+ pasteAuthFile: (_, { authFileText }) => authFileText,
+ rejectAuthFile: () => '',
+ openConnectModal: () => '',
+ closeConnectModal: () => '',
+ connectCodexSuccess: () => '',
+ },
+ ],
+ connectError: [
+ null as string | null,
+ {
+ setConnectError: (_, { connectError }) => connectError,
+ rejectAuthFile: (_, { error }) => error,
+ pasteAuthFile: () => null,
+ openConnectModal: () => null,
+ },
+ ],
+ connecting: [
+ false,
+ {
+ connectCodex: () => true,
+ connectCodexSuccess: () => false,
+ connectCodexFailure: () => false,
+ },
+ ],
+ codexIntegrationLoadFailed: [
+ false,
+ {
+ loadCodexIntegrationFailure: () => true,
+ loadCodexIntegrationSuccess: () => false,
+ },
+ ],
+ }),
+
+ listeners(({ actions, values }) => ({
+ openConnectModal: ({ opener }) => {
+ posthog.capture('personal integration connect clicked', {
+ integration_kind: 'codex',
+ surface: opener.split(':')[0],
+ })
+ },
+ commandCopied: () => {
+ posthog.capture('codex connect command copied', { operating_system: values.loginPlatform })
+ },
+ pasteAuthFile: () => {
+ actions.submitAuthFile()
+ },
+ pasteFromClipboard: async () => {
+ const session = values.connectModalSession
+ let text: string
+ try {
+ text = await navigator.clipboard.readText()
+ } catch {
+ actions.setConnectError(CLIPBOARD_BLOCKED_ERROR)
+ return
+ }
+ // The read can outlive the dialog it came from. A closed or reopened dialog must not connect.
+ if (values.connectModalSession === session && values.connectModalOpener !== null) {
+ actions.pasteAuthFile(text)
+ }
+ },
+ submitAuthFile: () => {
+ // A second clipboard read can land while the first connect runs. Its refresh token is single-use.
+ if (values.connecting) {
+ return
+ }
+ const result = parseCodexAuthFile(values.authFileText)
+ if (result.tokens === null) {
+ posthog.capture('codex subscription connect failed', { reason: 'invalid_auth_file' })
+ actions.rejectAuthFile(result.error)
+ return
+ }
+ void clearClipboard()
+ actions.connectCodex(result.tokens)
+ },
+ connectCodexSuccess: () => {
+ lemonToast.success('Codex connected')
+ },
+ connectCodexFailure: ({ errorObject }) => {
+ actions.setConnectError(describeConnectError(errorObject))
+ },
+ disconnectCodexSuccess: () => {
+ lemonToast.success('Codex disconnected')
+ },
+ disconnectCodexFailure: () => {
+ lemonToast.error('Could not disconnect Codex. Try again.')
+ },
+ })),
+
+ events(({ actions, cache }) => ({
+ afterMount: () => {
+ actions.loadCodexIntegration()
+ cache.disposables.add(
+ () => {
+ const onFocus = (): void => actions.loadCodexIntegration()
+ window.addEventListener('focus', onFocus)
+ return () => window.removeEventListener('focus', onFocus)
+ },
+ 'focusRefetch',
+ { pauseOnPageHidden: false }
+ )
+ },
+ })),
+])
diff --git a/products/posthog_ai/frontend/components/composer/ComposerCodexBillingPickers.tsx b/products/posthog_ai/frontend/components/composer/ComposerCodexBillingPickers.tsx
new file mode 100644
index 000000000000..c21036218fc5
--- /dev/null
+++ b/products/posthog_ai/frontend/components/composer/ComposerCodexBillingPickers.tsx
@@ -0,0 +1,48 @@
+import { useActions, useValues } from 'kea'
+import { useId } from 'react'
+
+import { CodexConnectModal } from 'scenes/settings/user/CodexConnectModal'
+
+import { ModelAccessEnumApi } from 'products/tasks/frontend/generated/api.schemas'
+
+import { codexBillingLogic } from '../../logics/codexBillingLogic'
+import { ComposerModelEffortPickers, type ComposerModelEffortPickersProps } from './ComposerModelEffortPickers'
+
+export interface ComposerCodexBillingPickersProps extends Omit<ComposerModelEffortPickersProps, 'codexBilling'> {
+ /** The billing a live run booted with. A live run can't change it, so the row shows it locked. */
+ lockedCodexModelAccess?: string | null
+}
+
+/**
+ * The model picker plus the Codex billing row. Rendered only behind the rollout flag, so users without the
+ * flag never load their ChatGPT connection.
+ */
+export function ComposerCodexBillingPickers({
+ lockedCodexModelAccess,
+ ...pickerProps
+}: ComposerCodexBillingPickersProps): JSX.Element {
+ const { effectiveCodexModelAccess, planConnected } = useValues(codexBillingLogic)
+ const { setPreferredCodexModelAccess, connectPlan } = useActions(codexBillingLogic)
+ const opener = `composer:${useId()}`
+ const locked = lockedCodexModelAccess != null
+
+ return (
+ <>
+ <ComposerModelEffortPickers
+ {...pickerProps}
+ codexBilling={{
+ value: locked
+ ? lockedCodexModelAccess === ModelAccessEnumApi.OwnSubscription
+ ? ModelAccessEnumApi.OwnSubscription
+ : ModelAccessEnumApi.PosthogGateway
+ : effectiveCodexModelAccess,
+ planConnected,
+ locked,
+ onChange: setPreferredCodexModelAccess,
+ onConnectPlan: () => connectPlan(opener),
+ }}
+ />
+ <CodexConnectModal opener={opener} />
+ </>
+ )
+}
diff --git a/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.test.tsx b/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.test.tsx
index 2ed81d1b98e1..1373698084e1 100644
--- a/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.test.tsx
+++ b/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.test.tsx
@@ -3,6 +3,7 @@ import '@testing-library/jest-dom'
import { type RenderResult, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react'
import {
+ ModelAccessEnumApi,
ModelChoiceApi,
ReasoningEffortEnumApi,
RuntimeAdapterEnumApi,
@@ -80,6 +81,62 @@ describe('ComposerModelEffortPickers', () => {
expect(onModelChange).toHaveBeenCalledWith(expectedModel)
})
+ describe('Codex billing', () => {
+ const withCodex: ModelChoiceApi[] = [
+ ...CATALOGUE,
+ {
+ runtime_adapter: RuntimeAdapterEnumApi.Codex,
+ model: 'gpt-6-sol',
+ display_name: 'GPT-6 Sol',
+ supported_efforts: [ReasoningEffortEnumApi.High],
+ },
+ ]
+ const billing = (overrides = {}): React.ComponentProps<typeof ComposerModelEffortPickers>['codexBilling'] => ({
+ value: ModelAccessEnumApi.PosthogGateway,
+ planConnected: false,
+ onChange: jest.fn(),
+ onConnectPlan: jest.fn(),
+ ...overrides,
+ })
+
+ it('is not offered on the Claude harness', () => {
+ renderPickers({ models: withCodex, codexBilling: billing() })
+
+ expect(screen.getByText('Harness')).toBeInTheDocument()
+ expect(screen.queryByText('Billing')).not.toBeInTheDocument()
+ })
+
+ it('keeps the ChatGPT plan out of reach until an account is connected', async () => {
+ const onConnectPlan = jest.fn()
+ renderPickers({
+ models: withCodex,
+ selectedModel: 'gpt-6-sol',
+ codexBilling: billing({ onConnectPlan }),
+ })
+ fireEvent.click(screen.getByText('Advanced'))
+ fireEvent.click(screen.getByText('Billing'))
+
+ expect(await screen.findByText('OpenAI (ChatGPT plan)')).toHaveAttribute('aria-disabled', 'true')
+ fireEvent.click(screen.getByText('Connect your ChatGPT account'))
+ await waitFor(() => expect(onConnectPlan).toHaveBeenCalledTimes(1))
+ })
+
+ it('switches a Codex run to the ChatGPT plan once connected', async () => {
+ const onChange = jest.fn()
+ renderPickers({
+ models: withCodex,
+ selectedModel: 'gpt-6-sol',
+ codexBilling: billing({ planConnected: true, onChange }),
+ })
+ fireEvent.click(screen.getByText('Advanced'))
+ fireEvent.click(screen.getByText('Billing'))
+ fireEvent.click(await screen.findByText('OpenAI (ChatGPT plan)'))
+
+ expect(onChange).toHaveBeenCalledWith(ModelAccessEnumApi.OwnSubscription)
+ expect(screen.queryByText('Connect your ChatGPT account')).not.toBeInTheDocument()
+ })
+ })
+
it('offers no way to change the default on a surface that has none to change', () => {
renderPickers()
diff --git a/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.tsx b/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.tsx
index 224c6c516822..651beda01c0c 100644
--- a/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.tsx
+++ b/products/posthog_ai/frontend/components/composer/ComposerModelEffortPickers.tsx
@@ -28,6 +28,7 @@ import {
modelsForRuntimeAdapter,
} from 'products/posthog_ai/frontend/utils/composerModels'
import {
+ ModelAccessEnumApi,
ModelChoiceApi,
ReasoningEffortEnumApi,
RuntimeAdapterEnumApi,
@@ -42,6 +43,21 @@ import { ComposerReasoningSlider } from './ComposerReasoningSlider'
// Separates model and effort in a slider stop key; never appears in a model id or an effort.
const STOP_SEPARATOR = '|'
+const BILLING_LABELS: Record<ModelAccessEnumApi, string> = {
+ [ModelAccessEnumApi.PosthogGateway]: 'PostHog credits',
+ [ModelAccessEnumApi.OwnSubscription]: 'OpenAI (ChatGPT plan)',
+}
+
+export interface ComposerCodexBilling {
+ value: ModelAccessEnumApi
+ /** The ChatGPT plan can only be picked once the user connected a ChatGPT account. */
+ planConnected: boolean
+ /** A live run keeps the billing it booted with. */
+ locked?: boolean
+ onChange: (value: ModelAccessEnumApi) => void
+ onConnectPlan: () => void
+}
+
export interface ComposerModelEffortPickersProps {
/** Models to offer, and the efforts each supports. Callers pass `modelCatalogueLogic`'s live catalogue. */
models: ModelChoiceApi[]
@@ -67,6 +83,8 @@ export interface ComposerModelEffortPickersProps {
* the picker stays free of the app's routing, and an embedding host can send its own audience
* somewhere else. Omit and the row is absent. */
onOpenDefaultSettings?: () => void
+ /** Who pays for a run on the Codex harness. Shown only while Codex is selected; omit to hide the row. */
+ codexBilling?: ComposerCodexBilling
}
interface PickerSectionProps {
@@ -125,6 +143,7 @@ export function ComposerModelEffortPickers({
isDefaultSelection = false,
onResetToDefault,
onOpenDefaultSettings,
+ codexBilling,
}: ComposerModelEffortPickersProps): JSX.Element {
const chrome = PICKER_CHROME[useThreadSkin()]
const [open, setOpen] = useState(false)
@@ -187,6 +206,8 @@ export function ComposerModelEffortPickers({
}
}
+ const billing = selectedAdapter === RuntimeAdapterEnumApi.Codex ? codexBilling : undefined
+
// With neither a configured default to fall back to nor a ladder to land on, there is nothing to reset to.
const showReset = Boolean(onResetToDefault) || stops.length > 0
@@ -225,6 +246,9 @@ export function ComposerModelEffortPickers({
{effortOptions.length > 0 && (
<span className="text-muted">{getEffortLabel(selectedEffort)}</span>
)}
+ {billing?.value === ModelAccessEnumApi.OwnSubscription && (
+ <span className="text-muted">ChatGPT plan</span>
+ )}
{chrome.icons && <IconChevronDown />}
</Button>
}
@@ -264,6 +288,46 @@ export function ComposerModelEffortPickers({
</PickerSection>
)}
+ {billing && (
+ <PickerSection
+ title="Billing"
+ current={BILLING_LABELS[billing.value]}
+ value={billing.value}
+ onValueChange={(value) => {
+ billing.onChange(value as ModelAccessEnumApi)
+ setOpen(false)
+ }}
+ footer={
+ billing.planConnected || billing.locked ? undefined : (
+ <>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem
+ onClick={() => selectAndClose(billing.onConnectPlan)}
+ data-attr="composer-codex-connect-plan"
+ >
+ Connect your ChatGPT account
+ </DropdownMenuItem>
+ </>
+ )
+ }
+ >
+ {[ModelAccessEnumApi.PosthogGateway, ModelAccessEnumApi.OwnSubscription].map(
+ (value) => (
+ <DropdownMenuRadioItem
+ key={value}
+ value={value}
+ disabled={
+ billing.locked ||
+ (value === ModelAccessEnumApi.OwnSubscription && !billing.planConnected)
+ }
+ >
+ {BILLING_LABELS[value]}
+ </DropdownMenuRadioItem>
+ )
+ )}
+ </PickerSection>
+ )}
+
<PickerSection
title="Model"
current={modelLabel}
diff --git a/products/posthog_ai/frontend/logics/codexBillingLogic.test.ts b/products/posthog_ai/frontend/logics/codexBillingLogic.test.ts
new file mode 100644
index 000000000000..b3aef7f0d613
--- /dev/null
+++ b/products/posthog_ai/frontend/logics/codexBillingLogic.test.ts
@@ -0,0 +1,148 @@
+import { waitFor } from '@testing-library/react'
+import { expectLogic } from 'kea-test-utils'
+
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { personalCodexIntegrationLogic } from 'scenes/settings/user/personalCodexIntegrationLogic'
+
+import { useMocks } from '~/mocks/jest'
+import { initKeaTests } from '~/test/init'
+
+import { ModelAccessEnumApi, RuntimeAdapterEnumApi } from 'products/tasks/frontend/generated/api.schemas'
+
+import {
+ CodexBillingUnresolvedError,
+ codexBillingLogic,
+ codexModelAccessForRun,
+ pickedCodexModelAccess,
+} from './codexBillingLogic'
+
+const AUTH_FILE = JSON.stringify({
+ tokens: { access_token: 'fake-access', refresh_token: 'fake-refresh', id_token: 'fake-id' },
+})
+
+describe('codexBillingLogic', () => {
+ let logic: ReturnType<typeof codexBillingLogic.build>
+
+ beforeEach(() => {
+ localStorage.clear()
+ useMocks({
+ get: { '/api/users/@me/integrations/codex/': { status: 'not_connected' } },
+ post: {
+ '/api/users/@me/integrations/codex/': { status: 'connected', email: '[email protected]' },
+ },
+ })
+ initKeaTests()
+ logic = codexBillingLogic()
+ logic.mount()
+ })
+
+ afterEach(() => {
+ logic.unmount()
+ })
+
+ it.each([
+ ['from the billing row', true, ModelAccessEnumApi.OwnSubscription],
+ ['from settings', false, ModelAccessEnumApi.PosthogGateway],
+ ])('picks the billing after a connect started %s', async (_name, fromBillingRow, expected) => {
+ await expectLogic(logic).toFinishAllListeners()
+
+ if (fromBillingRow) {
+ logic.actions.connectPlan('composer:test')
+ } else {
+ personalCodexIntegrationLogic.actions.openConnectModal('settings')
+ }
+ personalCodexIntegrationLogic.actions.pasteAuthFile(AUTH_FILE)
+
+ await expectLogic(logic).toDispatchActions(['connectCodexSuccess']).toFinishAllListeners()
+
+ expect(logic.values.planConnected).toBe(true)
+ expect(logic.values.effectiveCodexModelAccess).toBe(expected)
+ })
+
+ describe('codexModelAccessForRun', () => {
+ const FLAG = FEATURE_FLAGS.POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD
+
+ it.each([
+ ['the flag is off', false, RuntimeAdapterEnumApi.Codex, 'connected', null],
+ [
+ 'the run is on Claude',
+ true,
+ RuntimeAdapterEnumApi.Claude,
+ 'connected',
+ ModelAccessEnumApi.PosthogGateway,
+ ],
+ [
+ 'the account is connected',
+ true,
+ RuntimeAdapterEnumApi.Codex,
+ 'connected',
+ ModelAccessEnumApi.OwnSubscription,
+ ],
+ [
+ 'the account was disconnected',
+ true,
+ RuntimeAdapterEnumApi.Codex,
+ 'not_connected',
+ ModelAccessEnumApi.PosthogGateway,
+ ],
+ ])(
+ 'with the plan saved, when %s, resolves before the picker mounts',
+ async (_name, flagOn, adapter, status, expected) => {
+ logic.actions.setPreferredCodexModelAccess(ModelAccessEnumApi.OwnSubscription)
+ logic.unmount()
+ featureFlagLogic.actions.setFeatureFlags(flagOn ? [FLAG] : [], flagOn ? { [FLAG]: true } : {})
+ useMocks({ get: { '/api/users/@me/integrations/codex/': { status } } })
+
+ expect(codexBillingLogic.findMounted()).toBeNull()
+ await expect(codexModelAccessForRun(async () => adapter)).resolves.toBe(expected)
+ logic.mount()
+ }
+ )
+
+ it.each([
+ ['the harness is unknown', null, [200, { status: 'connected' }]],
+ ['the connection lookup fails', RuntimeAdapterEnumApi.Codex, [500, {}]],
+ ])('with the plan saved, when %s, refuses to pick a billing', async (_name, adapter, response) => {
+ logic.actions.setPreferredCodexModelAccess(ModelAccessEnumApi.OwnSubscription)
+ logic.unmount()
+ featureFlagLogic.actions.setFeatureFlags([FLAG], { [FLAG]: true })
+ useMocks({ get: { '/api/users/@me/integrations/codex/': () => response } })
+
+ await expect(codexModelAccessForRun(async () => adapter)).rejects.toBeInstanceOf(
+ CodexBillingUnresolvedError
+ )
+ logic.mount()
+ })
+ })
+
+ it('leaves a resume billing off while the connection loads with the plan saved', async () => {
+ const FLAG = FEATURE_FLAGS.POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD
+ logic.actions.setPreferredCodexModelAccess(ModelAccessEnumApi.OwnSubscription)
+ logic.unmount()
+ featureFlagLogic.actions.setFeatureFlags([FLAG], { [FLAG]: true })
+ let finishLoad!: () => void
+ const loaded = new Promise<void>((resolve) => {
+ finishLoad = resolve
+ })
+ useMocks({
+ get: {
+ '/api/users/@me/integrations/codex/': async () => {
+ await loaded
+ return [200, { status: 'connected' }]
+ },
+ },
+ })
+ logic = codexBillingLogic()
+ logic.mount()
+ expect(codexBillingLogic.findMounted()).not.toBeNull()
+
+ expect(pickedCodexModelAccess(RuntimeAdapterEnumApi.Codex)).toBeNull()
+ expect(pickedCodexModelAccess(RuntimeAdapterEnumApi.Claude)).toBe(ModelAccessEnumApi.PosthogGateway)
+
+ finishLoad()
+ await waitFor(() =>
+ expect(pickedCodexModelAccess(RuntimeAdapterEnumApi.Codex)).toBe(ModelAccessEnumApi.OwnSubscription)
+ )
+ })
+})
diff --git a/products/posthog_ai/frontend/logics/codexBillingLogic.ts b/products/posthog_ai/frontend/logics/codexBillingLogic.ts
new file mode 100644
index 000000000000..f4d48843de47
--- /dev/null
+++ b/products/posthog_ai/frontend/logics/codexBillingLogic.ts
@@ -0,0 +1,199 @@
+import { MakeLogicType, actions, connect, kea, listeners, path, reducers, selectors } from 'kea'
+import posthog from 'posthog-js'
+
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { personalCodexIntegrationLogic } from 'scenes/settings/user/personalCodexIntegrationLogic'
+
+import { usersIntegrationsCodexRetrieve } from '~/generated/core/api'
+import { CodexIntegrationStatusEnumApi, type UserCodexIntegrationApi } from '~/generated/core/api.schemas'
+
+import { ModelAccessEnumApi, RuntimeAdapterEnumApi } from 'products/tasks/frontend/generated/api.schemas'
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface codexBillingLogicValues {
+ codexIntegration: UserCodexIntegrationApi | null // personalCodexIntegrationLogic
+ effectiveCodexModelAccess: ModelAccessEnumApi
+ planConnected: boolean
+ preferredCodexModelAccess: ModelAccessEnumApi
+ selectPlanAfterConnect: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface codexBillingLogicActions {
+ closeConnectModal: () => {
+ value: true
+ } // personalCodexIntegrationLogic
+ connectCodexSuccess: (
+ codexIntegration: UserCodexIntegrationApi,
+ payload?: import('~/generated/core/api.schemas').UserCodexAuthTokensApi | undefined
+ ) => {
+ codexIntegration: UserCodexIntegrationApi
+ payload?: import('~/generated/core/api.schemas').UserCodexAuthTokensApi
+ } // personalCodexIntegrationLogic
+ openConnectModal: (opener: string) => {
+ opener: string
+ } // personalCodexIntegrationLogic
+ connectPlan: (opener: string) => {
+ opener: string
+ }
+ setPreferredCodexModelAccess: (codexModelAccess: ModelAccessEnumApi) => {
+ codexModelAccess: ModelAccessEnumApi
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface codexBillingLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ planConnected: (codexIntegration: UserCodexIntegrationApi | null) => boolean
+ effectiveCodexModelAccess: (
+ preferredCodexModelAccess: ModelAccessEnumApi,
+ planConnected: boolean
+ ) => ModelAccessEnumApi
+ }
+}
+
+export type codexBillingLogicType = MakeLogicType<
+ codexBillingLogicValues,
+ codexBillingLogicActions,
+ Record<string, any>,
+ codexBillingLogicMeta
+>
+
+export const codexBillingLogic = kea<codexBillingLogicType>([
+ path(['products', 'posthog_ai', 'frontend', 'logics', 'codexBillingLogic']),
+
+ connect(() => ({
+ values: [personalCodexIntegrationLogic, ['codexIntegration']],
+ actions: [personalCodexIntegrationLogic, ['openConnectModal', 'closeConnectModal', 'connectCodexSuccess']],
+ })),
+
+ actions({
+ setPreferredCodexModelAccess: (codexModelAccess: ModelAccessEnumApi) => ({ codexModelAccess }),
+ connectPlan: (opener: string) => ({ opener }),
+ }),
+
+ reducers({
+ preferredCodexModelAccess: [
+ ModelAccessEnumApi.PosthogGateway as ModelAccessEnumApi,
+ { persist: true },
+ {
+ setPreferredCodexModelAccess: (_, { codexModelAccess }) => codexModelAccess,
+ },
+ ],
+ // Cleared by the plan pick, not by `connectCodexSuccess`: reducers run before listeners, so clearing it
+ // there would hide it from the listener that makes the pick.
+ selectPlanAfterConnect: [
+ false,
+ {
+ connectPlan: () => true,
+ closeConnectModal: () => false,
+ setPreferredCodexModelAccess: () => false,
+ },
+ ],
+ }),
+
+ selectors({
+ planConnected: [
+ (s) => [s.codexIntegration],
+ (codexIntegration: UserCodexIntegrationApi | null): boolean =>
+ codexIntegration?.status === CodexIntegrationStatusEnumApi.Connected,
+ ],
+ effectiveCodexModelAccess: [
+ (s) => [s.preferredCodexModelAccess, s.planConnected],
+ (preferred: ModelAccessEnumApi, planConnected: boolean): ModelAccessEnumApi =>
+ planConnected ? preferred : ModelAccessEnumApi.PosthogGateway,
+ ],
+ }),
+
+ listeners(({ actions, values }) => ({
+ setPreferredCodexModelAccess: ({ codexModelAccess }) => {
+ posthog.capture('codex billing changed', { billing: codexModelAccess })
+ },
+ connectPlan: ({ opener }) => {
+ actions.openConnectModal(opener)
+ },
+ connectCodexSuccess: () => {
+ if (values.selectPlanAfterConnect) {
+ actions.setPreferredCodexModelAccess(ModelAccessEnumApi.OwnSubscription)
+ }
+ },
+ })),
+])
+
+function codexBillingEnabled(): boolean {
+ return !!featureFlagLogic.values.featureFlags[FEATURE_FLAGS.POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD]
+}
+
+/** Whether a run on this harness bills to the ChatGPT plan, as far as the mounted picker knows now. */
+export function usesChatGptPlan(runtimeAdapter: string | null | undefined): boolean {
+ return (
+ codexBillingEnabled() &&
+ runtimeAdapter === RuntimeAdapterEnumApi.Codex &&
+ codexBillingLogic.findMounted()?.values.effectiveCodexModelAccess === ModelAccessEnumApi.OwnSubscription
+ )
+}
+
+/**
+ * The billing the mounted picker shows now, or `null` to leave the field off. A resume starts from the run
+ * composer, whose picker is mounted, so this is enough there and keeps the send synchronous. While the
+ * ChatGPT connection still loads, a saved plan is not known to be usable yet, so the field stays off and the
+ * resumed run keeps the billing of the run it continues.
+ */
+export function pickedCodexModelAccess(runtimeAdapter: string | null | undefined): ModelAccessEnumApi | null {
+ if (!codexBillingEnabled()) {
+ return null
+ }
+ if (runtimeAdapter !== RuntimeAdapterEnumApi.Codex) {
+ return ModelAccessEnumApi.PosthogGateway
+ }
+ const billing = codexBillingLogic.findMounted()
+ if (
+ !billing ||
+ (billing.values.codexIntegration === null &&
+ billing.values.preferredCodexModelAccess === ModelAccessEnumApi.OwnSubscription)
+ ) {
+ return null
+ }
+ return billing.values.effectiveCodexModelAccess
+}
+
+export class CodexBillingUnresolvedError extends Error {}
+
+/**
+ * The billing a new run must state, or `null` to leave the field off because the choice is not offered.
+ *
+ * When it is offered the choice is always sent: a resumed run otherwise keeps the billing of the run it
+ * continues, and the backend refuses a ChatGPT plan on Claude. A seeded task can submit before the picker
+ * mounts, so this reads the saved choice and the ChatGPT connection itself.
+ */
+export async function codexModelAccessForRun(
+ resolveRuntimeAdapter: () => Promise<string | null>
+): Promise<ModelAccessEnumApi | null> {
+ if (!codexBillingEnabled()) {
+ return null
+ }
+ const runtimeAdapter = await resolveRuntimeAdapter()
+ if (runtimeAdapter !== null && runtimeAdapter !== RuntimeAdapterEnumApi.Codex) {
+ return ModelAccessEnumApi.PosthogGateway
+ }
+ const unmount = codexBillingLogic.mount()
+ try {
+ if (codexBillingLogic.values.preferredCodexModelAccess !== ModelAccessEnumApi.OwnSubscription) {
+ return ModelAccessEnumApi.PosthogGateway
+ }
+ if (runtimeAdapter === null) {
+ throw new CodexBillingUnresolvedError()
+ }
+ const integration =
+ codexBillingLogic.values.codexIntegration ??
+ (await usersIntegrationsCodexRetrieve('@me').catch(() => {
+ throw new CodexBillingUnresolvedError()
+ }))
+ return integration.status === CodexIntegrationStatusEnumApi.Connected
+ ? ModelAccessEnumApi.OwnSubscription
+ : ModelAccessEnumApi.PosthogGateway
+ } finally {
+ unmount()
+ }
+}
diff --git a/products/posthog_ai/frontend/logics/runInteractionLogic.ts b/products/posthog_ai/frontend/logics/runInteractionLogic.ts
index 79382aca0cc9..0d8f2b7c4663 100644
--- a/products/posthog_ai/frontend/logics/runInteractionLogic.ts
+++ b/products/posthog_ai/frontend/logics/runInteractionLogic.ts
@@ -53,6 +53,7 @@ import type { PendingAttachment } from '../utils/attachments'
import { contextItemLine, wrapWithPosthogContext } from '../utils/posthogContextBlock'
import { submitWithWarmRunRetry } from '../utils/warmRunSubmission'
import { attachedContextLogic } from './attachedContextLogic'
+import { codexBillingLogic, pickedCodexModelAccess, usesChatGptPlan } from './codexBillingLogic'
import { composerAttachmentsLogic } from './composerAttachmentsLogic'
import { modelCatalogueLogic } from './modelCatalogueLogic'
import { type CancellationState, runCancellationLogic } from './runCancellationLogic'
@@ -89,6 +90,8 @@ export interface RunInteractionLogicProps {
currentMode?: string | null
/** The harness the run booted on. Authoritative — a live run can't be moved to another one. */
currentRuntimeAdapter?: string | null
+ /** Who pays for the run's Codex model use, from the run state. A live run keeps it. */
+ currentCodexModelAccess?: string | null
/** Called with the new run's id after a terminal-run send starts a fresh run, so the surface can
* re-point selection to it (the run lifecycle / selection is a tasks-scene concern, injected here). */
onRunStarted?: (runId: string, handoff?: RunContinuationHandoff) => void
@@ -1175,8 +1178,10 @@ export const runInteractionLogic = kea<runInteractionLogicType>([
values.selectedMode,
{ resume_from_run_id: props.runId }
)
+ // A run on the ChatGPT plan boots cold, so its draft releases the warm like an empty one.
getWarmLogic()?.actions.noteDraft(
- Boolean(values.composerForm.draft.trim()),
+ Boolean(values.composerForm.draft.trim()) &&
+ !usesChatGptPlan(getRuntimeAdapterForModel(values.catalogue, values.selectedModel)),
createRequest as WarmTaskResumeRequestApi
)
}
@@ -1483,6 +1488,7 @@ export const runInteractionLogic = kea<runInteractionLogicType>([
setEffort: noteTerminalDraft,
setMode: noteTerminalDraft,
+ [codexBillingLogic.actionTypes.setPreferredCodexModelAccess]: noteTerminalDraft,
setComposerFormValue: noteTerminalDraft,
setComposerFormValues: noteTerminalDraft,
handleTerminalStatus: () => {
@@ -1535,6 +1541,9 @@ export const runInteractionLogic = kea<runInteractionLogicType>([
// from the finished run so the new run continues the thread, and carrying the picked model /
// reasoning effort (the resume schema can't, so we send the Claude create shape). The response
// carries the new run as `run`; the consumer-provided `onRunStarted` re-points to it.
+ const codexModelAccess = pickedCodexModelAccess(
+ getRuntimeAdapterForModel(values.catalogue, values.selectedModel)
+ )
const createRequest = buildRunCreateRequest(
values.catalogue,
values.selectedModel,
@@ -1543,6 +1552,7 @@ export const runInteractionLogic = kea<runInteractionLogicType>([
{
resume_from_run_id: props.runId,
pending_user_message: wrapWithPosthogContext(content, pendingContext),
+ ...(codexModelAccess ? { codex_model_access: codexModelAccess } : {}),
}
)
// The task already exists here, so staged artifacts hold the files whether this request
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
index 78f67e6badc9..7c65748db9e6 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
@@ -2,6 +2,7 @@ import { useActions, useMountedLogic, useValues } from 'kea'
import { router } from 'kea-router'
import { useEffect, useMemo, useRef } from 'react'
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'
import { urls } from 'scenes/urls'
@@ -27,7 +28,11 @@ import {
import { AttachedContextBar } from '../../../components/composer/AttachedContextBar'
import { ComposerAttachments, useComposerAttachmentPaste } from '../../../components/composer/ComposerAttachments'
-import { ComposerModelEffortPickers } from '../../../components/composer/ComposerModelEffortPickers'
+import { ComposerCodexBillingPickers } from '../../../components/composer/ComposerCodexBillingPickers'
+import {
+ ComposerModelEffortPickers,
+ type ComposerModelEffortPickersProps,
+} from '../../../components/composer/ComposerModelEffortPickers'
import { ComposerModePicker } from '../../../components/composer/ComposerModePicker'
import { ComposerModeShortcut } from '../../../components/composer/ComposerModeShortcut'
import { useDebouncedDraft } from '../../../components/composer/useDebouncedDraft'
@@ -97,6 +102,33 @@ export function TaskComposer({ variant = 'page', focusRequest = 0, autoFocus = t
}
}
+ const codexBillingEnabled = useFeatureFlag('POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD')
+ const modelPickerProps: ComposerModelEffortPickersProps = {
+ models: offeredModels,
+ selectedModel: displayModel,
+ defaultModel,
+ isDefaultModelLoading: myConfigLoading,
+ selectedEffort: displayEffort,
+ isDefaultSelection,
+ onModelChange: (model) =>
+ setNewTaskData({
+ model,
+ reasoningEffort: resolveEffortForModel(catalogue, newTaskData.reasoningEffort, model),
+ // Clamp the mode too, not just the effort: leaving a Claude-only mode selected against a Codex
+ // model would show one permission ceiling and send a broader one.
+ permissionMode: resolveModeForRuntimeAdapter(
+ getRuntimeAdapterForModel(catalogue, model),
+ newTaskData.permissionMode
+ ),
+ }),
+ onEffortChange: (reasoningEffort) => setNewTaskData({ reasoningEffort }),
+ // Clearing both pins is what hands the choice back to the resolved default — submit then omits the
+ // triple entirely.
+ onResetToDefault: () => setNewTaskData({ model: null, reasoningEffort: null }),
+ onOpenDefaultSettings: () =>
+ router.actions.push(urls.settings('environment-task-agents', 'task-agent-my-preference')),
+ }
+
return (
<div
className={
@@ -165,40 +197,11 @@ export function TaskComposer({ variant = 'page', focusRequest = 0, autoFocus = t
selectedMode={newTaskData.permissionMode}
onModeChange={(permissionMode) => setNewTaskData({ permissionMode })}
/>
- <ComposerModelEffortPickers
- models={offeredModels}
- selectedModel={displayModel}
- defaultModel={defaultModel}
- isDefaultModelLoading={myConfigLoading}
- selectedEffort={displayEffort}
- isDefaultSelection={isDefaultSelection}
- onModelChange={(model) =>
- setNewTaskData({
- model,
- reasoningEffort: resolveEffortForModel(
- catalogue,
- newTaskData.reasoningEffort,
- model
- ),
- // Clamp the mode too, not just the effort: leaving a
- // Claude-only mode selected against a Codex model would
- // show one permission ceiling and send a broader one.
- permissionMode: resolveModeForRuntimeAdapter(
- getRuntimeAdapterForModel(catalogue, model),
- newTaskData.permissionMode
- ),
- })
- }
- onEffortChange={(reasoningEffort) => setNewTaskData({ reasoningEffort })}
- // Clearing both pins is what hands the choice back to the resolved
- // default — submit then omits the triple entirely.
- onResetToDefault={() => setNewTaskData({ model: null, reasoningEffort: null })}
- onOpenDefaultSettings={() =>
- router.actions.push(
- urls.settings('environment-task-agents', 'task-agent-my-preference')
- )
- }
- />
+ {codexBillingEnabled ? (
+ <ComposerCodexBillingPickers {...modelPickerProps} />
+ ) : (
+ <ComposerModelEffortPickers {...modelPickerProps} />
+ )}
</Composer.Footer>
</Composer.Frame>
{/* Open-group state is shared with the side panel; a group left open there would list generic prompts here. */}
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
index c1537ab4489c..819e835be73c 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
@@ -92,6 +92,10 @@ export function TaskRunChat({
? runConfig.state.initial_permission_mode
: pendingInteraction?.props.currentMode,
currentRuntimeAdapter: runConfig?.runtime_adapter ?? pendingInteraction?.props.currentRuntimeAdapter,
+ currentCodexModelAccess:
+ typeof runConfig?.state?.codex_model_access === 'string'
+ ? runConfig.state.codex_model_access
+ : pendingInteraction?.props.currentCodexModelAccess,
onRunStarted: (newRunId, handoff) => {
if (handoff) {
continueWithRun(handoff)
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunComposer.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunComposer.tsx
index f13b827a1ea6..44120f59f1ad 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunComposer.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunComposer.tsx
@@ -2,6 +2,7 @@ import { useActions, useValues } from 'kea'
import { router } from 'kea-router'
import { type MutableRefObject, type RefObject, useEffect, useMemo, useRef } from 'react'
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { projectLogic } from 'scenes/projectLogic'
import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'
import { urls } from 'scenes/urls'
@@ -14,6 +15,7 @@ import { runSlashCommandsLogic } from 'products/posthog_ai/frontend/logics/runSl
import { taskRunDefaultsLogic } from 'products/posthog_ai/frontend/logics/taskRunDefaultsLogic'
import { getRuntimeAdapterForModel, pickerModels } from 'products/posthog_ai/frontend/utils/composerModels'
import { cycleMode, getModesForRuntimeAdapter } from 'products/posthog_ai/frontend/utils/composerModes'
+import { ModelAccessEnumApi } from 'products/tasks/frontend/generated/api.schemas'
import { AttachedContextBar } from '../../../components/composer/AttachedContextBar'
import { AttachedContextChips } from '../../../components/composer/AttachedContextChips'
@@ -21,8 +23,12 @@ import { AttachedContextPicker } from '../../../components/composer/AttachedCont
import { CommandResultCard } from '../../../components/composer/CommandResultCard'
import { ComposerAttachmentChips } from '../../../components/composer/ComposerAttachmentChips'
import { ComposerAttachments, useComposerAttachmentPaste } from '../../../components/composer/ComposerAttachments'
+import { ComposerCodexBillingPickers } from '../../../components/composer/ComposerCodexBillingPickers'
import { ComposerCommandMenu } from '../../../components/composer/ComposerCommandMenu'
-import { ComposerModelEffortPickers } from '../../../components/composer/ComposerModelEffortPickers'
+import {
+ ComposerModelEffortPickers,
+ type ComposerModelEffortPickersProps,
+} from '../../../components/composer/ComposerModelEffortPickers'
import { ComposerModePicker } from '../../../components/composer/ComposerModePicker'
import { ComposerModeShortcut } from '../../../components/composer/ComposerModeShortcut'
import { useDebouncedDraft } from '../../../components/composer/useDebouncedDraft'
@@ -106,6 +112,7 @@ export function TaskRunComposer({
const labelRef = useRef<HTMLLabelElement>(null)
const groupRef = useRef<HTMLDivElement>(null)
const skin = useThreadSkin()
+ const codexBillingEnabled = useFeatureFlag('POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD')
const placeholder = isTerminal
? 'Send a message to start a new run, or type / for commands…'
@@ -119,22 +126,29 @@ export function TaskRunComposer({
modes={getModesForRuntimeAdapter(composerAdapter)}
/>
)
- const modelPicker = (
- <ComposerModelEffortPickers
- models={offeredModels}
- selectedModel={selectedModel}
- defaultModel={defaultModel}
- isDefaultModelLoading={myConfigLoading}
- selectedEffort={selectedEffort}
- onModelChange={setModel}
- onEffortChange={setEffort}
- // While the run is live its harness is fixed to whatever the sandbox booted; once
- // terminal the next send starts a fresh run, which may pick any harness.
- lockedRuntimeAdapter={isTerminal ? null : logicProps.currentRuntimeAdapter}
- onOpenDefaultSettings={() =>
- router.actions.push(urls.settings('environment-task-agents', 'task-agent-my-preference'))
+ const modelPickerProps: ComposerModelEffortPickersProps = {
+ models: offeredModels,
+ selectedModel,
+ defaultModel,
+ isDefaultModelLoading: myConfigLoading,
+ selectedEffort,
+ onModelChange: setModel,
+ onEffortChange: setEffort,
+ // While the run is live its harness is fixed to whatever the sandbox booted; once
+ // terminal the next send starts a fresh run, which may pick any harness.
+ lockedRuntimeAdapter: isTerminal ? null : logicProps.currentRuntimeAdapter,
+ onOpenDefaultSettings: () =>
+ router.actions.push(urls.settings('environment-task-agents', 'task-agent-my-preference')),
+ }
+ const modelPicker = codexBillingEnabled ? (
+ <ComposerCodexBillingPickers
+ {...modelPickerProps}
+ lockedCodexModelAccess={
+ isTerminal ? null : (logicProps.currentCodexModelAccess ?? ModelAccessEnumApi.PosthogGateway)
}
/>
+ ) : (
+ <ComposerModelEffortPickers {...modelPickerProps} />
)
const field = (
<ComposerCommandMenu commands={slashCommands}>
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
index 3699151c343e..696e9e0a5248 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.test.ts
@@ -2,7 +2,9 @@ import { waitFor } from '@testing-library/react'
import { router } from 'kea-router'
import { expectLogic } from 'kea-test-utils'
+import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { phaiAiComposerSeedLogic } from 'scenes/max/phaiAiComposerSeedLogic'
import { aiConsentLogic } from 'scenes/settings/organization/aiConsentLogic'
import { urls } from 'scenes/urls'
@@ -10,9 +12,10 @@ import { urls } from 'scenes/urls'
import { useMocks } from '~/mocks/jest'
import { initKeaTests } from '~/test/init'
-import { TaskRuntimeEnumApi } from 'products/tasks/frontend/generated/api.schemas'
+import { ModelAccessEnumApi, TaskRuntimeEnumApi } from 'products/tasks/frontend/generated/api.schemas'
import { attachedContextLogic, runStreamLogic } from '../../api/logics'
+import { codexBillingLogic } from '../../logics/codexBillingLogic'
import { composerAttachmentsLogic } from '../../logics/composerAttachmentsLogic'
import { composerOverrideLogic } from '../../logics/composerOverrideLogic'
import { composerSeedLogic } from '../../logics/composerSeedLogic'
@@ -693,6 +696,37 @@ describe('taskTrackerSceneLogic', () => {
expect(logic.values.newTaskData.model).toBeNull()
})
+ it('bills a codex default to the saved chatgpt plan when the task submits before the defaults load', async () => {
+ const flag = FEATURE_FLAGS.POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD
+ featureFlagLogic.actions.setFeatureFlags([flag], { [flag]: true })
+ useMocks({
+ get: {
+ '/api/projects/:team/tasks/@me/config/': myConfigResponse({
+ runtime_adapter: 'codex',
+ model: 'gpt-5',
+ reasoning_effort: 'high',
+ source: 'user',
+ }),
+ '/api/users/@me/integrations/codex/': { status: 'connected' },
+ },
+ })
+ const billing = codexBillingLogic()
+ billing.mount()
+ billing.actions.setPreferredCodexModelAccess(ModelAccessEnumApi.OwnSubscription)
+ logic.mount()
+
+ logic.actions.setNewTaskData({ description: 'do the thing' })
+ logic.actions.submitNewTask()
+ await expectLogic(logic).toFinishAllListeners()
+
+ expect(runBody).toMatchObject({
+ runtime_adapter: 'codex',
+ model: 'gpt-5',
+ codex_model_access: ModelAccessEnumApi.OwnSubscription,
+ })
+ billing.unmount()
+ })
+
// The repo picker only renders once `repositoryConfig.integrationId` is set (auto-selected from the
// connected GitHub org). Submitting resets the form, wiping that id; without re-deriving it the picker
// stays blank for every subsequent new task. Guards that the auto-select is restored after a submit.
diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
index a3eeb2e6d628..95815575241a 100644
--- a/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
@@ -17,6 +17,7 @@ import {
type ClaudeTaskRunCreateSchemaApi,
type CodexTaskRunCreateSchemaApi,
type LegacyDesktopAccessResponseApi,
+ ModelAccessEnumApi,
type ModelChoiceApi,
TaskOriginProductEnumApi,
ReasoningEffortEnumApi,
@@ -30,6 +31,12 @@ import type { IntegrationType } from '../../../../../frontend/src/types'
import { attachedContextItemKey, attachedContextLogic, runStreamLogic } from '../../api/logics'
import type { SuggestionGroup, SuggestionItem } from '../../api/primitives'
import { DEFAULT_HEADLINES, pickHeadline } from '../../api/primitives'
+import {
+ CodexBillingUnresolvedError,
+ codexBillingLogic,
+ codexModelAccessForRun,
+ usesChatGptPlan,
+} from '../../logics/codexBillingLogic'
import { composerAttachmentsLogic } from '../../logics/composerAttachmentsLogic'
import { composerOverrideLogic } from '../../logics/composerOverrideLogic'
import type { ComposerOverride } from '../../logics/composerOverrideLogic'
@@ -188,6 +195,7 @@ export interface taskTrackerSceneLogicValues {
defaultEffort: string | null // taskRunDefaultsLogic
defaultModel: string | null // taskRunDefaultsLogic
defaultRuntimeAdapter: string | null // taskRunDefaultsLogic
+ defaultsResolved: boolean // taskRunDefaultsLogic
warmLease: WarmLease | null // taskWarmLogic
repositories: string[] // tasksLogic
taskListParams: TaskListParams // tasksLogic
@@ -315,6 +323,9 @@ export interface taskTrackerSceneLogicActions {
maybeAutoSelectIntegration: () => {
value: true
}
+ noteNewTaskDraft: () => {
+ value: true
+ }
openExistingTask: (task: Task) => {
task: Task
}
@@ -427,7 +438,7 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
composerAttachmentsLogic({ attachmentsKey: props.panelId ?? 'scene' }),
['stagedAttachments'],
taskRunDefaultsLogic,
- ['defaultModel', 'defaultEffort', 'defaultRuntimeAdapter'],
+ ['defaultModel', 'defaultEffort', 'defaultRuntimeAdapter', 'defaultsResolved'],
],
actions: [
runnerPanelLogic(props),
@@ -468,6 +479,7 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
clearConsentBlock: true,
// Pulls any pending `composerSeedLogic` seed into the composer (prefill + optional auto-submit).
applyComposerSeed: true,
+ noteNewTaskDraft: true,
}),
reducers({
@@ -637,16 +649,26 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
// Consent gates warming as it gates submitting (see `submitNewTask`): a warm boots a cloud
// sandbox and clones the selected repository, so it must not run before the organization
// accepts AI data processing.
- if (!values.activeCreation && values.dataProcessingAccepted) {
- const request = buildWarmRequest(
- { ...values.newTaskData, repositoryConfig: values.effectiveRepositoryConfig },
- values.catalogue,
- values.displayModel,
- values.displayEffort
- )
- if (request) {
- actions.noteDraft(values.newTaskData.description.trim().length > 0, request)
- }
+ actions.noteNewTaskDraft()
+ },
+ // A run on the ChatGPT plan can't use a warm sandbox, so switching the billing re-decides the warm.
+ [codexBillingLogic.actionTypes.setPreferredCodexModelAccess]: () => {
+ actions.noteNewTaskDraft()
+ },
+ noteNewTaskDraft: () => {
+ if (values.activeCreation || !values.dataProcessingAccepted) {
+ return
+ }
+ const request = buildWarmRequest(
+ { ...values.newTaskData, repositoryConfig: values.effectiveRepositoryConfig },
+ values.catalogue,
+ values.displayModel,
+ values.displayEffort
+ )
+ if (request) {
+ // An empty draft releases the warm, and so does the ChatGPT plan, which boots cold.
+ const hasText = values.newTaskData.description.trim().length > 0
+ actions.noteDraft(hasText && !usesChatGptPlan(values.composerAdapter), request)
}
},
// Restore the remembered repo (or fall back to the first connected GitHub integration) when nothing is
@@ -701,6 +723,7 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
const description = values.newTaskData.description.trim()
const { permissionMode } = values.newTaskData
const repositoryConfig = values.effectiveRepositoryConfig
+ const composerAdapter = values.composerAdapter
if (!description) {
lemonToast.error('Description is required')
@@ -740,6 +763,7 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
currentMode: permissionMode,
currentRuntimeAdapter:
values.isDefaultSelection && !values.defaultRuntimeAdapter ? null : values.composerAdapter,
+ currentCodexModelAccess: usesChatGptPlan(composerAdapter) ? ModelAccessEnumApi.OwnSubscription : null,
contextItems: props.contextItems,
})
cache.disposables.add(
@@ -765,6 +789,16 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
)
try {
+ const codexModelAccess = await codexModelAccessForRun(async () => {
+ if (values.isDefaultSelection && !values.defaultsResolved) {
+ await taskRunDefaultsLogic.asyncActions.loadMyConfig()
+ if (!values.defaultsResolved) {
+ return null
+ }
+ }
+ return values.composerAdapter
+ })
+ const onChatGptPlan = codexModelAccess === ModelAccessEnumApi.OwnSubscription
// Files can only be uploaded against something that already exists. A warm lease names a task
// and a run, so they go onto that run and ride its activation. Without one there is nothing
// to upload to yet, so warm reuse is given up and the files are staged on the cold task.
@@ -789,6 +823,7 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
branch: repositoryConfig.branch ?? null,
mode: TaskExecutionModeEnumApi.Interactive,
pending_user_message: pendingUserMessage,
+ ...(codexModelAccess ? { codex_model_access: codexModelAccess } : {}),
}
// An untouched selection pins nothing: the backend resolves the model triple from the
// stored team/user default (correct even while the defaults fetch is in flight or has
@@ -796,7 +831,9 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
// was provisioned the same way, so provisioning and matching resolve alike. An explicit
// pick sends the full displayed selection, runtime derived from the model.
let pinnedRequest: ClaudeTaskRunCreateSchemaApi | CodexTaskRunCreateSchemaApi | null = null
- if (!values.isDefaultSelection) {
+ // A run on the ChatGPT plan pins the displayed Codex model, so the server can't resolve a default
+ // on another harness that the plan can't pay for.
+ if (!values.isDefaultSelection || onChatGptPlan) {
const built = buildRunCreateRequest(
values.catalogue,
values.displayModel,
@@ -823,7 +860,8 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
// (even `null`) or reuse is never attempted at all — which is how lease-less attachments
// opt out. The model triple is left off when the selection is untouched, so the backend
// resolves it for warm matching too.
- ...(suppressWarmReuse ? {} : { branch: runPayload.branch }),
+ // A warm sandbox holds no ChatGPT token, so a run on the plan skips warm reuse and boots cold.
+ ...(suppressWarmReuse || onChatGptPlan ? {} : { branch: runPayload.branch }),
...(pendingUserArtifactIds.length > 0 ? { pending_user_artifact_ids: pendingUserArtifactIds } : {}),
...(pinnedRequest
? {
@@ -914,6 +952,10 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
? createdRun.state.initial_permission_mode
: interaction.props.currentMode,
currentRuntimeAdapter: createdRun?.runtime_adapter ?? interaction.props.currentRuntimeAdapter,
+ currentCodexModelAccess:
+ typeof createdRun?.state?.codex_model_access === 'string'
+ ? createdRun.state.codex_model_access
+ : (codexModelAccess ?? interaction.props.currentCodexModelAccess),
})
// Attach the real ids to the optimistic creation so the detail page adopts this seeded stream
// (same `streamKey` + real `runId`) instead of cold-bootstrapping a fresh, skeleton-flashing one.
@@ -978,6 +1020,9 @@ export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
if (error instanceof ApiError && error.code === 'warm_run_activation_unavailable') {
lemonToast.error("Couldn't start this run yet. Please try again.")
}
+ if (error instanceof CodexBillingUnresolvedError) {
+ lemonToast.error("Couldn't confirm your ChatGPT plan for this run. Please try again.")
+ }
cache.submittingTask = null
actions.submitNewTaskFailure(error instanceof Error ? error.message : 'Unknown error')
} finally {