BigPizzaV3/CodexPlusPlus · error · anyhow::Error
未知上下文类型:{other}
Error message
未知上下文类型:{other} What it means
Thrown by context_table_name when the kind argument matches none of the accepted aliases (mcp/mcpServer/mcpServers, skill/skills, plugin/plugins). The function maps a context kind to its TOML table name; the offending input is the unrecognized kind string {other} passed by the caller, so the context-entry upsert/listing cannot proceed.
Source
Thrown at crates/codex-plus-core/src/relay_config.rs:2115
toml_body: body,
enabled: context_entry_enabled(table),
})
})
.collect()
}
fn table_body_to_string(table: &Table) -> String {
let mut doc = DocumentMut::new();
merge_toml_table_like(doc.as_table_mut(), table);
normalize_optional_toml(doc)
}
fn context_table_name(kind: &str) -> anyhow::Result<&'static str> {
match kind {
"mcp" | "mcpServer" | "mcpServers" => Ok("mcp_servers"),
"skill" | "skills" => Ok("skills"),
"plugin" | "plugins" => Ok("plugins"),
other => anyhow::bail!("未知上下文类型:{other}"),
}
}
fn context_kind_name(table: &str) -> &'static str {
match table {
"mcp_servers" => "mcp",
"skills" => "skill",
"plugins" => "plugin",
_ => "unknown",
}
}
fn context_entry_summary(body: &str) -> String {
body.lines()
.map(str::trim)
.find(|line| !line.is_empty() && !line.starts_with('#'))
.unwrap_or("")
.chars()View on GitHub (pinned to f2074595a2)
Solutions
- 使用支持的 kind:mcp、skill 或 plugin
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/codex-plus-core/src/relay_config.rs:2115 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23).
Data as JSON: /api/errors/978d11e5f2724250.
Report an issue: GitHub.