Validate CODEX_HOME before resolving (#10249)

Summary
- require `CODEX_HOME` to point to an existing directory before
canonicalizing and surface clear errors otherwise
- share the same helper logic in both `core` and `rmcp-client` and add
unit tests that cover missing, non-directory, valid, and default paths

This addresses #9222
This commit is contained in:
Eric Traut
2026-01-30 15:46:33 -08:00
committed by GitHub
parent 13e85b1549
commit 8d142fd63d
11 changed files with 168 additions and 58 deletions

View File

@@ -0,0 +1,6 @@
load("//:defs.bzl", "codex_rust_crate")
codex_rust_crate(
name = "home-dir",
crate_name = "codex_utils_home_dir",
)