mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
Replace Sites migration state with a runtime compatibility guard (#46108)
## Why Older Desktop clients can still provide bundled Sites to an independently updated SSH app-server. A cached remote Sites install must take precedence, even when disabled, while a missing remote bundle must preserve the bundled fallback. ## What changed - Remove persisted bundled-plugin exclusions, Sites migration checks, and the migration wait when loading local plugin configuration. - Suppress `sites@openai-bundled` during plugin loading when the remote global catalog is active and a cached remote Sites install is available. - Remove exclusion-based catalog filtering and read/install guards, and simplify `install_plugin` to accept `ConfigLayerStack`. ## Testing Expand the agent-turn Sites test to cover enabled remote precedence, disabled remote suppression of bundled Sites, and fallback when the remote bundle is missing. GitOrigin-RevId: e2758596e5493ccee051cdfbf6b4afbe4f98948c
This commit is contained in:
1 parent
77c1feb00e
commit
108e6a6dbe
15 files changed
+41
-727
No files matched your search
@@ -1492,7 +1492,7 @@ impl PluginRequestProcessor {
|
||||
};
|
||||
|
||||
let result = match plugins_manager
|
||||
.install_plugin(&config.plugins_config_input(), request)
|
||||
.install_plugin(&config.config_layer_stack, request)
|
||||
.await
|
||||
{
|
||||
Ok(result) => result,
|
||||
|
||||
@@ -12,30 +12,14 @@ impl PluginRequestProcessor {
|
||||
&self,
|
||||
cwds: &[AbsolutePathBuf],
|
||||
) -> Result<Config, JSONRPCErrorError> {
|
||||
let config = if cwds.is_empty() {
|
||||
if cwds.is_empty() {
|
||||
self.config_manager
|
||||
.load_non_project_config()
|
||||
.await
|
||||
.map_err(|err| internal_error(format!("failed to reload config: {err}")))
|
||||
} else {
|
||||
self.load_latest_config(/*fallback_cwd*/ None).await
|
||||
}?;
|
||||
// TODO(sites-migration): Remove this initial migration wait after bundled Sites is retired.
|
||||
let auth = self.auth_manager.auth().await;
|
||||
match Box::pin(
|
||||
self.thread_manager
|
||||
.plugins_manager()
|
||||
.ensure_sites_migration_ready(&config.plugins_config_input(), auth.as_ref()),
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(Some(change)) => (self.effective_plugins_changed_callback())(change),
|
||||
Ok(None) => {}
|
||||
Err(err) => {
|
||||
warn!(error = %err, "Sites migration refresh failed; preserving local plugins")
|
||||
}
|
||||
}
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
pub(super) async fn load_marketplace_context(
|
||||
|
||||
Reference in new issue
Block a user