From 4f3b42c321f0658fcdacdf8fc62a0e2e056e5ad4 Mon Sep 17 00:00:00 2001 From: Friel Date: Mon, 4 May 2026 01:20:46 +0000 Subject: [PATCH] fix: update schema and scope test spawn helper --- codex-rs/core/config.schema.json | 6 ++++++ codex-rs/core/src/agent/control.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json index 94006d12e4..e263c6528e 100644 --- a/codex-rs/core/config.schema.json +++ b/codex-rs/core/config.schema.json @@ -358,6 +358,9 @@ "default": null, "description": "Optional feature toggles scoped to this profile.", "properties": { + "agent_prompt_injection": { + "type": "boolean" + }, "agent_watchdog": { "type": "boolean" }, @@ -3863,6 +3866,9 @@ "default": null, "description": "Centralized feature flags (new). Prefer this over individual toggles.", "properties": { + "agent_prompt_injection": { + "type": "boolean" + }, "agent_watchdog": { "type": "boolean" }, diff --git a/codex-rs/core/src/agent/control.rs b/codex-rs/core/src/agent/control.rs index 3f10004370..c13bad06cf 100644 --- a/codex-rs/core/src/agent/control.rs +++ b/codex-rs/core/src/agent/control.rs @@ -193,6 +193,7 @@ impl AgentControl { } /// Spawn a new agent thread and submit the initial prompt. + #[allow(dead_code)] pub(crate) async fn spawn_agent( &self, config: crate::config::Config,