From 78c80ae531ef6e65c4a80780c1466bcb73b3589e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 14 May 2026 05:57:11 +0100 Subject: [PATCH] Purge Codex product label residue --- notes/fresh-workspace-handoff.md | 9 ++++ state/ledgers.msgpack | Bin 111644 -> 111970 bytes state/map.yaml | 40 +++++------------- .../app-server/src/codex_message_processor.rs | 5 +-- vendor/codex/codex-rs/cli/src/main.rs | 19 --------- .../codex/codex-rs/codex-mcp/src/mcp/mod.rs | 4 +- .../templates/execute.md | 2 +- .../core/src/context_manager/history_tests.rs | 2 +- .../codex-rs/core/src/file_watcher_tests.rs | 10 ++--- .../src/bottom_pane/list_selection_view.rs | 10 ++--- .../tui/src/chatwidget/tests/plan_mode.rs | 2 +- vendor/codex/codex-rs/tui/src/history_cell.rs | 16 +++---- ..._statuses_renders_status_only_servers.snap | 2 +- ...om_statuses_renders_verbose_inventory.snap | 2 +- .../codex-rs/utils/absolute-path/src/lib.rs | 4 +- 15 files changed, 48 insertions(+), 79 deletions(-) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 28933e50..ca28f8e9 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -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 diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 747c9671715d1319fb16c401039d14e308f04eea..5659aaa7e8b1181288cee77ae252e9c440de509c 100644 GIT binary patch delta 331 zcmYLFyGjE=6lGEbZ2SY^f+!-cyM{zCmR3p%5pC>lX0MweGk1pB**rvu;139bTKE%+ zVv{ei(?;Re`|wr&_^w|s*Iw2hS8jz^y_$;GsSpQGcb^wxaiMvfHQTLL zyLt0|zdm^rwL@?7N`^#Zmo#`PRbCO4Ln0TEu>;B>^a%Dk`(V)bDL9RiQm3mzF$8P6 zWw1` or `` prompt compatibility, memory usage classification, snapshot normalization, or cleanup paths. Remaining product-shaped skill residue is also cut from memory templates, app-server docs/tests/warnings, TUI tooltips/placeholders/warnings/comments, app-server v1 docs, agent-tool schema text, stale `UserInput::Skill` test arms, and obsolete feature flags/schema entries. App-instruction prompt compatibility is cut too: no `APPS_INSTRUCTIONS` protocol constants, no `` snapshot canonicalization, and MCP fixture tests now use neutral `demo_mcp` / `calendar_mcp` names instead of `codex_apps` / `/api/codex/apps` branding. The TUI app connector product path is also deleted: no `/apps` slash command, app-link view, connector AppEvent variants, app connector cache/popup/refresh loop, app mention insertion, `app://` mention codec support, stale app-popup tests, or TUI browser-opening shim remains. The `app/list` route and `app/list/updated` notification are gone from app-server protocol, generated schemas, app-server dispatch, test helpers, and docs; `AppInfo`/app-list metadata schema structs are deleted; the orphaned `codex-connectors` crate and `core::connectors` shim are deleted from the workspace; Codex app analytics no longer tracks `codex_app_mentioned` / `codex_app_used` facts, events, reducer arms, client APIs, or dedupe cache state; `[apps.*]`, `Feature::Apps`, `include_apps_instructions`, app config/read schemas, app managed requirements, app prompt tests, and app file-MCP tests are gone; `Feature::Plugins`, `Feature::RemotePlugin`, `plugin://` structured mentions, plugin instruction tags, and stale plugin popup snapshots are gone too; `[plugins]` / `[marketplaces]`, `PluginConfig`, `MarketplaceConfig`, marketplace edit helpers, stale plugin/external-agent README route claims, and generated schema entries are removed from config; and the bundled `codex-skills` sample-skill crate plus embedded imagegen/openai-docs/plugin-creator/skill-creator/skill-installer payloads are deleted from the workspace. Live MCP tool approval is named `McpToolApproval`, not `AppToolApproval`, and remains under MCP server config; live structured user-input mentions are MCP-shaped only. `codex_message_processor.rs` is about 9,637 lines; root `message_processor.rs` is about 1,292 lines after the external-agent/config-product cuts; `epiphany_read_routes.rs` is about 579 lines after the full view and read-response extractions; `epiphany_mutation_routes.rs` is about 694 lines after route-load/notification helper cuts and product-surface starvation; `epiphany_state_helpers.rs` is down to a 19-line rollout-state loader; and `codex_thread.rs` is about 1,425 lines after state-update law moved native. `epiphany-openai-adapter` defines CultCache `DatabaseEntry` request/event/receipt/auth-status documents with no Codex app-server or generic JSON dependency. `epiphany-openai-codex-spine` owns all direct Codex auth/model-transport imports for the native OpenAI path: it exposes `default_codex_home` and `auth_manager`, projects `AuthManager` / `CodexAuth` into typed `EpiphanyOpenAiAdapterStatus`, maps typed `EpiphanyOpenAiModelRequest` into Codex API `ResponsesApiRequest`, resolves auth/provider through keeper Codex crates, opens HTTP Responses streams through `codex-api`, maps deltas / completion into typed stream events and receipts, and no longer directly depends on `codex-app-server-protocol` just to name auth mode. `epiphany-openai-runtime` no longer depends directly on `codex-login`; it writes OpenAI status/request/stream-event/receipt records plus runtime sessions/jobs/results/events into `epiphany-core::runtime_spine_cache`, can emit the assistant text artifact for legacy result consumers, is now the default executor for startup-only repo birth specialists, and now has `run-worker` to load a durable `EpiphanyRuntimeWorkerLaunchRequest`, call the typed OpenAI runtime through the spine, persist typed `EpiphanyRuntimeRoleWorkerResult` / `EpiphanyRuntimeReorientWorkerResult` documents, and complete the original heartbeat/specialist runtime job without Codex worker execution; `codex exec` survives only as explicit fallback in repo-birth startup. `epiphany-mvp-coordinator` now invokes `epiphany-openai-runtime run-worker` for launched runtime job ids and no longer creates a second coordinator-owned shadow runtime job/result as a compensator. `epiphany-core::plan_runtime_spine_heartbeat_launch` validates launch contracts/conflicts and projects durable job bindings/runtime links; `epiphany-core::open_runtime_spine_heartbeat_job` owns the initialize-runtime/ensure-session/create-job sequence and now persists `EpiphanyRuntimeWorkerLaunchRequest` CultCache records keyed by runtime job id, with indexed kind/contract fields plus MessagePack-encoded typed launch documents instead of discarding work intent after queue receipt creation; `roleResult` and `reorientResult` now prefer typed worker result documents and fall back only to generic job summaries for older receipts; `epiphany-core::EpiphanyStateUpdate`, `epiphany_state_update_validation_errors`, and `apply_epiphany_state_update` own state-update document shape and mutation law while `codex-core` calls them for compatibility. Vendored `CodexThread::epiphany_launch_job` is now mostly revision check, persistence validation, launch request handoff, and rollout/session writeback for the compatibility route. Vendored `codex-core` no longer has `epiphany_distillation`, `epiphany_promotion`, `epiphany_proposal`, or `epiphany_retrieval` husk modules; it re-exports native surfaces from `epiphany-core` directly, and now owns only the real Codex rollout adapter because it is a host seam. `epiphany-runtime-spine` advertises OpenAI adapter status/model-request/stream-event/receipt CultNet schemas and mutation contracts, so the native caller now has a real storage route instead of only JSON-RPC. MCP itself is correctly JSON at its protocol edge; the target is typed Epiphany intent/result/receipt wrappers around MCP, not replacing MCP JSON. The current OpenAI spine still pulls `codex-api` and a large transport dependency stack, so its next cut is dependency starvation after richer live callers move. + summary: The Codex starvation pass has five typing receipts, fifty-two processor/foundation cuts, a real physical extraction in `epiphany-codex-bridge`, a root `epiphany-state-model` crate for durable Epiphany state, a source-grounded Codex auth spine inventory, the native `epiphany-openai-adapter` document boundary, a buildable Codex auth/model wrapper in `epiphany-openai-codex-spine`, the first native runtime caller in `epiphany-openai-runtime`, native heartbeat launch planning/job opening in `epiphany-core`, native state-update contract/validation/application in `epiphany-core`, native exact retrieval path matching in `epiphany-core`, and the route-facing mutation/view/coordinator projection services in `epiphany-codex-bridge`. `codex-protocol` no longer defines the durable `Epiphany*` state structs; it re-exports the native model for legacy rollout/API compatibility while `epiphany-core` imports the native model directly. `epiphany-core` now has no direct vendored Codex dependency: pressure derivation accepts native `EpiphanyTokenUsageSnapshot`, Codex rollout replay moved to `codex-core::epiphany_rollout`, and exact retrieval search uses Epiphany-owned workspace walking/path scoring instead of `codex-file-search`. The bridge owns Codex-facing Epiphany adapters for scene, jobs, context/planning/graph query, retrieval/indexing projection, result projection, runtime-spine result adaptation, launch/prompt doctrine, mutation document mechanics, mutation service update/promote/role-accept/reorient-accept/role-launch/reorient-launch/job-launch/job-interrupt application, live-state projection, pressure/pre-compaction rendering, freshness/reorientation projection, CRRC/coordinator/role-board projection, watcher invalidation adaptation, full `thread/epiphany/view` response construction, freshness/context/graph-query response construction, role/reorient result response construction, distill/propose patch-response construction, coordinator status/view construction, and acceptance/evidence signal helpers. Vendored app-server no longer retains root Epiphany modules; `codex_message_processor.rs` still contains route dispatch, JSON-RPC response shaping, watcher registration/snapshotting calls, and notification emission, but its root no longer imports the evacuated Epiphany policy/protocol registry or owns the watcher invalidation manager. Codex product surfaces for apps, skills, plugins, marketplace, and external agent config import are now inert in the app-server compatibility path: list routes return empty lists, mutation/detail/import routes report disabled, `externalAgentConfig/detect` returns no import candidates, helper/import modules and stale implementation-shape tests were deleted, runtime feature enablement no longer supports `apps` or `plugins`, config writes no longer emit plugin-toggle analytics, plugin/skill cache invalidation on config writes is gone, plugin startup warmups and app-list refreshes were removed, and app-server no longer directly depends on `codex-plugin`, `codex-chatgpt`, or `codex-core-plugins`. `Config::to_mcp_config` now keeps user-declared MCP servers but no longer accepts `PluginsManager`, folds plugin MCP servers into the runtime, enables Codex apps, enables skill MCP dependency install, or advertises plugin capability summaries; `TurnContext::apps_enabled()` now returns false so model turns cannot awaken Codex Apps through ChatGPT auth or feature flags; session startup and per-turn context no longer load skills, turns receive an empty `SkillLoadOutcome`, internal `Op::ListSkills` is gone from `codex-protocol` / `codex-core` / TUI command routing, the Codex skill watcher has been collapsed to a no-op marker with no file watcher, skill-root registration, cache-clear task, or `SkillsUpdateAvailable` session listener, model turns no longer run skill mention collection, skill env-var prompts, skill MCP dependency installation, skill instruction injection, or implicit skill invocation analytics from shell tools, and the turn prompt/router path no longer loads plugin/app capability summaries, injects available-skill/available-plugin/plugin instruction fragments, parses plugin/app mentions, records app/plugin invocation telemetry, or filters MCP tools through Codex app connectors. Skill mutation/list/notification is gone from the app-server edge too: `skills/list`, `skills/config/write`, `skills/changed`, `Op::ListSkills`, `EventMsg::ListSkillsResponse`, `EventMsg::SkillsUpdateAvailable`, the app-server handlers, TUI slash/startup/list/manage-skill surfaces, generated schema entries, core skill-list suite, and fake live-reload/developer-message tests were deleted. Skill mention plumbing is also gone from the live TUI/protocol edge: no `UserInput::Skill` variant, app-server schema branch, TUI skill popup, `skills_all` cache, composer `set_skill_mentions`, skill mention insertion, `skill://` / `SKILL.md` history decoding, or stale skill popup snapshot remains. The `codex-core-skills` crate, core `skills` re-export shim, no-op `skills_watcher`, session `SkillsManager` service, and per-turn `TurnSkillsContext` are deleted; core/protocol no longer keep legacy `` or `` prompt compatibility, memory usage classification, snapshot normalization, or cleanup paths. Remaining product-shaped skill residue is also cut from memory templates, app-server docs/tests/warnings, TUI tooltips/placeholders/warnings/comments, app-server v1 docs, agent-tool schema text, stale `UserInput::Skill` test arms, and obsolete feature flags/schema entries. App-instruction prompt compatibility is cut too: no `APPS_INSTRUCTIONS` protocol constants, no `` snapshot canonicalization, and MCP fixture tests now use neutral `demo_mcp` / `calendar_mcp` names instead of `codex_apps` / `/api/codex/apps` branding. The TUI app connector product path is also deleted: no `/apps` slash command, app-link view, connector AppEvent variants, app connector cache/popup/refresh loop, app mention insertion, `app://` mention codec support, stale app-popup tests, or TUI browser-opening shim remains. The `app/list` route and `app/list/updated` notification are gone from app-server protocol, generated schemas, app-server dispatch, test helpers, and docs; `AppInfo`/app-list metadata schema structs are deleted; the orphaned `codex-connectors` crate and `core::connectors` shim are deleted from the workspace; Codex app analytics no longer tracks `codex_app_mentioned` / `codex_app_used` facts, events, reducer arms, client APIs, or dedupe cache state; `[apps.*]`, `Feature::Apps`, `include_apps_instructions`, app config/read schemas, app managed requirements, app prompt tests, and app file-MCP tests are gone; `Feature::Plugins`, `Feature::RemotePlugin`, `plugin://` structured mentions, plugin instruction tags, and stale plugin popup snapshots are gone too; `[plugins]` / `[marketplaces]`, `PluginConfig`, `MarketplaceConfig`, marketplace edit helpers, stale plugin/external-agent README route claims, and generated schema entries are removed from config; and the bundled `codex-skills` sample-skill crate plus embedded imagegen/openai-docs/plugin-creator/skill-creator/skill-installer payloads are deleted from the workspace. Live MCP tool approval is named `McpToolApproval`, not `AppToolApproval`, and remains under MCP server config; live structured user-input mentions are MCP-shaped only. `codex_message_processor.rs` is about 9,482 lines; root `message_processor.rs` is about 1,292 lines after the external-agent/config-product cuts; `epiphany_read_routes.rs` is about 579 lines after the full view and read-response extractions; `epiphany_mutation_routes.rs` is about 694 lines after route-load/notification helper cuts and product-surface starvation; `epiphany_state_helpers.rs` is down to a 19-line rollout-state loader; and `codex_thread.rs` is about 1,425 lines after state-update law moved native. `epiphany-openai-adapter` defines CultCache `DatabaseEntry` request/event/receipt/auth-status documents with no Codex app-server or generic JSON dependency. `epiphany-openai-codex-spine` owns all direct Codex auth/model-transport imports for the native OpenAI path: it exposes `default_codex_home` and `auth_manager`, projects `AuthManager` / `CodexAuth` into typed `EpiphanyOpenAiAdapterStatus`, maps typed `EpiphanyOpenAiModelRequest` into Codex API `ResponsesApiRequest`, resolves auth/provider through keeper Codex crates, opens HTTP Responses streams through `codex-api`, maps deltas / completion into typed stream events and receipts, and no longer directly depends on `codex-app-server-protocol` just to name auth mode. `epiphany-openai-runtime` no longer depends directly on `codex-login`; it writes OpenAI status/request/stream-event/receipt records plus runtime sessions/jobs/results/events into `epiphany-core::runtime_spine_cache`, can emit the assistant text artifact for legacy result consumers, is now the default executor for startup-only repo birth specialists, and now has `run-worker` to load a durable `EpiphanyRuntimeWorkerLaunchRequest`, call the typed OpenAI runtime through the spine, persist typed `EpiphanyRuntimeRoleWorkerResult` / `EpiphanyRuntimeReorientWorkerResult` documents, and complete the original heartbeat/specialist runtime job without Codex worker execution; `codex exec` survives only as explicit fallback in repo-birth startup. `epiphany-mvp-coordinator` now invokes `epiphany-openai-runtime run-worker` for launched runtime job ids and no longer creates a second coordinator-owned shadow runtime job/result as a compensator. `epiphany-core::plan_runtime_spine_heartbeat_launch` validates launch contracts/conflicts and projects durable job bindings/runtime links; `epiphany-core::open_runtime_spine_heartbeat_job` owns the initialize-runtime/ensure-session/create-job sequence and now persists `EpiphanyRuntimeWorkerLaunchRequest` CultCache records keyed by runtime job id, with indexed kind/contract fields plus MessagePack-encoded typed launch documents instead of discarding work intent after queue receipt creation; `roleResult` and `reorientResult` now prefer typed worker result documents and fall back only to generic job summaries for older receipts; `epiphany-core::EpiphanyStateUpdate`, `epiphany_state_update_validation_errors`, and `apply_epiphany_state_update` own state-update document shape and mutation law while `codex-core` calls them for compatibility. Vendored `CodexThread::epiphany_launch_job` is now mostly revision check, persistence validation, launch request handoff, and rollout/session writeback for the compatibility route. Vendored `codex-core` no longer has `epiphany_distillation`, `epiphany_promotion`, `epiphany_proposal`, or `epiphany_retrieval` husk modules; it re-exports native surfaces from `epiphany-core` directly, and now owns only the real Codex rollout adapter because it is a host seam. `epiphany-runtime-spine` advertises OpenAI adapter status/model-request/stream-event/receipt CultNet schemas and mutation contracts, so the native caller now has a real storage route instead of only JSON-RPC. MCP itself is correctly JSON at its protocol edge; the target is typed Epiphany intent/result/receipt wrappers around MCP, not replacing MCP JSON. The current OpenAI spine still pulls `codex-api` and a large transport dependency stack, so its next cut is dependency starvation after richer live callers move. latest_cut: > - The remaining live Codex skill config/protocol/analytics residues have now - been cut below the deleted `codex-core-skills` crate. `[skills]` TOML - parsing, config schema definitions, config edit helpers, and config tests - are gone; `SkillScope`, `SkillMetadata`, `SkillInterface`, - `SkillDependencies`, and `SkillToolDependency` are gone from - `codex-protocol`; skill invocation facts/events/client APIs/reducer logic - and thread skill metric constants are gone from analytics/OTEL; the skill - MCP dependency installer is gone from `codex-mcp`; and the stale skill - approval integration suite was deleted instead of preserving a removed path - as a test-shaped memorial. `config.schema.json` was regenerated without a - `skills` table. The later granular `skill_approval` permission flag was - also removed from core protocol, app-server v2 protocol, generated schemas, - permission prompt rendering, and tests. The old `` / - `` history/snapshot compatibility recognizer, - snapshot normalization, memory classification, and stale cleanup paths are - gone from `codex-core` / `codex-protocol`; remaining skill hits are - ordinary English in personality copy, not product machinery. Memory - templates, app-server docs/tests/warnings, TUI tooltips/placeholders, - agent-tool schema text, v1 docs, stale test arms, and skill feature - flags/schema entries no longer advertise or regenerate Codex skills. - App instruction prompt compatibility is also cut: `` - constants/snapshot handling are gone, and old `codex_apps` MCP fixtures now - use neutral MCP server names so tests do not launder deleted Codex Apps - branding back into the harness. - The follow-up test-support rename moved `apps_test_server.rs` to - `mcp_test_server.rs` and renamed `Apps*` MCP fixture wrappers to neutral - `Mcp*` / demo-resource names without changing MCP behavior. - surfaces; those are compatibility stumps to classify next, not keeper - auth/model-spine machinery. + The product-label residue pass removed the CLI tombstone test that kept + `codex marketplace` / `codex plugin marketplace` command strings alive, + neutralized remaining "plugin-provided MCP" comments, and renamed + plugin/app fixture names 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. MCP remains JSON at the protocol edge. next_action: Continue starving coordinator/runtime execution and operator surfaces off app-server JSON-RPC and out of `codex_message_processor.rs`; keep the vestigial Codex organ narrowed to subscription auth/model transport. diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs index 9c12121a..644de829 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs @@ -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()) diff --git a/vendor/codex/codex-rs/cli/src/main.rs b/vendor/codex/codex-rs/cli/src/main.rs index a5e90469..89a200cd 100644 --- a/vendor/codex/codex-rs/cli/src/main.rs +++ b/vendor/codex/codex-rs/cli/src/main.rs @@ -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, diff --git a/vendor/codex/codex-rs/codex-mcp/src/mcp/mod.rs b/vendor/codex/codex-rs/codex-mcp/src/mcp/mod.rs index 5ca0d26a..4dc9f790 100644 --- a/vendor/codex/codex-rs/codex-mcp/src/mcp/mod.rs +++ b/vendor/codex/codex-rs/codex-mcp/src/mcp/mod.rs @@ -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, /// 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, } diff --git a/vendor/codex/codex-rs/collaboration-mode-templates/templates/execute.md b/vendor/codex/codex-rs/collaboration-mode-templates/templates/execute.md index c5787824..e72090c5 100644 --- a/vendor/codex/codex-rs/collaboration-mode-templates/templates/execute.md +++ b/vendor/codex/codex-rs/collaboration-mode-templates/templates/execute.md @@ -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. diff --git a/vendor/codex/codex-rs/core/src/context_manager/history_tests.rs b/vendor/codex/codex-rs/core/src/context_manager/history_tests.rs index 1aee4aa0..43ac3a80 100644 --- a/vendor/codex/codex-rs/core/src/context_manager/history_tests.rs +++ b/vendor/codex/codex-rs/core/src/context_manager/history_tests.rs @@ -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(&[ "contextual permissions", - "persistent plugin instructions", + "persistent capability instructions", ]), user_input_text_msg( "PRETURN_CONTEXT_DIFF_CWD", diff --git a/vendor/codex/codex-rs/core/src/file_watcher_tests.rs b/vendor/codex/codex-rs/core/src/file_watcher_tests.rs index 1cfd4d44..84cc90c5 100644 --- a/vendor/codex/codex-rs/core/src/file_watcher_tests.rs +++ b/vendor/codex/codex-rs/core/src/file_watcher_tests.rs @@ -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] diff --git a/vendor/codex/codex-rs/tui/src/bottom_pane/list_selection_view.rs b/vendor/codex/codex-rs/tui/src/bottom_pane/list_selection_view.rs index c4e7e1c7..ff7fa83b 100644 --- a/vendor/codex/codex-rs/tui/src/bottom_pane/list_selection_view.rs +++ b/vendor/codex/codex-rs/tui/src/bottom_pane/list_selection_view.rs @@ -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(), diff --git a/vendor/codex/codex-rs/tui/src/chatwidget/tests/plan_mode.rs b/vendor/codex/codex-rs/tui/src/chatwidget/tests/plan_mode.rs index ccc93947..16bd5a69 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget/tests/plan_mode.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget/tests/plan_mode.rs @@ -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(); diff --git a/vendor/codex/codex-rs/tui/src/history_cell.rs b/vendor/codex/codex-rs/tui/src/history_cell.rs index a09b313e..0629c90f 100644 --- a/vendor/codex/codex-rs/tui/src/history_cell.rs +++ b/vendor/codex/codex-rs/tui/src/history_cell.rs @@ -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 { diff --git a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_status_only_servers.snap b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_status_only_servers.snap index 709ce6d6..944ec06d 100644 --- a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_status_only_servers.snap +++ b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_status_only_servers.snap @@ -6,7 +6,7 @@ expression: rendered 🔌 MCP Tools - • plugin_docs + • docs_server • Auth: Unsupported • Command: docs-server --stdio • Tools: lookup diff --git a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_verbose_inventory.snap b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_verbose_inventory.snap index fb06c849..fc238394 100644 --- a/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_verbose_inventory.snap +++ b/vendor/codex/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__mcp_tools_output_from_statuses_renders_verbose_inventory.snap @@ -6,7 +6,7 @@ expression: rendered 🔌 MCP Tools - • plugin_docs + • docs_server • Status: enabled • Auth: Unsupported • Command: docs-server --stdio diff --git a/vendor/codex/codex-rs/utils/absolute-path/src/lib.rs b/vendor/codex/codex-rs/utils/absolute-path/src/lib.rs index 86161d23..d2c339a0 100644 --- a/vendor/codex/codex-rs/utils/absolute-path/src/lib.rs +++ b/vendor/codex/codex-rs/utils/absolute-path/src/lib.rs @@ -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") ); }