fix: writable_roots doesn't recognize home directory symbol in non-windows OS (#9193)

Fixes:
```
[sandbox_workspace_write]
writable_roots = ["~/code/"]
```

translates to
```
/Users/ccunningham/.codex/~/code
```
(i.e. the home dir symbol isn't recognized)
This commit is contained in:
Tiffany Citra
2026-01-20 10:55:01 -08:00
committed by GitHub
parent 5ae6e70801
commit 2c3843728c
3 changed files with 70 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ license.workspace = true
workspace = true
[dependencies]
dirs = { workspace = true }
path-absolutize = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, features = ["derive"] }
@@ -18,5 +19,6 @@ ts-rs = { workspace = true, features = [
] }
[dev-dependencies]
pretty_assertions = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }