mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
feat: add config allow_login_shell (#12312)
This commit is contained in:
@@ -609,6 +609,7 @@ impl TurnContext {
|
||||
features: &features,
|
||||
web_search_mode: self.tools_config.web_search_mode,
|
||||
})
|
||||
.with_allow_login_shell(self.tools_config.allow_login_shell)
|
||||
.with_agent_roles(config.agent_roles.clone());
|
||||
|
||||
Self {
|
||||
@@ -941,6 +942,7 @@ impl Session {
|
||||
features: &per_turn_config.features,
|
||||
web_search_mode: Some(per_turn_config.web_search_mode.value()),
|
||||
})
|
||||
.with_allow_login_shell(per_turn_config.permissions.allow_login_shell)
|
||||
.with_agent_roles(per_turn_config.agent_roles.clone());
|
||||
|
||||
let cwd = session_configuration.cwd.clone();
|
||||
@@ -4122,6 +4124,7 @@ async fn spawn_review_thread(
|
||||
features: &review_features,
|
||||
web_search_mode: Some(review_web_search_mode),
|
||||
})
|
||||
.with_allow_login_shell(config.permissions.allow_login_shell)
|
||||
.with_agent_roles(config.agent_roles.clone());
|
||||
|
||||
let review_prompt = resolved.prompt.clone();
|
||||
|
||||
Reference in New Issue
Block a user