mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Forward install attempt IDs for remote plugins (#37773)
## Why Clients need to correlate a remote plugin installation request with a specific installation attempt. ## What changed - Add the optional `installAttemptId` field to `PluginInstallParams`. - Forward the value as `install_attempt_id` in the remote plugin install POST body. - Preserve the existing empty request body when the field is omitted. ## Testing - Cover protocol serialization and remote install request bodies with and without an attempt ID. GitOrigin-RevId: ffdceff4f9329b650848e6428a9ba39646c242c3
This commit is contained in:
1 parent
c9c6c0daa9
commit
89a335ed50
16 files changed
+186
-11
No files matched your search
@@ -3758,12 +3758,14 @@ fn plugin_install_params_serialization_omits_force_remote_sync() {
|
||||
serde_json::to_value(PluginInstallParams {
|
||||
marketplace_path: Some(marketplace_path.clone()),
|
||||
remote_marketplace_name: None,
|
||||
install_attempt_id: Some("94c79f7b-cceb-4415-9a3e-b51b2f718d43".to_string()),
|
||||
plugin_name: "gmail".to_string(),
|
||||
})
|
||||
.unwrap(),
|
||||
json!({
|
||||
"marketplacePath": marketplace_path_json,
|
||||
"remoteMarketplaceName": null,
|
||||
"installAttemptId": "94c79f7b-cceb-4415-9a3e-b51b2f718d43",
|
||||
"pluginName": "gmail",
|
||||
}),
|
||||
);
|
||||
@@ -3778,6 +3780,7 @@ fn plugin_install_params_serialization_omits_force_remote_sync() {
|
||||
PluginInstallParams {
|
||||
marketplace_path: Some(marketplace_path),
|
||||
remote_marketplace_name: None,
|
||||
install_attempt_id: None,
|
||||
plugin_name: "gmail".to_string(),
|
||||
},
|
||||
);
|
||||
@@ -3792,6 +3795,7 @@ fn plugin_install_params_serialization_omits_force_remote_sync() {
|
||||
PluginInstallParams {
|
||||
marketplace_path: None,
|
||||
remote_marketplace_name: Some("openai-curated-remote".to_string()),
|
||||
install_attempt_id: None,
|
||||
plugin_name: "gmail".to_string(),
|
||||
},
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user