openai/codex · error · anyhow::Error
hosted connector refresh completed without publishing a…
Error message
hosted connector refresh completed without publishing a snapshot
What it means
Sanity check in apps_installed after triggering a hosted-connector refresh: the refresh flow for the Codex apps MCP server completed without publishing a new tools snapshot, so the code cannot proceed with data that should have been produced. This indicates the refresh pipeline finished (or was skipped) without persisting the expected snapshot — an internal consistency failure rather than a caller mistake.
Solutions
- Retry the connector refresh; transient readiness races can leave the snapshot unpublished
- Verify the MCP server readiness wait and snapshot publication ordering in the refresh pipeline
- Check codex_apps_tools_cache write paths for silent failures
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at codex-rs/app-server/src/request_processors/apps_processor/installed.rs:120 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/602b9e3591a71d40.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/app-server/src/request_processors/apps_processor/installed.rs:120
auth: auth.clone(),
codex_apps_auth_manager,
elicitation_reviewer: None,
elicitation_lifecycle: None,
})
.await;
let result = if runtime
.latest_wait_for_server_ready(
CODEX_APPS_MCP_SERVER_NAME,
startup_timeout,
)
.await
{
mcp_manager
.codex_apps_tools_cache()
.current_snapshot(config.codex_home.to_path_buf(), cache_key.clone())
.ok_or_else(|| {
anyhow::anyhow!(
"hosted connector refresh completed without publishing a snapshot"
)
})
} else {
Err(anyhow::anyhow!(
"failed to refresh tools for MCP server '{CODEX_APPS_MCP_SERVER_NAME}'"
))
};
cancellation_token.cancel();
runtime.shutdown().await;
result
}
.await;
match refresh_result {
Ok(snapshot) => {
refresh_disposition = "success";
Some(snapshot)View on GitHub (pinned to 339751715c)