Index: codex-rs/cli/src/main.rs
--- codex-rs/cli/src/main.rs.orig
+++ codex-rs/cli/src/main.rs
@@ -1,3 +1,5 @@
+#![recursion_limit = "256"]
+
 use clap::Args;
 use clap::CommandFactory;
 use clap::Parser;
@@ -948,6 +950,9 @@ fn delete_action(target: &str, force: bool) -> anyhow:
 async fn run_debug_app_server_command(cmd: DebugAppServerCommand) -> anyhow::Result<()> {
     match cmd.subcommand {
         DebugAppServerSubcommand::SendMessageV2(cmd) => {
+            #[cfg(target_os = "openbsd")]
+            let codex_bin = PathBuf::from("${PREFIX}/bin/codex");
+            #[cfg(not(target_os = "openbsd"))]
             let codex_bin = std::env::current_exe()?;
             codex_app_server_test_client::send_message_v2(&codex_bin, &[], cmd.user_message, &None)
                 .await
