From d81715fb56cefa4c96de2b2bbcabcf253b275592 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Mon, 5 Jan 2026 17:42:32 +0000 Subject: [PATCH 1/2] chore: GH pager --- codex-rs/core/src/unified_exec/session_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/unified_exec/session_manager.rs b/codex-rs/core/src/unified_exec/session_manager.rs index c97820e4643..0af407c0295 100644 --- a/codex-rs/core/src/unified_exec/session_manager.rs +++ b/codex-rs/core/src/unified_exec/session_manager.rs @@ -47,7 +47,7 @@ use super::session::OutputBuffer; use super::session::OutputHandles; use super::session::UnifiedExecSession; -const UNIFIED_EXEC_ENV: [(&str, &str); 8] = [ +const UNIFIED_EXEC_ENV: [(&str, &str); 9] = [ ("NO_COLOR", "1"), ("TERM", "dumb"), ("LANG", "C.UTF-8"), @@ -56,6 +56,7 @@ const UNIFIED_EXEC_ENV: [(&str, &str); 8] = [ ("COLORTERM", ""), ("PAGER", "cat"), ("GIT_PAGER", "cat"), + ("GH_PAGER", "cat"), ]; fn apply_unified_exec_env(mut env: HashMap) -> HashMap { From d178e2e7ee5dcfd50948c8896369c87b75febdce Mon Sep 17 00:00:00 2001 From: jif-oai Date: Mon, 5 Jan 2026 18:24:40 +0000 Subject: [PATCH 2/2] test --- codex-rs/core/src/unified_exec/session_manager.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/core/src/unified_exec/session_manager.rs b/codex-rs/core/src/unified_exec/session_manager.rs index 0af407c0295..0a1e29e8fba 100644 --- a/codex-rs/core/src/unified_exec/session_manager.rs +++ b/codex-rs/core/src/unified_exec/session_manager.rs @@ -680,6 +680,7 @@ mod tests { ("COLORTERM".to_string(), String::new()), ("PAGER".to_string(), "cat".to_string()), ("GIT_PAGER".to_string(), "cat".to_string()), + ("GH_PAGER".to_string(), "cat".to_string()), ]); assert_eq!(env, expected);