mirror of
https://github.com/openai/codex.git
synced 2026-11-21 07:09:23 +00:00
fix: release session ID when not used (#7592)
This commit is contained in:
1 parent
1b2509f05a
commit
36edb412b1
2 files changed
+17
-1
No files matched your search
@@ -146,6 +146,7 @@ impl ToolHandler for UnifiedExecHandler {
|
||||
codex_protocol::protocol::AskForApproval::OnRequest
|
||||
)
|
||||
{
|
||||
manager.release_process_id(&process_id).await;
|
||||
return Err(FunctionCallError::RespondToModel(format!(
|
||||
"approval policy is {policy:?}; reject command — you cannot ask for escalated permissions if the approval policy is {policy:?}",
|
||||
policy = context.turn.approval_policy
|
||||
@@ -169,6 +170,7 @@ impl ToolHandler for UnifiedExecHandler {
|
||||
)
|
||||
.await?
|
||||
{
|
||||
manager.release_process_id(&process_id).await;
|
||||
return Ok(output);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user