Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Set `recursion_limit` to 256 for app-server, exec, and TUI (#43519)

jifb1205c12d584
diff --git a/codex-rs/app-server/src/main.rs b/codex-rs/app-server/src/main.rs
index 7091ba59e6..c29d9b95e1 100644
--- a/codex-rs/app-server/src/main.rs
+++ b/codex-rs/app-server/src/main.rs
@@ -1,3 +1,5 @@
+#![recursion_limit = "256"]
+
use clap::Parser;
use codex_app_server::AppServerCodeModeHostArgs;
use codex_app_server::AppServerRuntimeOptions;
diff --git a/codex-rs/exec/src/lib.rs b/codex-rs/exec/src/lib.rs
index f37349a135..c7c54fe833 100644
--- a/codex-rs/exec/src/lib.rs
+++ b/codex-rs/exec/src/lib.rs
@@ -2,6 +2,7 @@
// stdout is the final message (if any).
// - In --json mode, stdout must be valid JSONL, one event per line.
// For both modes, any other output must be written to stderr.
+#![recursion_limit = "256"]
#![deny(clippy::print_stdout)]
mod cli;
diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs
index 5791eee586..3d9650d3d4 100644
--- a/codex-rs/tui/src/lib.rs
+++ b/codex-rs/tui/src/lib.rs
@@ -1,6 +1,7 @@
// Forbid accidental stdout/stderr writes in the *library* portion of the TUI.
// The standalone `codex-tui` binary prints a short help message before the
// alternate‑screen mode starts; that file opts‑out locally via `allow`.
+#![recursion_limit = "256"]
#![deny(clippy::print_stdout, clippy::print_stderr)]
#![deny(clippy::disallowed_methods)]
use crate::legacy_core::config::Config;