mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
18acec09df
# Summary - Fix resume/fork config rebuild so cwd changes inside the TUI produce a fully rebuilt Config (trust/approval/sandbox) instead of mutating only the cwd. - Preserve `--add-dir` behavior across resume/fork by normalizing relative roots to absolute paths once (based on the original cwd). - Prefer latest `TurnContext.cwd` for resume/fork prompts but fall back to `SessionMeta.cwd` if the latest cwd no longer exists. - Align resume/fork selection handling and ensure UI config matches the resumed thread config. - Fix Windows test TOML path escaping in trust-level test. # Details - Rebuild Config via `ConfigBuilder` when resuming into a different cwd; carry forward runtime approval/sandbox overrides. - Add `normalize_harness_overrides_for_cwd` to resolve relative `additional_writable_roots` against the initial cwd before reuse. - Guard `read_session_cwd` with filesystem existence check for the latest `TurnContext.cwd`. - Update naming/flow around cwd comparison and prompt selection. <img width="603" height="150" alt="Screenshot 2026-01-23 at 5 42 13 PM" src="https://github.com/user-attachments/assets/d1897386-bb28-4e8a-98cf-187fdebbecb0" /> And proof the model understands the new cwd: <img width="828" height="353" alt="Screenshot 2026-01-22 at 5 36 45 PM" src="https://github.com/user-attachments/assets/12aed8ca-dec3-4b64-8dae-c6b8cff78387" />
18acec09df
·
2026-01-24 21:57:19 -08:00
History