openai/codex · error · anyhow::Error
{err:#}
Error message
{err:#} What it means
Generic error passthrough in the TUI's fetch_installed_connector_mentions: the apps/installed RPC (or its fallback path) failed and the anyhow chain is surfaced with {err:#}. The faulty input is the apps-installed request for the current thread; adjacent match arms handle older-server error codes, so this arm catches everything else (transport failure, server error).
Solutions
- Treat the failure as 'no connector mentions available' and disable @-mention completions for this turn
- Retry the apps/installed request with force_refresh=false after the app-server connection recovers
- Check the app-server version supports the apps API if the error persists
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at codex-rs/tui/src/app/connector_mentions.rs:84 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/ac5c0b16b553af51.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/tui/src/app/connector_mentions.rs:84
request_id: RequestId::String(format!("apps-installed-{}", Uuid::new_v4())),
params: AppsInstalledParams {
thread_id: thread_id.clone(),
force_refresh,
},
})
.await
{
Ok(response) => response,
Err(TypedRequestError::Server { source, .. })
if source.code == -32601
|| source.code == -32600
&& source.message.contains("app/installed")
&& (source.message.contains("unknown variant")
|| source.message.contains("unknown method")) =>
{
let mut snapshot = fetch_connectors_list(request_handle, force_refresh, thread_id)
.await
.map_err(|err| anyhow::anyhow!("{err:#}"))?;
snapshot.connectors.retain(|app| app.is_accessible);
return Ok(snapshot);
}
Err(err) => return Err(err).context("app/installed failed while loading app mentions"),
};
let callable_apps: Vec<_> = response.apps.iter().filter(|app| app.callable).collect();
let mut metadata_by_id = HashMap::new();
for apps in callable_apps.chunks(APP_READ_BATCH_SIZE) {
match request_handle
.request_typed::<AppsReadResponse>(ClientRequest::AppsRead {
request_id: RequestId::String(format!("apps-read-{}", Uuid::new_v4())),
params: AppsReadParams {
app_ids: apps.iter().map(|app| app.id.clone()).collect(),
thread_id: thread_id.clone(),
include_tools: false,
},
})View on GitHub (pinned to 339751715c)