Purge Codex product label residue

This commit is contained in:
Meta Vens 2026-05-14 05:57:11 +01:00
commit 78c80ae531
15 changed files with 48 additions and 79 deletions

View file

@ -953,6 +953,15 @@ app-server MCP resource/elicitation/tool tests now use demo/resource MCP server
names instead of `Apps*` wrappers. This is naming purification only, not a
protocol rewrite.
The product-label residue sweep then cut the CLI tombstone that preserved
`codex marketplace` / `codex plugin marketplace` command strings as a negative
contract, neutralized "plugin-provided MCP" comments, and renamed lingering
plugin/app fixture labels in watcher, context, TUI mention, MCP inventory,
absolute-path, and template tests. A vendored-wide search for product-shaped
`marketplace`, `plugin`, `app://`, `plugin://`, `codex_apps`, and stale Apps
test names now returns only external URLs, generic URL examples, and real
package names such as `eslint-plugin`; not live Codex product machinery.
That husk has now been cut from `codex-core`. The root core crate no longer
exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`,
and the core plugin manager / marketplace add-remove-sync modules and tests

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -5891,9 +5891,8 @@ impl CodexMessageProcessor {
.mcp_servers
.keys()
.cloned()
// Include built-in/plugin MCP servers that are present in the
// effective runtime config even when they are not user-declared in
// `config.mcp_servers`.
// Include MCP servers that are present in the effective runtime
// config even when they are not user-declared in `config.mcp_servers`.
.chain(effective_servers.keys().cloned())
.chain(auth_statuses.keys().cloned())
.chain(resources.keys().cloned())

View file

@ -1741,25 +1741,6 @@ mod tests {
assert!(matches!(cli.subcommand, Some(Subcommand::Responses(_))));
}
#[test]
fn marketplace_and_plugin_commands_no_longer_parse() {
let add_result =
MultitoolCli::try_parse_from(["codex", "marketplace", "add", "owner/repo"]);
assert!(add_result.is_err());
let upgrade_result =
MultitoolCli::try_parse_from(["codex", "marketplace", "upgrade", "debug"]);
assert!(upgrade_result.is_err());
let remove_result =
MultitoolCli::try_parse_from(["codex", "marketplace", "remove", "debug"]);
assert!(remove_result.is_err());
let plugin_result =
MultitoolCli::try_parse_from(["codex", "plugin", "marketplace", "add", "owner/repo"]);
assert!(plugin_result.is_err());
}
fn sample_exit_info(conversation_id: Option<&str>, thread_name: Option<&str>) -> AppExitInfo {
let token_usage = TokenUsage {
output_tokens: 2,

View file

@ -91,7 +91,7 @@ pub fn mcp_permission_prompt_is_auto_approved(
///
/// This struct should contain only long-lived configuration values that the
/// `codex-mcp` crate needs to construct server transports, enforce MCP
/// approval/sandbox policy, locate OAuth state, and merge plugin-provided MCP
/// approval/sandbox policy, locate OAuth state, and merge configured MCP
/// servers. Request-scoped or auth-scoped state should not be stored here;
/// thread those values explicitly into runtime entry points such as
/// [`effective_mcp_servers`] and [`collect_mcp_snapshot`] so config objects do
@ -114,7 +114,7 @@ pub struct McpConfig {
pub codex_linux_sandbox_exe: Option<PathBuf>,
/// Whether to use legacy Landlock behavior in the MCP sandbox state.
pub use_legacy_landlock: bool,
/// User-configured and plugin-provided MCP servers keyed by server name.
/// Configured MCP servers keyed by server name.
pub configured_mcp_servers: HashMap<String, McpServerConfig>,
}

View file

@ -19,7 +19,7 @@ If the user does not react to a proposed suggestion, consider it accepted.
*Use reasonable assumptions.* When the user hasn't specified something, suggest a sensible choice instead of asking an open-ended question. Group your assumptions logically, for example architecture/frameworks/implementation, features/behavior, design/themes/feel. Clearly label suggestions as provisional. Share reasoning when it helps the user evaluate tradeoffs. Keep explanations short and grounded in consequences. They should be easy to accept or override. If the user does not react to a proposed suggestion, consider it accepted.
Example: "There are a few viable ways to structure this. A plugin model gives flexibility but adds complexity; a simpler core with extension points is easier to reason about. Given what you've said about your team's size, I'd lean towards the latter."
Example: "There are a few viable ways to structure this. A modular model gives flexibility but adds complexity; a simpler core with extension points is easier to reason about. Given what you've said about your team's size, I'd lean towards the latter."
Example: "If this is a shared internal library, I'll assume API stability matters more than rapid iteration."
*Think ahead.* What else might the user need? How will the user test and understand what you did? Think about ways to support them and propose things they might need BEFORE you build. Offer at least one suggestion you came up with by thinking ahead.

View file

@ -959,7 +959,7 @@ fn drop_last_n_user_turns_clears_reference_context_for_mixed_developer_context_b
assistant_msg("turn 1 assistant"),
developer_msg_with_fragments(&[
"<permissions instructions>contextual permissions</permissions instructions>",
"persistent plugin instructions",
"persistent capability instructions",
]),
user_input_text_msg(
"<environment_context><cwd>PRETURN_CONTEXT_DIFF_CWD</cwd></environment_context>",

View file

@ -297,11 +297,11 @@ fn unregister_holds_state_lock_until_unwatch_finishes() {
async fn matching_subscribers_are_notified() {
let watcher = Arc::new(FileWatcher::noop());
let (alpha_subscriber, alpha_rx) = watcher.add_subscriber();
let (plugins_subscriber, plugins_rx) = watcher.add_subscriber();
let (beta_subscriber, beta_rx) = watcher.add_subscriber();
let _alpha = alpha_subscriber.register_path(path("/tmp/watch-alpha"), /*recursive*/ true);
let _plugins = plugins_subscriber.register_path(path("/tmp/plugins"), /*recursive*/ true);
let _beta = beta_subscriber.register_path(path("/tmp/watch-beta"), /*recursive*/ true);
let mut alpha_rx = ThrottledWatchReceiver::new(alpha_rx, TEST_THROTTLE_INTERVAL);
let mut plugins_rx = ThrottledWatchReceiver::new(plugins_rx, TEST_THROTTLE_INTERVAL);
let mut beta_rx = ThrottledWatchReceiver::new(beta_rx, TEST_THROTTLE_INTERVAL);
watcher
.send_paths_for_test(vec![path("/tmp/watch-alpha/rust/file.txt")])
@ -318,8 +318,8 @@ async fn matching_subscribers_are_notified() {
}
);
let plugins_event = timeout(TEST_THROTTLE_INTERVAL, plugins_rx.recv()).await;
assert_eq!(plugins_event.is_err(), true);
let beta_event = timeout(TEST_THROTTLE_INTERVAL, beta_rx.recv()).await;
assert_eq!(beta_event.is_err(), true);
}
#[tokio::test]

View file

@ -1629,7 +1629,7 @@ mod tests {
let mut view = ListSelectionView::new(
SelectionViewParams {
items: vec![SelectionItem {
name: "Plugin".to_string(),
name: "Module".to_string(),
toggle: Some(SelectionToggle {
is_on: false,
action: Box::new(|_enabled, tx: &_| {
@ -1643,11 +1643,11 @@ mod tests {
},
tx,
);
view.set_search_query("plugin".to_string());
view.set_search_query("module".to_string());
view.handle_key_event(KeyEvent::new(KeyCode::Char(' '), KeyModifiers::NONE));
assert_eq!(view.search_query, "plugin ");
assert_eq!(view.search_query, "module ");
assert!(
!view.active_items()[0]
.toggle
@ -1669,7 +1669,7 @@ mod tests {
SelectionViewParams {
title: Some("Debug".to_string()),
items: vec![SelectionItem {
name: "A very long plugin name".to_string(),
name: "A very long module name".to_string(),
description: Some(
"A very long description that would normally wrap onto another line."
.to_string(),
@ -1688,7 +1688,7 @@ mod tests {
SelectionViewParams {
title: Some("Debug".to_string()),
items: vec![SelectionItem {
name: "A very long plugin name".to_string(),
name: "A very long module name".to_string(),
description: Some(
"A very long description that would normally wrap onto another line."
.to_string(),

View file

@ -1047,7 +1047,7 @@ async fn submit_user_message_queues_while_compaction_turn_is_running() {
}
#[tokio::test(flavor = "multi_thread")]
async fn submit_user_message_ignores_plugin_mentions_from_bindings() {
async fn submit_user_message_ignores_stale_structured_mentions_from_bindings() {
let (mut chat, _rx, mut op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
let conversation_id = ThreadId::new();
let rollout_file = NamedTempFile::new().unwrap();

View file

@ -3418,18 +3418,18 @@ mod tests {
#[tokio::test]
async fn mcp_tools_output_from_statuses_renders_status_only_servers() {
let mut config = test_config().await;
let mut plugin_docs =
let mut docs_server =
stdio_server_config("docs-server", vec!["--stdio"], /*env*/ None, vec![]);
plugin_docs.enabled = false;
plugin_docs.disabled_reason = Some(McpServerDisabledReason::Unknown);
let servers = HashMap::from([("plugin_docs".to_string(), plugin_docs)]);
docs_server.enabled = false;
docs_server.disabled_reason = Some(McpServerDisabledReason::Unknown);
let servers = HashMap::from([("docs_server".to_string(), docs_server)]);
config
.mcp_servers
.set(servers)
.expect("test mcp servers should accept any configuration");
let statuses = vec![McpServerStatus {
name: "plugin_docs".to_string(),
name: "docs_server".to_string(),
tools: HashMap::from([(
"lookup".to_string(),
Tool {
@ -3461,16 +3461,16 @@ mod tests {
#[tokio::test]
async fn mcp_tools_output_from_statuses_renders_verbose_inventory() {
let mut config = test_config().await;
let plugin_docs =
let docs_server =
stdio_server_config("docs-server", vec!["--stdio"], /*env*/ None, vec![]);
let servers = HashMap::from([("plugin_docs".to_string(), plugin_docs)]);
let servers = HashMap::from([("docs_server".to_string(), docs_server)]);
config
.mcp_servers
.set(servers)
.expect("test mcp servers should accept any configuration");
let statuses = vec![McpServerStatus {
name: "plugin_docs".to_string(),
name: "docs_server".to_string(),
tools: HashMap::from([(
"lookup".to_string(),
Tool {

View file

@ -6,7 +6,7 @@ expression: rendered
🔌 MCP Tools
• plugin_docs
• docs_server
• Auth: Unsupported
• Command: docs-server --stdio
• Tools: lookup

View file

@ -6,7 +6,7 @@ expression: rendered
🔌 MCP Tools
• plugin_docs
• docs_server
• Status: enabled
• Auth: Unsupported
• Command: docs-server --stdio

View file

@ -372,14 +372,14 @@ mod tests {
std::env::current_dir().expect_err("current dir should be unavailable");
let path = AbsolutePathBuf::from_absolute_path(test_path_buf(
"/tmp/codex/../codex-home/plugins/cache",
"/tmp/codex/../codex-home/extensions/cache",
))
.expect("absolute path should not require current dir");
std::env::set_current_dir(original_cwd).expect("restore cwd");
assert_eq!(
path.as_path(),
test_path_buf("/tmp/codex-home/plugins/cache")
test_path_buf("/tmp/codex-home/extensions/cache")
);
}