mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
e6b93841c5
Adds a built-in `request_permissions` tool and wires it through the Codex core, protocol, and app-server layers so a running turn can ask the client for additional permissions instead of relying on a static session policy. The new flow emits a `RequestPermissions` event from core, tracks the pending request by call ID, forwards it through app-server v2 as an `item/permissions/requestApproval` request, and resumes the tool call once the client returns an approved subset of the requested permission profile.
21 lines
419 B
Rust
21 lines
419 B
Rust
pub mod account;
|
|
mod thread_id;
|
|
pub use thread_id::ThreadId;
|
|
pub mod approvals;
|
|
pub mod config_types;
|
|
pub mod custom_prompts;
|
|
pub mod dynamic_tools;
|
|
pub mod items;
|
|
pub mod mcp;
|
|
pub mod message_history;
|
|
pub mod models;
|
|
pub mod num_format;
|
|
pub mod openai_models;
|
|
pub mod parse_command;
|
|
pub mod permissions;
|
|
pub mod plan_tool;
|
|
pub mod protocol;
|
|
pub mod request_permissions;
|
|
pub mod request_user_input;
|
|
pub mod user_input;
|