mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why Embedded sessions can use a local execution profile that differs from the sandbox policy reported by the app server. The TUI needs a server-confirmed snapshot for permission displays. ## What changed Capture the server-reported sandbox profile, active profile, approval settings, working directory, and workspace roots when a thread starts, resumes, forks, or receives a live settings update. Restore the snapshot from cached sessions and preserve it during transcript replay. Leave the snapshot unset when session settings are inferred. ## Testing Extend tests to cover differing server and local profiles, workspace roots from live settings updates, and snapshot preservation during transcript replay. GitOrigin-RevId: 525fdfa1b526f5d799bca01c955ac7cfc3e60774