mirror of
https://github.com/openai/codex.git
synced 2026-11-24 07:20:27 +00:00
chore(core) Add approvals reviewer to UserTurn (#15426)
## Summary Adds support for approvals_reviewer to `Op::UserTurn` so we can migrate `[CodexMessageProcessor::turn_start]` to use Op::UserTurn ## Testing - [x] Adds quick test for the new field Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
191fd9fd16
commit
67c1c7c054
43 files changed
+198
-3
No files matched your search
@@ -42,6 +42,7 @@ pub(crate) enum AppCommandView<'a> {
|
||||
items: &'a [UserInput],
|
||||
cwd: &'a PathBuf,
|
||||
approval_policy: AskForApproval,
|
||||
approvals_reviewer: &'a Option<ApprovalsReviewer>,
|
||||
sandbox_policy: &'a SandboxPolicy,
|
||||
model: &'a str,
|
||||
effort: Option<ReasoningEffortConfig>,
|
||||
@@ -159,6 +160,7 @@ impl AppCommand {
|
||||
items,
|
||||
cwd,
|
||||
approval_policy,
|
||||
approvals_reviewer: None,
|
||||
sandbox_policy,
|
||||
model,
|
||||
effort,
|
||||
@@ -303,6 +305,7 @@ impl AppCommand {
|
||||
items,
|
||||
cwd,
|
||||
approval_policy,
|
||||
approvals_reviewer,
|
||||
sandbox_policy,
|
||||
model,
|
||||
effort,
|
||||
@@ -315,6 +318,7 @@ impl AppCommand {
|
||||
items,
|
||||
cwd,
|
||||
approval_policy: *approval_policy,
|
||||
approvals_reviewer,
|
||||
sandbox_policy,
|
||||
model,
|
||||
effort: *effort,
|
||||
|
||||
Reference in new issue
Block a user