mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
## Why Queued prompts can resume before a pending permissions menu opens, and local `/permissions` commands can bypass guards for outstanding permission changes. Attaching to a different project can also retain model access information from the launch directory. ## What changed - Route `/permissions` through app permission guards and hold queued prompts while the menu is pending. Settle the hold when opening is rejected, discovery is invalidated, or a covering request is resolved. - Apply the custom permission profile selection check beyond embedded servers. - Refresh API-key model access when the first attached session changes the working directory, including with an embedded server. Propagate the widget's model catalog to the app and server even when the model response matches the widget's already-updated catalog. - Skip sessions reported as `thread not loaded` during name lookup for all server types instead of falling back to unverified list metadata. ## Testing Add regression coverage for permission guards, queued prompts across successive permission menus, invalidated and covered menus, model catalog propagation, project changes on initial attachment, and name lookup across server pages with unreadable entries. GitOrigin-RevId: eb49cb5268ce0ce1e40009b73a0180f23e61ed72