feat: include available decisions in command approval requests

This commit is contained in:
Michael Bolin
2026-02-25 15:00:54 -08:00
parent b6d20748e0
commit 56de2a411b
32 changed files with 596 additions and 109 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ fn handle_server_request(
..
} => {
let response = codex_app_server_protocol::CommandExecutionRequestApprovalResponse {
decision: CommandExecutionApprovalDecision::Decline,
decision: CommandExecutionApprovalDecision::Cancel,
};
send_jsonrpc_response(stdin, request_id, response)
}
+1 -1
View File
@@ -44,7 +44,7 @@ pub fn start_reader(
let command_decision = if auto_approve {
CommandExecutionApprovalDecision::Accept
} else {
CommandExecutionApprovalDecision::Decline
CommandExecutionApprovalDecision::Cancel
};
let file_decision = if auto_approve {
FileChangeApprovalDecision::Accept