diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 742c0a66..b578a86f 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -926,9 +926,18 @@ usage classification, stale skill cleanup, and AGENTS skill-append tests were deleted rather than preserved as compatibility incense. Verified with `cargo check -p codex-protocol -p codex-core`, focused core context/history/memory/session/file-watcher tests, and the model-visible layout -snapshot suite. Remaining skill hits are app-server README/tests, TUI -warnings/tooltips, agent-tool schema text, and memory consolidation/read-path -templates. +snapshot suite. + +The app-server/TUI/template skill residue is cut as well. Memory consolidation +and read-path templates no longer create or read `skills/`; app-server README, +protocol v1 docs, warnings, and turn-start tests no longer advertise skill +invocation; TUI tooltips/placeholders/comments and warning tests no longer +mention `/skills` or skill context budgets; agent-tool schema text no longer +lists `skill` as an input item; stale `UserInput::Skill` test arms are gone; +and `Feature::SkillMcpDependencyInstall` / `Feature::SkillEnvVarDependencyPrompt` +plus generated config schema entries were removed. A vendored-wide search for +product-shaped skill markers now returns nothing; only the ordinary English word +"skill" remains in personality copy. 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`, diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 51bbe607..18e55d7b 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 1dd90bd4..f305fe03 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -280,7 +280,7 @@ rejected_paths: reason: making Epiphany cleaner inside Codex still preserves the wrong organ; Codex must be starved down to OpenAI subscription auth/model transport, while Epiphany data and subsystem communication move to typed CultCache/CultNet. current_status: - summary: The Codex starvation pass has five typing receipts, fifty 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. 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-one 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. 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. latest_cut: > The remaining live Codex skill config/protocol/analytics residues have now been cut below the deleted `codex-core-skills` crate. `[skills]` TOML @@ -298,7 +298,10 @@ current_status: `` history/snapshot compatibility recognizer, snapshot normalization, memory classification, and stale cleanup paths are gone from `codex-core` / `codex-protocol`; remaining skill hits are - app-server/TUI/docs/template residue for the next cut. + 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. surfaces; those are compatibility stumps to classify next, not keeper auth/model-spine machinery. 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/README.md b/vendor/codex/codex-rs/app-server/README.md index 5471b050..438de25e 100644 --- a/vendor/codex/codex-rs/app-server/README.md +++ b/vendor/codex/codex-rs/app-server/README.md @@ -12,7 +12,6 @@ - [API Overview](#api-overview) - [Events](#events) - [Approvals](#approvals) -- [Skills](#skills) - [Auth endpoints](#auth-endpoints) - [Experimental API Opt-in](#experimental-api-opt-in) @@ -575,26 +574,6 @@ You can optionally specify config overrides on the new turn. If specified, these } } } ``` -### Example: Start a turn (invoke a skill) - -Invoke a skill explicitly by including `$` in the text input and adding a `skill` input item alongside it. - -```json -{ "method": "turn/start", "id": 33, "params": { - "threadId": "thr_123", - "input": [ - { "type": "text", "text": "$skill-creator Add a new skill for triaging flaky CI and include step-by-step usage." }, - { "type": "skill", "name": "skill-creator", "path": "/Users/me/.codex/skills/skill-creator/SKILL.md" } - ] -} } -{ "id": 33, "result": { "turn": { - "id": "turn_457", - "status": "inProgress", - "items": [], - "error": null -} } } -``` - ### Example: Start a turn (invoke an MCP server) Invoke an MCP server by including a linked mention in the text input and adding a `mention` input item with the server name in `mcp://` form. @@ -960,7 +939,7 @@ Thread realtime uses a separate thread-scoped notification surface. `thread/real Recoverable configuration and initialization warnings use the existing `configWarning` notification: `{ summary, details?, path?, range? }`. App-server may emit it during initialization for config parsing and related setup diagnostics. -Generic runtime warnings use the `warning` notification: `{ threadId?, message }`. App-server emits this for non-fatal warnings from the core event stream, including cases where not all enabled skills are included in the model-visible skills list for a session. +Generic runtime warnings use the `warning` notification: `{ threadId?, message }`. App-server emits this for non-fatal warnings from the core event stream. ### Notification opt-out diff --git a/vendor/codex/codex-rs/app-server/src/lib.rs b/vendor/codex/codex-rs/app-server/src/lib.rs index 9273eba4..c59bead7 100644 --- a/vendor/codex/codex-rs/app-server/src/lib.rs +++ b/vendor/codex/codex-rs/app-server/src/lib.rs @@ -301,7 +301,7 @@ fn project_config_warning(config: &Config) -> Option let mut message = concat!( "Project-local config, hooks, and exec policies are disabled in the following folders ", - "until the project is trusted, but skills still load.\n", + "until the project is trusted.\n", ) .to_string(); for (index, (folder, reason)) in disabled_folders.iter().enumerate() { diff --git a/vendor/codex/codex-rs/app-server/tests/suite/v2/thread_read.rs b/vendor/codex/codex-rs/app-server/tests/suite/v2/thread_read.rs index 8e0e253a..8fbc2eb7 100644 --- a/vendor/codex/codex-rs/app-server/tests/suite/v2/thread_read.rs +++ b/vendor/codex/codex-rs/app-server/tests/suite/v2/thread_read.rs @@ -779,7 +779,6 @@ fn turn_user_texts(turns: &[codex_app_server_protocol::Turn]) -> Vec<&str> { UserInput::Text { text, .. } => Some(text.as_str()), UserInput::Image { .. } | UserInput::LocalImage { .. } - | UserInput::Skill { .. } | UserInput::Mention { .. } => None, }, _ => None, diff --git a/vendor/codex/codex-rs/app-server/tests/suite/v2/turn_start.rs b/vendor/codex/codex-rs/app-server/tests/suite/v2/turn_start.rs index ca3747f0..ddbdab4f 100644 --- a/vendor/codex/codex-rs/app-server/tests/suite/v2/turn_start.rs +++ b/vendor/codex/codex-rs/app-server/tests/suite/v2/turn_start.rs @@ -11,7 +11,6 @@ use app_test_support::create_shell_command_sse_response; use app_test_support::format_with_current_shell_display; use app_test_support::to_response; use app_test_support::write_mock_responses_config_toml_with_chatgpt_base_url; -use app_test_support::write_models_cache; use codex_app_server::INPUT_TOO_LARGE_ERROR_CODE; use codex_app_server::INVALID_PARAMS_ERROR_CODE; use codex_app_server_protocol::ByteRange; @@ -52,7 +51,6 @@ use codex_app_server_protocol::TurnStartResponse; use codex_app_server_protocol::TurnStartedNotification; use codex_app_server_protocol::TurnStatus; use codex_app_server_protocol::UserInput as V2UserInput; -use codex_app_server_protocol::WarningNotification; use codex_config::config_toml::ConfigToml; use codex_core::personality_migration::PERSONALITY_MIGRATION_FILENAME; use codex_features::FEATURES; @@ -254,111 +252,6 @@ async fn turn_start_emits_user_message_item_with_text_elements() -> Result<()> { Ok(()) } -#[tokio::test] -async fn turn_start_emits_thread_scoped_warning_notification_for_trimmed_skills() -> Result<()> { - let responses = vec![create_final_assistant_message_sse_response("Done")?]; - let server = create_mock_responses_server_sequence_unchecked(responses).await; - - let codex_home = TempDir::new()?; - create_config_toml( - codex_home.path(), - &server.uri(), - "never", - &BTreeMap::from([(Feature::Personality, true)]), - )?; - write_models_cache(codex_home.path())?; - let cache_path = codex_home.path().join("models_cache.json"); - let mut cache: serde_json::Value = - serde_json::from_str(&std::fs::read_to_string(&cache_path)?)?; - let models = cache["models"] - .as_array_mut() - .expect("models_cache.json models should be an array"); - let entry = models - .first_mut() - .expect("models cache should not be empty"); - let model = entry["slug"] - .as_str() - .expect("model slug should be present") - .to_string(); - entry["context_window"] = serde_json::Value::from(100); - std::fs::write(&cache_path, serde_json::to_string_pretty(&cache)?)?; - let config_path = codex_home.path().join("config.toml"); - let config = std::fs::read_to_string(&config_path)?; - std::fs::write( - &config_path, - config.replace("model = \"mock-model\"", &format!("model = \"{model}\"")), - )?; - write_test_skill(codex_home.path(), "alpha-skill")?; - write_test_skill(codex_home.path(), "beta-skill")?; - - let mut mcp = McpProcess::new(codex_home.path()).await?; - timeout(DEFAULT_READ_TIMEOUT, mcp.initialize()).await??; - - let thread_req = mcp - .send_thread_start_request(ThreadStartParams::default()) - .await?; - let thread_resp: JSONRPCResponse = timeout( - DEFAULT_READ_TIMEOUT, - mcp.read_stream_until_response_message(RequestId::Integer(thread_req)), - ) - .await??; - let ThreadStartResponse { thread, .. } = to_response::(thread_resp)?; - - let turn_req = mcp - .send_turn_start_request(TurnStartParams { - thread_id: thread.id.clone(), - input: vec![V2UserInput::Text { - text: "Hello".to_string(), - text_elements: Vec::new(), - }], - ..Default::default() - }) - .await?; - timeout( - DEFAULT_READ_TIMEOUT, - mcp.read_stream_until_response_message(RequestId::Integer(turn_req)), - ) - .await??; - - let notification = timeout( - DEFAULT_READ_TIMEOUT, - mcp.read_stream_until_notification_message("warning"), - ) - .await??; - let params = notification.params.expect("warning params"); - let warning: WarningNotification = - serde_json::from_value(params).expect("deserialize warning notification"); - assert_eq!(warning.thread_id.as_deref(), Some(thread.id.as_str())); - assert_eq!( - warning.message, - "Warning: Exceeded skills context budget of 2%. All skill descriptions were removed and 7 additional skills were not included in the model-visible skills list." - ); - - timeout( - DEFAULT_READ_TIMEOUT, - mcp.read_stream_until_notification_message("turn/completed"), - ) - .await??; - - let requests = server - .received_requests() - .await - .expect("failed to fetch received requests"); - let request = requests - .last() - .expect("expected at least one model request"); - assert!( - body_contains(request, "## Skills"), - "expected outgoing request to include the skills section" - ); - assert!( - !body_contains(request, "- alpha-skill:") && !body_contains(request, "- beta-skill:"), - "expected trimmed skills to be omitted from the outgoing request body" - ); - - Ok(()) -} - #[tokio::test] async fn thread_start_omits_empty_instruction_overrides_from_model_request() -> Result<()> { let server = responses::start_mock_server().await; @@ -3339,12 +3232,3 @@ stream_max_retries = 0 ), ) } - -fn write_test_skill(codex_home: &Path, name: &str) -> std::io::Result<()> { - let skill_dir = codex_home.join("skills").join(name); - std::fs::create_dir_all(&skill_dir)?; - std::fs::write( - skill_dir.join("SKILL.md"), - format!("---\nname: {name}\ndescription: {name} description\n---\n\n# Body\n"), - ) -} diff --git a/vendor/codex/codex-rs/core/config.schema.json b/vendor/codex/codex-rs/core/config.schema.json index c113203c..a2242c05 100644 --- a/vendor/codex/codex-rs/core/config.schema.json +++ b/vendor/codex/codex-rs/core/config.schema.json @@ -359,12 +359,6 @@ "shell_zsh_fork": { "type": "boolean" }, - "skill_env_var_dependency_prompt": { - "type": "boolean" - }, - "skill_mcp_dependency_install": { - "type": "boolean" - }, "sqlite": { "type": "boolean" }, @@ -2211,12 +2205,6 @@ "shell_zsh_fork": { "type": "boolean" }, - "skill_env_var_dependency_prompt": { - "type": "boolean" - }, - "skill_mcp_dependency_install": { - "type": "boolean" - }, "sqlite": { "type": "boolean" }, diff --git a/vendor/codex/codex-rs/core/templates/memories/consolidation.md b/vendor/codex/codex-rs/core/templates/memories/consolidation.md index 15c718ec..186e508b 100644 --- a/vendor/codex/codex-rs/core/templates/memories/consolidation.md +++ b/vendor/codex/codex-rs/core/templates/memories/consolidation.md @@ -27,8 +27,6 @@ Folder structure (under {{ memory_root }}/): pointers to rollout summaries if certain past rollouts are very relevant. - raw_memories.md - Temporary file: merged raw memories from Phase 1. Input for Phase 2. -- skills// - - Reusable procedures. Entrypoint: SKILL.md; may include scripts/, templates/, examples/. - rollout_summaries/.md - Recap of the rollout, including lessons learned, reusable knowledge, pointers/references, and pruned raw evidence snippets. Distilled version of @@ -133,13 +131,11 @@ Under `{{ memory_root }}/`: - `rollout_summaries/*.md` - `memory_summary.md` - read the existing summary so updates stay consistent -- `skills/*` - - read existing skills so updates are incremental and non-duplicative {{ memory_extensions_primary_inputs }} Mode selection: - INIT phase: existing artifacts are missing/empty (especially `memory_summary.md` - and `skills/`). + and `MEMORY.md`). - INCREMENTAL UPDATE: existing artifacts already exist and `raw_memories.md` mostly contains new additions. @@ -170,8 +166,7 @@ Incremental update and forgetting mechanism: Outputs: Under `{{ memory_root }}/`: A) `MEMORY.md` -B) `skills/*` (optional) -C) `memory_summary.md` +B) `memory_summary.md` Rules: @@ -317,9 +312,6 @@ Schema rules (strict): `## Failures and how to do differently`. - Do not hide high-value failure shields or reusable procedures inside generic summaries. Preserve them in their dedicated block-level subsections. - - If you reference skills, do it in body bullets only (for example: - `- Related skill: skills//SKILL.md`). - - Use lowercase, hyphenated skill folder names. - E) Ordering and conflict handling - Order top-level `# Task Group` blocks by expected future utility, with recency as a strong default proxy (usually the freshest meaningful `updated_at` represented in that @@ -534,8 +526,8 @@ For example, include (when known): often has to ask for repeatedly or avoid the kinds of overreach that trigger interruption. ## What's in Memory -This is a compact index to help future agents quickly find details in `MEMORY.md`, -`skills/`, and `rollout_summaries/`. +This is a compact index to help future agents quickly find details in `MEMORY.md` +and `rollout_summaries/`. Treat it as a routing/index layer, not a mini-handbook: - tell future agents what to search first, @@ -631,7 +623,7 @@ Notes: - Do not include large snippets; push details into MEMORY.md and rollout summaries. - Prefer topics/keywords that help a future agent search MEMORY.md efficiently. - Prefer clear topic taxonomy over verbose drill-down pointers. -- This section is primarily an index to `MEMORY.md`; mention `skills/` / `rollout_summaries/` +- This section is primarily an index to `MEMORY.md`; mention `rollout_summaries/` only when they materially improve routing. - Separation rule: recent-topic `learnings` should emphasize topic-local recent deltas, caveats, and decision triggers; move cross-task, stable, broadly reusable user defaults to @@ -648,78 +640,6 @@ Notes: - `desc:` lines when a raw-memory `description:` already says it well - `learnings:` lines when there is a concise original phrase worth preserving -# ============================================================ 3) `skills/` FORMAT (optional) - -A skill is a reusable "slash-command" package: a directory containing a SKILL.md -entrypoint (YAML frontmatter + instructions), plus optional supporting files. - -Where skills live (in this memory folder): -skills// -SKILL.md # required entrypoint -scripts/.\* # optional; executed, not loaded (prefer stdlib-only) -templates/.md # optional; filled in by the model -examples/.md # optional; expected output format / worked example - -What to turn into a skill (high priority): - -- recurring tool/workflow sequences -- recurring failure shields with a proven fix + verification -- recurring formatting/contracts that must be followed exactly -- recurring "efficient first steps" that reliably reduce search/tool calls -- Create a skill when the procedure repeats (more than once) and clearly saves time or - reduces errors for future agents. -- It does not need to be broadly general; it just needs to be reusable and valuable. - -Skill quality rules (strict): - -- Merge duplicates aggressively; prefer improving an existing skill. -- Keep scopes distinct; avoid overlapping "do-everything" skills. -- A skill must be actionable: triggers + inputs + procedure + verification + efficiency plan. -- Do not create a skill for one-off trivia or generic advice. -- If you cannot write a reliable procedure (too many unknowns), do not create a skill. - -SKILL.md frontmatter (YAML between --- markers): - -- name: (lowercase letters, numbers, hyphens only; <= 64 chars) -- description: 1-2 lines; include concrete triggers/cues in user-like language -- argument-hint: optional; e.g. "[branch]" or "[path] [mode]" -- disable-model-invocation: true for workflows with side effects (push/deploy/delete/etc.) -- user-invocable: false for background/reference-only skills -- allowed-tools: optional; list what the skill needs (e.g., Read, Grep, Glob, Bash) -- context / agent / model: optional; use only when truly needed (e.g., context: fork) - -SKILL.md content expectations: - -- Use $ARGUMENTS, $ARGUMENTS[N], or $N (e.g., $0, $1) for user-provided arguments. -- Distinguish two content types: - - Reference: conventions/context to apply inline (keep very short). - - Task: step-by-step procedure (preferred for this memory system). -- Keep SKILL.md focused. Put long reference docs, large examples, or complex code in supporting files. -- Keep SKILL.md under 500 lines; move detailed reference content to supporting files. -- Always include: - - When to use (triggers + non-goals) - - Inputs / context to gather (what to check first) - - Procedure (numbered steps; include commands/paths when known) - - Efficiency plan (how to reduce tool calls/tokens; what to cache; stop rules) - - Pitfalls and fixes (symptom -> likely cause -> fix) - - Verification checklist (concrete success checks) - -Supporting scripts (optional but highly recommended): - -- Put helper scripts in scripts/ and reference them from SKILL.md (e.g., - collect_context.py, verify.sh, extract_errors.py). -- Prefer Python (stdlib only) or small shell scripts. -- Make scripts safe by default: - - avoid destructive actions, or require explicit confirmation flags - - do not print secrets - - deterministic outputs when possible -- Include a minimal usage example in SKILL.md. - -Supporting files (use sparingly; only when they add value): - -- templates/: a fill-in skeleton for the skill's output (plans, reports, checklists). -- examples/: one or two small, high-quality example outputs showing the expected format. - ============================================================ WORKFLOW ============================================================ @@ -734,7 +654,6 @@ WORKFLOW influence clustering decisions (not just the newest chunk). - Build Phase 2 artifacts from scratch: - produce/refresh `MEMORY.md` - - create initial `skills/*` (optional but highly recommended) - write `memory_summary.md` last (highest-signal file) - Use your best efforts to get the most high-quality memory files - Do not be lazy at browsing files in INIT mode; deep-dive high-value rollouts and @@ -767,7 +686,6 @@ WORKFLOW - doing light clustering and merging if needed - refreshing `MEMORY.md` top-of-file ordering so recent high-utility task families stay easy to find - rebuilding the `memory_summary.md` recent active window (last 3 memory days) from current `updated_at` coverage - - updating existing skills or adding new skills only when there is clear new reusable procedure - updating `memory_summary.md` last to reflect the final state of the memory folder - Minimize churn in incremental mode: if an existing `MEMORY.md` block or `## What's in Memory` topic still reflects the current evidence and points to the same task family / retrieval @@ -799,23 +717,19 @@ WORKFLOW - For user-profile or preference claims, recurrence matters: repeated evidence across rollouts should generally outrank a single polished but isolated summary. -5. For both modes, update `MEMORY.md` after skill updates: - - add clear related-skill pointers as plain bullets in the BODY of corresponding task - sections (do not change the `# Task Group` / `scope:` block header format) - -6. Housekeeping (optional): +5. Housekeeping (optional): - remove clearly redundant/low-signal rollout summaries - if multiple summaries overlap for the same thread, keep the best one -7. Final pass: - - remove duplication in memory_summary, skills/, and MEMORY.md +6. Final pass: + - remove duplication in memory_summary and MEMORY.md - remove stale or low-signal blocks that are less likely to be useful in the future - remove or rewrite blocks/task sections whose supporting rollout references point only to removed thread ids or missing rollout summary files - run a global rollout-reference audit on final `MEMORY.md` and fix accidental duplicate entries / redundant repetition, while preserving intentional multi-task or multi-block reuse when it adds distinct task-local value - - ensure any referenced skills/summaries actually exist + - ensure any referenced summaries actually exist - ensure MEMORY blocks and "What's in Memory" use a consistent task-oriented taxonomy - ensure recent important task families are easy to find (description + keywords + topic wording) - remove or downgrade memory that mainly preserves exploratory discussion, assistant-only diff --git a/vendor/codex/codex-rs/core/templates/memories/read_path.md b/vendor/codex/codex-rs/core/templates/memories/read_path.md index d2afe0cc..bdbc2cec 100644 --- a/vendor/codex/codex-rs/core/templates/memories/read_path.md +++ b/vendor/codex/codex-rs/core/templates/memories/read_path.md @@ -22,11 +22,6 @@ Memory layout (general -> specific): - {{ base_path }}/memory_summary.md (already provided below; do NOT open again) - {{ base_path }}/MEMORY.md (searchable registry; primary file to query) -- {{ base_path }}/skills// (skill folder) - - SKILL.md (entrypoint instructions) - - scripts/ (optional helper scripts) - - examples/ (optional example outputs) - - templates/ (optional templates) - {{ base_path }}/rollout_summaries/ (per-rollout recaps + evidence snippets) - The paths of these entries can be found in {{ base_path }}/MEMORY.md or {{ base_path }}/rollout_summaries/ as `rollout_path` - These files are append-only `jsonl`: `session_meta.payload.id` identifies the session, `turn_context` marks turn boundaries, `event_msg` is the lightweight status stream, and `response_item` contains actual messages, tool calls, and tool outputs. @@ -36,9 +31,8 @@ Quick memory pass (when applicable): 1. Skim the MEMORY_SUMMARY below and extract task-relevant keywords. 2. Search {{ base_path }}/MEMORY.md using those keywords. -3. Only if MEMORY.md directly points to rollout summaries/skills, open the 1-2 - most relevant files under {{ base_path }}/rollout_summaries/ or - {{ base_path }}/skills/. +3. Only if MEMORY.md directly points to rollout summaries, open the 1-2 + most relevant files under {{ base_path }}/rollout_summaries/. 4. If above are not clear and you need exact commands, error text, or precise evidence, search over `rollout_path` for more evidence. 5. If there are no relevant hits, stop memory lookup and continue normally. @@ -102,10 +96,10 @@ rollout_summaries/2026-02-17T21-23-02-LN3m-weekly_memory_report_pivot_from_git_h - one citation entry per line - format: `:-|note=[]` - use file paths relative to the memory base path (for example, `MEMORY.md`, - `rollout_summaries/...`, `skills/...`) + `rollout_summaries/...`) - only cite files actually used under the memory base path (do not cite workspace files as memory citations) - - if you used `MEMORY.md` and then a rollout summary/skill file, cite both + - if you used `MEMORY.md` and then a rollout summary file, cite both - list entries in order of importance (most important first) - `note` should be short, single-line, and use simple characters only (avoid unusual symbols, no newlines) diff --git a/vendor/codex/codex-rs/docs/protocol_v1.md b/vendor/codex/codex-rs/docs/protocol_v1.md index 9fe76a80..d13dbd8a 100644 --- a/vendor/codex/codex-rs/docs/protocol_v1.md +++ b/vendor/codex/codex-rs/docs/protocol_v1.md @@ -92,7 +92,6 @@ Valid `personality` values are `friendly`, `pragmatic`, and `none`. When `none` - `text` – Plain text plus optional UI text elements. - `image` / `local_image` – Image inputs. -- `skill` – Explicit skill selection (`name`, `path` to `SKILL.md`). - `mention` – Explicit MCP server selection (`name`, `path` in `mcp://{server_name}` form). Note: For v1 wire compatibility, `EventMsg::TurnStarted` and `EventMsg::TurnComplete` serialize as `task_started` / `task_complete`. The deserializer accepts both `task_*` and `turn_*` tags. diff --git a/vendor/codex/codex-rs/features/src/lib.rs b/vendor/codex/codex-rs/features/src/lib.rs index adea7ec1..9ee20e0f 100644 --- a/vendor/codex/codex-rs/features/src/lib.rs +++ b/vendor/codex/codex-rs/features/src/lib.rs @@ -160,10 +160,6 @@ pub enum Feature { ExternalMigration, /// Allow the model to invoke the built-in image generation tool. ImageGeneration, - /// Allow prompting and installing missing MCP dependencies. - SkillMcpDependencyInstall, - /// Prompt for missing skill env var dependencies. - SkillEnvVarDependencyPrompt, /// Steer feature flag - when enabled, Enter submits immediately instead of queuing. /// Kept for config backward compatibility; behavior is always steer-enabled. Steer, @@ -843,18 +839,6 @@ pub const FEATURES: &[FeatureSpec] = &[ stage: Stage::Stable, default_enabled: true, }, - FeatureSpec { - id: Feature::SkillMcpDependencyInstall, - key: "skill_mcp_dependency_install", - stage: Stage::Stable, - default_enabled: true, - }, - FeatureSpec { - id: Feature::SkillEnvVarDependencyPrompt, - key: "skill_env_var_dependency_prompt", - stage: Stage::UnderDevelopment, - default_enabled: false, - }, FeatureSpec { id: Feature::Steer, key: "steer", diff --git a/vendor/codex/codex-rs/tools/src/agent_tool.rs b/vendor/codex/codex-rs/tools/src/agent_tool.rs index e1e936fe..15884434 100644 --- a/vendor/codex/codex-rs/tools/src/agent_tool.rs +++ b/vendor/codex/codex-rs/tools/src/agent_tool.rs @@ -476,7 +476,7 @@ fn create_collab_input_items_schema() -> JsonSchema { ( "type".to_string(), JsonSchema::string(Some( - "Input item type: text, image, local_image, skill, or mention.".to_string(), + "Input item type: text, image, local_image, or mention.".to_string(), )), ), ( @@ -490,13 +490,13 @@ fn create_collab_input_items_schema() -> JsonSchema { ( "path".to_string(), JsonSchema::string(Some( - "Path when type is local_image/skill, or structured mention target such as mcp:// when type is mention." + "Path when type is local_image, or structured mention target such as mcp:// when type is mention." .to_string(), )), ), ( "name".to_string(), - JsonSchema::string(Some("Display name when type is skill or mention.".to_string())), + JsonSchema::string(Some("Display name when type is mention.".to_string())), ), ]); diff --git a/vendor/codex/codex-rs/tui/src/app/background_requests.rs b/vendor/codex/codex-rs/tui/src/app/background_requests.rs index 91284f75..5c2b4c90 100644 --- a/vendor/codex/codex-rs/tui/src/app/background_requests.rs +++ b/vendor/codex/codex-rs/tui/src/app/background_requests.rs @@ -1,6 +1,6 @@ //! Background app-server requests launched by the TUI app. //! -//! This module owns fire-and-forget fetch/write helpers for MCP inventory, skills, rate +//! This module owns fire-and-forget fetch/write helpers for MCP inventory, rate //! limits, add-credit nudges, and feedback uploads. Results are routed back through `AppEvent` so //! the main event loop remains single-threaded. diff --git a/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer.rs b/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer.rs index 0fea3a1e..ddbbf34e 100644 --- a/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -273,7 +273,7 @@ struct AttachedImage { /// specific behaviors by constructing a config with those flags set to `false`. #[derive(Clone, Copy, Debug)] pub(crate) struct ChatComposerConfig { - /// Whether command/file/skill popups are allowed to appear. + /// Whether command/file popups are allowed to appear. pub(crate) popups_enabled: bool, /// Whether `/...` input is parsed and dispatched as slash commands. pub(crate) slash_commands_enabled: bool, diff --git a/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer_history.rs b/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer_history.rs index 22f4a16a..9b7f7992 100644 --- a/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer_history.rs +++ b/vendor/codex/codex-rs/tui/src/bottom_pane/chat_composer_history.rs @@ -33,7 +33,7 @@ pub(crate) struct HistoryEntry { pub(crate) local_image_paths: Vec, /// Remote image URLs restored with this draft. pub(crate) remote_image_urls: Vec, - /// Mention bindings for tool/app/skill references inside `text`. + /// Mention bindings for tool or MCP references inside `text`. pub(crate) mention_bindings: Vec, /// Placeholder-to-payload pairs used to restore large paste content. pub(crate) pending_pastes: Vec<(String, String)>, diff --git a/vendor/codex/codex-rs/tui/src/bottom_pane/multi_select_picker.rs b/vendor/codex/codex-rs/tui/src/bottom_pane/multi_select_picker.rs index 0082109b..baa70664 100644 --- a/vendor/codex/codex-rs/tui/src/bottom_pane/multi_select_picker.rs +++ b/vendor/codex/codex-rs/tui/src/bottom_pane/multi_select_picker.rs @@ -776,7 +776,7 @@ impl MultiSelectPickerBuilder { /// # Returns /// /// * `Some((Some(indices), score))` - Matched on display name with highlight indices -/// * `Some((None, score))` - Matched on skill name only (no highlights for display) +/// * `Some((None, score))` - Matched on canonical name only (no highlights for display) /// * `None` - No match pub(crate) fn match_item( filter: &str, diff --git a/vendor/codex/codex-rs/tui/src/chatwidget.rs b/vendor/codex/codex-rs/tui/src/chatwidget.rs index 5c8e23bb..9fc6bba6 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget.rs @@ -10777,7 +10777,7 @@ const PLACEHOLDERS: [&str; 8] = [ "Write tests for @filename", "Improve documentation in @filename", "Run /review on my current changes", - "Use /skills to list available skills", + "Use /mcp to list configured MCP tools", ]; const SIDE_PLACEHOLDERS: [&str; 3] = [ diff --git a/vendor/codex/codex-rs/tui/src/chatwidget/tests.rs b/vendor/codex/codex-rs/tui/src/chatwidget/tests.rs index 8f29db5d..b26db53e 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget/tests.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget/tests.rs @@ -81,11 +81,7 @@ pub(super) use codex_app_server_protocol::TurnStartedNotification; pub(super) use codex_app_server_protocol::TurnStatus as AppServerTurnStatus; pub(super) use codex_app_server_protocol::UserInput as AppServerUserInput; pub(super) use codex_app_server_protocol::WarningNotification; -pub(super) use codex_config::AppRequirementToml; -pub(super) use codex_config::AppsRequirementsToml; pub(super) use codex_config::ConfigLayerStack; -pub(super) use codex_config::ConfigRequirements; -pub(super) use codex_config::ConfigRequirementsToml; pub(super) use codex_config::RequirementSource; pub(super) use codex_config::types::ApprovalsReviewer; pub(super) use codex_config::types::Notifications; diff --git a/vendor/codex/codex-rs/tui/src/chatwidget/tests/app_server.rs b/vendor/codex/codex-rs/tui/src/chatwidget/tests/app_server.rs index 06acb16d..685d5d0f 100644 --- a/vendor/codex/codex-rs/tui/src/chatwidget/tests/app_server.rs +++ b/vendor/codex/codex-rs/tui/src/chatwidget/tests/app_server.rs @@ -191,7 +191,7 @@ async fn live_app_server_warning_notification_renders_message() { chat.handle_server_notification( ServerNotification::Warning(WarningNotification { thread_id: None, - message: "Warning: Exceeded skills context budget of 2%. All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list.".to_string(), + message: "Warning: Background sync paused until the project is trusted.".to_string(), }), /*replay_kind*/ None, ); @@ -201,15 +201,9 @@ async fn live_app_server_warning_notification_renders_message() { let rendered = lines_to_single_string(&cells[0]); let normalized = rendered.split_whitespace().collect::>().join(" "); assert!( - normalized.contains("Warning: Exceeded skills context budget of 2%."), + normalized.contains("Warning: Background sync paused until the project is trusted."), "expected warning notification message, got {rendered}" ); - assert!( - normalized.contains( - "All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list." - ), - "expected warning guidance, got {rendered}" - ); } #[tokio::test] diff --git a/vendor/codex/codex-rs/tui/src/debug_config.rs b/vendor/codex/codex-rs/tui/src/debug_config.rs index c3383497..6c0dd98c 100644 --- a/vendor/codex/codex-rs/tui/src/debug_config.rs +++ b/vendor/codex/codex-rs/tui/src/debug_config.rs @@ -180,7 +180,7 @@ fn render_debug_config_lines(stack: &ConfigLayerStack) -> Vec> { )); } - // TODO(gt): Expand this debug output with detailed skills and rules display. + // TODO(gt): Expand this debug output with detailed rules display. if requirements_toml.rules.is_some() { requirement_lines.push(requirement_line( "rules", @@ -663,7 +663,6 @@ mod tests { }, }, )])), - apps: None, rules: None, enforce_residency: Some(ResidencyRequirement::Us), network: None, @@ -861,7 +860,6 @@ approval_policy = "never" guardian_policy_config: None, feature_requirements: None, mcp_servers: None, - apps: None, rules: None, enforce_residency: None, network: None, diff --git a/vendor/codex/codex-rs/tui/tooltips.txt b/vendor/codex/codex-rs/tui/tooltips.txt index 7ddaa945..fc69d68e 100644 --- a/vendor/codex/codex-rs/tui/tooltips.txt +++ b/vendor/codex/codex-rs/tui/tooltips.txt @@ -4,7 +4,6 @@ Use /feedback to send logs to the maintainers when something looks off. Switch models or reasoning effort quickly with /model. Use /permissions to control when Codex asks for confirmation. Run /review to get a code review of your current changes. -Use /skills to list available skills or ask Codex to use one. Use /status to see the current model, approvals, and token usage. Use /statusline to configure which items appear in the status line. Use /fork to branch the current chat into a new thread.