lock to chatgpt.com

This commit is contained in:
Ruslan Nigmatullin
2026-03-27 12:24:29 -07:00
parent a8d299f065
commit 5537c4c014
2 changed files with 65 additions and 26 deletions

View File

@@ -212,10 +212,11 @@ mod tests {
async fn persisted_remote_control_enrollment_round_trips_by_target_and_account() {
let codex_home = TempDir::new().expect("temp dir should create");
let state_db = remote_control_state_runtime(&codex_home).await;
let first_target = normalize_remote_control_url("https://example.com/remote/control")
let first_target = normalize_remote_control_url("https://chatgpt.com/remote/control")
.expect("first target should parse");
let second_target = normalize_remote_control_url("https://example.com/other/control")
.expect("second target should parse");
let second_target =
normalize_remote_control_url("https://api.chatgpt-staging.com/other/control")
.expect("second target should parse");
let first_enrollment = RemoteControlEnrollment {
account_id: Some("account-a".to_string()),
server_id: "srv_e_first".to_string(),
@@ -277,10 +278,11 @@ mod tests {
async fn clearing_persisted_remote_control_enrollment_removes_only_matching_entry() {
let codex_home = TempDir::new().expect("temp dir should create");
let state_db = remote_control_state_runtime(&codex_home).await;
let first_target = normalize_remote_control_url("https://example.com/remote/control")
let first_target = normalize_remote_control_url("https://chatgpt.com/remote/control")
.expect("first target should parse");
let second_target = normalize_remote_control_url("https://example.com/other/control")
.expect("second target should parse");
let second_target =
normalize_remote_control_url("https://api.chatgpt-staging.com/other/control")
.expect("second target should parse");
let first_enrollment = RemoteControlEnrollment {
account_id: Some("account-a".to_string()),
server_id: "srv_e_first".to_string(),