mirror of
https://github.com/openai/codex.git
synced 2026-05-21 11:42:55 +00:00
Keep requested cwd precedence in app-server
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -2401,7 +2401,7 @@ impl CodexMessageProcessor {
|
||||
request_trace: Option<W3cTraceContext>,
|
||||
environment_id: Option<String>,
|
||||
) {
|
||||
let explicit_cwd = typesafe_overrides.cwd.clone();
|
||||
let requested_cwd = typesafe_overrides.cwd.clone();
|
||||
let mut config = match derive_config_from_params(
|
||||
&cli_overrides,
|
||||
config_overrides.clone(),
|
||||
@@ -2436,7 +2436,7 @@ impl CodexMessageProcessor {
|
||||
)
|
||||
);
|
||||
|
||||
if explicit_cwd.is_some()
|
||||
if requested_cwd.is_some()
|
||||
&& !config.active_project.is_trusted()
|
||||
&& (requested_sandbox_trusts_project
|
||||
|| matches!(
|
||||
@@ -2505,7 +2505,7 @@ impl CodexMessageProcessor {
|
||||
};
|
||||
}
|
||||
|
||||
if explicit_cwd.is_none() {
|
||||
if requested_cwd.is_none() {
|
||||
match listener_task_context
|
||||
.thread_manager
|
||||
.environment_manager()
|
||||
|
||||
Reference in New Issue
Block a user