feat: add support for file_opener option in Rust, similiar to #911 (#957)

This ports the enhancement introduced in
https://github.com/openai/codex/pull/911 (and the fixes in
https://github.com/openai/codex/pull/919) for the TypeScript CLI to the
Rust one.
This commit is contained in:
Michael Bolin
2025-05-16 11:33:08 -07:00
committed by GitHub
parent 3d9f4fcd8a
commit 1e39189393
10 changed files with 247 additions and 14 deletions

10
codex-rs/Cargo.lock generated
View File

@@ -629,8 +629,12 @@ dependencies = [
"codex-core",
"color-eyre",
"crossterm",
"lazy_static",
"mcp-types",
"path-clean",
"pretty_assertions",
"ratatui",
"regex",
"serde_json",
"shlex",
"strum 0.27.1",
@@ -2468,6 +2472,12 @@ dependencies = [
"path-dedot",
]
[[package]]
name = "path-clean"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17359afc20d7ab31fdb42bb844c8b3bb1dabd7dcf7e68428492da7f16966fcef"
[[package]]
name = "path-dedot"
version = "3.1.1"