mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Selecting a saved Cloud environment for a draft did not set a default for future conversations in the same project. ## What changed - Save the environment selected for a Cloud draft in the local user configuration under `tui.default_cloud_environments`, keyed by project and local user identity. Selecting Default clears the preference. - Reuse the preference at startup, when creating a new Cloud conversation, and when switching to Cloud. Use the normal Cloud environment selection when the saved environment is absent from the catalog or the catalog cannot be loaded. - Use the v2 environment catalog, filter for eligible saved environments, and deduplicate entries across personal and workspace results. ## Testing Cover preference persistence and clearing, project scoping, reuse after a config reload, fallback when the catalog is unavailable, and catalog pagination, filtering, and deduplication. GitOrigin-RevId: bc4f66842c5c83dc75c5b10840fd596feedd44df