mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
Fix plugin manager CI failures
This commit is contained in:
@@ -1058,7 +1058,8 @@ impl PluginsManager {
|
||||
|
||||
if current_enabled != Some(true) {
|
||||
result.enabled_plugin_ids.push(plugin_key.clone());
|
||||
config_edits = config_edits.set_plugin_enabled(&plugin_key, true);
|
||||
config_edits =
|
||||
config_edits.set_plugin_enabled(&plugin_key, /*enabled*/ true);
|
||||
has_config_edits = true;
|
||||
}
|
||||
} else if !additive_only {
|
||||
|
||||
@@ -786,7 +786,9 @@ remote_plugin = true
|
||||
let server = MockServer::start().await;
|
||||
mount_remote_installed_plugin_pages(
|
||||
&server,
|
||||
&remote_installed_plugin_json_with_release("linear", true, "2.0.0", None),
|
||||
&remote_installed_plugin_json_with_release(
|
||||
"linear", /*enabled*/ true, "2.0.0", /*bundle_download_url*/ None,
|
||||
),
|
||||
"",
|
||||
)
|
||||
.await;
|
||||
@@ -836,8 +838,8 @@ remote_plugin = true
|
||||
&server,
|
||||
&format!(
|
||||
"{},\n{}",
|
||||
remote_installed_plugin_json("linear", true),
|
||||
remote_installed_plugin_json("gmail", false)
|
||||
remote_installed_plugin_json("linear", /*enabled*/ true),
|
||||
remote_installed_plugin_json("gmail", /*enabled*/ false)
|
||||
),
|
||||
"",
|
||||
)
|
||||
@@ -938,7 +940,7 @@ async fn remote_installed_plugins_cache_refresh_clears_stale_cache_when_auth_is_
|
||||
notification_count_for_callback.fetch_add(1, Ordering::SeqCst);
|
||||
})),
|
||||
);
|
||||
wait_for_counter(¬ification_count, 1).await;
|
||||
wait_for_counter(¬ification_count, /*expected*/ 1).await;
|
||||
|
||||
let outcome = manager
|
||||
.plugins_for_config(
|
||||
|
||||
Reference in New Issue
Block a user