codex/codex-rs/utils
rhan-oai 6515a72db7 Preserve runtime workspace roots across thread resume (#43848)
## Why

Resuming a thread should retain its selected workspace folders, including additional roots and explicit empty selections. Resume overrides also need to survive a subsequent resume when no turn has run.

## What changed

- Persist `runtime_workspace_roots` in startup metadata and thread settings snapshots, separately from explicit environment selections and permission-profile roots.
- Restore roots from the latest snapshot owned by the resumed thread, falling back to owned startup metadata only when no snapshot exists. Honor explicit `runtimeWorkspaceRoots` overrides, retarget the old `cwd` root when `cwd` changes, deduplicate roots, and validate restored paths for the current host.
- Checkpoint effective settings on resume and restored settings after revert. Reload resume configuration if saved workspace roots change during loading.
- Normalize Windows rollout path spellings when matching thread search results, preserving selection of the correct rollout after revert, including compressed rollouts.

## Testing

Add regression coverage for workspace restoration, empty and explicit overrides, foreign paths, compaction and revert, resume checkpoints without recency changes, concurrent settings persistence, and rollout search path matching.

GitOrigin-RevId: d98d9d34dd63934d441120916c61c12b69e7f062
History 2026-09-08 16:24:38 +00:00
..
absolute-path Support execution-host context when resolving cloud config (#38086) 2026-08-11 23:31:26 +00:00
approval-presets tui: pass active permission profiles through app commands (#22891) 2026-05-15 22:42:35 +00:00
audio Support durable reasoning configuration updates (#42328) 2026-09-02 18:52:44 +00:00
cache Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
cargo-bin build: run buildifier from just fmt (#28125) 2026-06-13 21:43:39 -07:00
cli Add managed worktrees to codex exec (#42652) 2026-09-04 01:56:38 +00:00
elapsed Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
fuzzy-match Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
git-discovery Bound Git root discovery for metadata enrichment (#42132) 2026-09-01 20:41:32 +00:00
home-dir Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
image Centralize prompt image detail modes (#42624) 2026-09-03 22:22:48 +00:00
json-to-toml Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
oss Route Ollama through the shared HTTP client (#36078) 2026-07-30 04:26:36 +00:00
output-truncation Support per-tool MCP output limits (#41421) 2026-08-28 21:40:23 +00:00
path-uri Resolve permission requests in the executor context (#42146) 2026-09-01 22:08:08 +00:00
path-utils Preserve runtime workspace roots across thread resume (#43848) 2026-09-08 16:24:38 +00:00
plugins Harden unsandboxed patch filesystem access (#39659) 2026-08-20 08:10:08 +00:00
pty Add installed voice host lifecycle support (#41902) 2026-08-31 19:44:44 +00:00
readiness [codex] Remove async_trait from first-party code (#27475) 2026-06-11 18:16:39 -07:00
redacted-string Keep credentials out of app-server logs (#39993) 2026-08-21 19:04:32 +00:00
rustls-provider Use aws-lc-rs for rustls crypto provider (#27706) 2026-06-15 11:32:13 -07:00
sandbox-summary Remove unused Rust helpers (#34345) 2026-07-20 13:45:29 +00:00
sleep-inhibitor Keep feature tests focused on behavior (#33864) 2026-07-17 16:17:29 +00:00
stream-parser Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
string Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
template Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00