From 3a2c93db7186435099158e073c2ecb2938213523 Mon Sep 17 00:00:00 2001 From: David Wiesen Date: Tue, 16 Jun 2026 14:11:41 -0700 Subject: [PATCH] Document materialized config validation --- codex-rs/core/src/config/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/codex-rs/core/src/config/mod.rs b/codex-rs/core/src/config/mod.rs index 4ff5aaac48..218eb0ab6a 100644 --- a/codex-rs/core/src/config/mod.rs +++ b/codex-rs/core/src/config/mod.rs @@ -1355,6 +1355,13 @@ impl ConfigBuilder { } } +/// Validate an in-memory layer stack after callers have edited it but before +/// they persist the edited layer. +/// +/// `ConfigLayerStack::effective_config()` materializes the merged TOML. The +/// final `Config` also applies feature and requirement constraints, permission +/// profile resolution, and network proxy construction. The normal builders load +/// layers from disk, so config writes use this to validate the pending stack. pub async fn validate_materialized_config_from_layer_stack( codex_home: PathBuf, config_layer_stack: ConfigLayerStack,