core-agent-ide/codex-rs/mcp-server/tests
Gabriel Peal 697c7cf4bf
Fix flakiness in shell command approval test (#2547)
## Summary
- read the shell exec approval request's actual id instead of assuming
it is always 0
- use that id when validating and responding in the test

## Testing
- `cargo test -p codex-mcp-server
test_shell_command_approval_triggers_elicitation`

------
https://chatgpt.com/codex/tasks/task_i_68a6ab9c732c832c81522cbf11812be0
2025-08-22 18:46:35 -04:00
..
common Add AuthManager and enhance GetAuthStatus command (#2577) 2025-08-22 13:10:11 -07:00
auth.rs Add AuthManager and enhance GetAuthStatus command (#2577) 2025-08-22 13:10:11 -07:00
codex_message_processor_flow.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
codex_tool.rs Fix flakiness in shell command approval test (#2547) 2025-08-22 18:46:35 -04:00
create_conversation.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
interrupt.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
login.rs Add AuthManager and enhance GetAuthStatus command (#2577) 2025-08-22 13:10:11 -07:00
send_message.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00