[codex][device-stable-id][12/n] Send source stable ID with managed auth requests

This commit is contained in:
Riley Pinkerton
2026-06-18 07:04:07 +00:00
parent e7b6e0d859
commit 82008057b1
36 changed files with 358 additions and 40 deletions
@@ -1260,8 +1260,19 @@ impl TestAppServer {
/// Send an `account/login/start` JSON-RPC request for ChatGPT login.
pub async fn send_login_account_chatgpt_request(&mut self) -> anyhow::Result<i64> {
self.send_login_account_chatgpt_request_with_source_surface_stable_id(
/*source_surface_stable_id*/ None,
)
.await
}
pub async fn send_login_account_chatgpt_request_with_source_surface_stable_id(
&mut self,
source_surface_stable_id: Option<&str>,
) -> anyhow::Result<i64> {
let params = serde_json::json!({
"type": "chatgpt"
"type": "chatgpt",
"sourceSurfaceStableId": source_surface_stable_id,
});
self.send_request("account/login/start", Some(params)).await
}