mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
Cancel Guardian reviews with their tool calls (#40021)
## What changed Propagate tool cancellation tokens into Guardian approval reviews so interrupting a tool also aborts its pending review. Apply the same cancellation behavior to server-initiated MCP approval elicitation. ## Testing Add integration coverage for cancellation from direct tool calls, code-mode turns, background code-mode cells, and MCP elicitation. GitOrigin-RevId: cbee4b422bbcbf6984e415ef6409cee705beebdc
This commit is contained in:
1 parent
677cfee000
commit
6143217c67
22 files changed
+500
-22
No files matched your search
@@ -349,6 +349,7 @@ pub(crate) trait Sandboxable {
|
||||
pub(crate) struct ToolCtx {
|
||||
pub session: Arc<Session>,
|
||||
pub step_context: Arc<StepContext>,
|
||||
pub cancellation_token: CancellationToken,
|
||||
pub call_id: String,
|
||||
pub tool_name: ToolName,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user