mirror of
https://github.com/openai/codex.git
synced 2026-12-06 01:10:58 +00:00
fix(core): adapt runtime workspace replay to current APIs
This commit is contained in:
@@ -172,14 +172,7 @@ impl TurnContext {
|
||||
permission_profile: &PermissionProfile,
|
||||
cwd: &AbsolutePathBuf,
|
||||
) -> SandboxPolicy {
|
||||
let file_system_sandbox_policy = permission_profile.file_system_sandbox_policy();
|
||||
let network_sandbox_policy = permission_profile.network_sandbox_policy();
|
||||
compatibility_sandbox_policy_for_permission_profile(
|
||||
permission_profile,
|
||||
&file_system_sandbox_policy,
|
||||
network_sandbox_policy,
|
||||
cwd.as_path(),
|
||||
)
|
||||
compatibility_sandbox_policy_for_permission_profile(permission_profile, cwd.as_path())
|
||||
}
|
||||
|
||||
pub(crate) fn effective_reasoning_effort(&self) -> Option<ReasoningEffortConfig> {
|
||||
|
||||
@@ -740,7 +740,6 @@ impl ThreadManager {
|
||||
config,
|
||||
initial_history,
|
||||
auth_manager,
|
||||
persist_extended_history,
|
||||
parent_trace,
|
||||
RuntimeWorkspaceReplayOverrides::default(),
|
||||
)
|
||||
@@ -752,7 +751,6 @@ impl ThreadManager {
|
||||
mut config: Config,
|
||||
initial_history: InitialHistory,
|
||||
auth_manager: Arc<AuthManager>,
|
||||
persist_extended_history: bool,
|
||||
parent_trace: Option<W3cTraceContext>,
|
||||
runtime_workspace_overrides: RuntimeWorkspaceReplayOverrides,
|
||||
) -> CodexResult<NewThread> {
|
||||
@@ -966,7 +964,6 @@ impl ThreadManager {
|
||||
config,
|
||||
history,
|
||||
thread_source,
|
||||
persist_extended_history,
|
||||
parent_trace,
|
||||
RuntimeWorkspaceReplayOverrides::default(),
|
||||
)
|
||||
@@ -980,7 +977,6 @@ impl ThreadManager {
|
||||
config: Config,
|
||||
history: InitialHistory,
|
||||
thread_source: Option<ThreadSource>,
|
||||
persist_extended_history: bool,
|
||||
parent_trace: Option<W3cTraceContext>,
|
||||
runtime_workspace_overrides: RuntimeWorkspaceReplayOverrides,
|
||||
) -> CodexResult<NewThread>
|
||||
|
||||
Reference in New Issue
Block a user