-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Add approval allow-prefix flow in core and tui #7037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -235,6 +235,7 @@ async fn handle_exec_approval( | |
| event.cwd, | ||
| event.reason, | ||
| event.risk, | ||
| event.allow_prefix, | ||
| ); | ||
| let decision = await_approval_with_cancel( | ||
| approval_fut, | ||
|
|
@@ -244,7 +245,13 @@ async fn handle_exec_approval( | |
| ) | ||
| .await; | ||
|
|
||
| let _ = codex.submit(Op::ExecApproval { id, decision }).await; | ||
| let _ = codex | ||
| .submit(Op::ExecApproval { | ||
| id, | ||
| decision, | ||
| allow_prefix: None, | ||
|
Comment on lines
+248
to
+252
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the delegate handles an exec approval request that includes Useful? React with 👍 / 👎. |
||
| }) | ||
| .await; | ||
| } | ||
|
|
||
| /// Handle an ApplyPatchApprovalRequest by consulting the parent session and replying. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new allow-prefix flow calls
crate::exec_policy::append_allow_prefix_rule_and_reloadwhen persisting approvals, but no such function exists incore/exec_policy. This call will not compile (unresolved function) and the allow-prefix approval path cannot run at all.Useful? React with 👍 / 👎.