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 authored and GitHub committed 2026-01-20 10:55:01 -08:00
1 parent 5ae6e70801
commit 2c3843728c
3 files changed
+70 -2

No files matched your search

+2
View File
@@ -1888,7 +1888,9 @@ dependencies = [
name = "codex-utils-absolute-path"
version = "0.0.0"
dependencies = [
"dirs",
"path-absolutize",
"pretty_assertions",
"schemars 0.8.22",
"serde",
"serde_json",