mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Route cyber Trusted Access links by plan type (#40504)
## What changed - Send `Free`, `Go`, `Plus`, `Pro`, and `ProLite` ChatGPT users to the individual Trusted Access page when a cybersecurity policy error ends a turn. - Keep the enterprise Trusted Access application for other plans and sessions without a ChatGPT account or known plan. ## Testing - Cover individual and enterprise link selection in chat widget tests and history-cell snapshots. GitOrigin-RevId: a563560d15c401b47f1865a6f58ea4692d31d457
This commit is contained in:
1 parent
ebe18fc982
commit
80e871309a
5 files changed
+53
-5
No files matched your search
@@ -385,7 +385,12 @@ impl ChatWidget {
|
||||
pub(super) fn on_cyber_policy_error(&mut self) {
|
||||
self.input_queue.submit_pending_steers_after_interrupt = false;
|
||||
self.finalize_turn();
|
||||
self.add_to_history(history_cell::new_cyber_policy_error_event());
|
||||
let plan_type = if self.has_chatgpt_account {
|
||||
self.plan_type
|
||||
} else {
|
||||
None
|
||||
};
|
||||
self.add_to_history(history_cell::new_cyber_policy_error_event(plan_type));
|
||||
self.request_redraw();
|
||||
|
||||
// After an error ends the turn, try sending the next queued input.
|
||||
|
||||
Reference in new issue
Block a user