git: 8a3c754a9180 - main - misc/codex: Update to 0.163.0

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sat, 17 Oct 2026 10:44:14 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a3c754a9180ec73e336add146765c94c3cdd5f1

commit 8a3c754a9180ec73e336add146765c94c3cdd5f1
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-10-17 10:43:01 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-10-17 10:44:03 +0000

    misc/codex: Update to 0.163.0
    
    Changelog: https://github.com/openai/codex/releases/tag/rust-v0.163.0
    
    Reported by:    GitHub (watch releases)
---
 misc/codex/Makefile                                |  9 ++++-----
 misc/codex/Makefile.crates                         |  8 +++++---
 misc/codex/distinfo                                | 22 +++++++++++++---------
 misc/codex/files/patch-codex-rs_Cargo.lock         | 14 +++++++-------
 .../patch-codex-rs_app-server-client_src_lib.rs    |  6 +++---
 ...odex-rs_core_src_tools_runtimes_apply__patch.rs |  6 +++---
 ..._core_src_tools_runtimes_apply__patch__tests.rs |  4 ++--
 .../patch-codex-rs_core_tests_suite_remote__env.rs |  8 ++++----
 misc/codex/files/patch-codex-rs_exec_src_main.rs   |  4 ++--
 .../codex/files/patch-codex-rs_features_src_lib.rs |  4 ++--
 ...tch-codex-rs_tui_src_app_right__click__paste.rs |  6 +++---
 .../patch-codex-rs_tui_src_clipboard__copy.rs      | 10 +++++-----
 ...atch-codex-rs_tui_src_clipboard__copy_worker.rs |  4 ++--
 misc/codex/files/patch-codex-rs_tui_src_main.rs    |  8 --------
 14 files changed, 55 insertions(+), 58 deletions(-)

diff --git a/misc/codex/Makefile b/misc/codex/Makefile
index b3cacba0bce4..584f1b554505 100644
--- a/misc/codex/Makefile
+++ b/misc/codex/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	codex
 DISTVERSIONPREFIX=	rust-v
-DISTVERSION=	0.162.1
-PORTREVISION=	1
+DISTVERSION=	0.163.0
 CATEGORIES=	misc devel
 
 MAINTAINER=	tagattie@FreeBSD.org
@@ -119,6 +118,7 @@ post-patch:
 		${BUILD_WRKSRC}/core/tests/suite/unified_exec_stdin_approval.rs \
 		${BUILD_WRKSRC}/core/tests/suite/unified_exec_stdin_review_size.rs \
 		${BUILD_WRKSRC}/core/tests/suite/user_notification.rs \
+		${BUILD_WRKSRC}/exec-server/src/environment/discovery_v2_tests.rs \
 		${BUILD_WRKSRC}/exec-server/src/process_sandbox_tests.rs \
 		${BUILD_WRKSRC}/exec-server/src/shell_snapshot_file_tests.rs \
 		${BUILD_WRKSRC}/exec-server/src/shell_snapshot_tests.rs \
@@ -128,7 +128,6 @@ post-patch:
 		${BUILD_WRKSRC}/shell-command/src/parse_command.rs \
 		${BUILD_WRKSRC}/shell-command/src/shell_detect.rs \
 		${BUILD_WRKSRC}/shell-command/src/shell_snapshot_tests.rs \
-		${BUILD_WRKSRC}/shell-escalation/src/unix/escalate_server.rs \
 		${BUILD_WRKSRC}/tui/src/exec_command.rs \
 		${BUILD_WRKSRC}/utils/path-uri/src/tests.rs
 	@${REINPLACE_CMD} -e 's|python3|${PYTHON_VERSION}|' \
@@ -142,7 +141,6 @@ post-patch:
 		${BUILD_WRKSRC}/app-server/tests/suite/v2/thread_shell_command.rs \
 		${BUILD_WRKSRC}/app-server/tests/suite/v2/turn_interrupt.rs \
 		${BUILD_WRKSRC}/app-server/tests/suite/v2/turn_start.rs \
-		${BUILD_WRKSRC}/app-server/tests/suite/v2/turn_start_zsh_fork.rs \
 		${BUILD_WRKSRC}/cli/tests/sandbox_tty.rs \
 		${BUILD_WRKSRC}/config/src/config_requirements.rs \
 		${BUILD_WRKSRC}/config/src/hooks_tests.rs \
@@ -157,6 +155,7 @@ post-patch:
 		${BUILD_WRKSRC}/core/tests/suite/approvals.rs \
 		${BUILD_WRKSRC}/core/tests/suite/code_mode.rs \
 		${BUILD_WRKSRC}/core/tests/suite/compact.rs \
+		${BUILD_WRKSRC}/core/tests/suite/dynamic_tool_cancellation.rs \
 		${BUILD_WRKSRC}/core/tests/suite/exec.rs \
 		${BUILD_WRKSRC}/core/tests/suite/guardian_mcp_elicitation.rs \
 		${BUILD_WRKSRC}/core/tests/suite/hooks.rs \
@@ -182,9 +181,9 @@ post-patch:
 		${BUILD_WRKSRC}/hooks/src/events/compact.rs \
 		${BUILD_WRKSRC}/hooks/src/events/post_tool_use.rs \
 		${BUILD_WRKSRC}/linux-sandbox/tests/suite/daemon_sockets_tests.rs \
-		${BUILD_WRKSRC}/linux-sandbox/tests/suite/landlock.rs \
 		${BUILD_WRKSRC}/linux-sandbox/tests/suite/managed_proxy.rs \
 		${BUILD_WRKSRC}/linux-sandbox/tests/suite/managed_proxy_unix_sockets_tests.rs \
+		${BUILD_WRKSRC}/linux-sandbox/tests/suite/sandbox.rs \
 		${BUILD_WRKSRC}/memories/write/src/startup_tests.rs \
 		${BUILD_WRKSRC}/rmcp-client/tests/stdio_descriptor_boundary.rs \
 		${BUILD_WRKSRC}/rmcp-client/tests/stdio_stderr_cleanup.rs \
diff --git a/misc/codex/Makefile.crates b/misc/codex/Makefile.crates
index 65a5a7107c72..2e85b2eebd9f 100644
--- a/misc/codex/Makefile.crates
+++ b/misc/codex/Makefile.crates
@@ -470,7 +470,7 @@ CARGO_CRATES=	Inflector-0.11.4 \
 		httpdate-1.0.3 \
 		hybrid-array-0.2.3 \
 		hybrid-array-0.4.12 \
-		hyper-1.8.1 \
+		hyper-1.11.1 \
 		hyper-rustls-0.27.7 \
 		hyper-timeout-0.5.2 \
 		hyper-tls-0.6.0 \
@@ -564,6 +564,7 @@ CARGO_CRATES=	Inflector-0.11.4 \
 		libsqlite3-sys-0.37.0 \
 		line-clipping-0.3.7 \
 		link-section-0.17.2 \
+		linkify-0.11.0 \
 		linktime-proc-macro-0.1.0 \
 		linux-keyutils-0.2.4 \
 		linux-raw-sys-0.4.15 \
@@ -773,7 +774,7 @@ CARGO_CRATES=	Inflector-0.11.4 \
 		quick-xml-0.41.0 \
 		quickcheck-1.1.0 \
 		quinn-0.11.9 \
-		quinn-proto-0.11.15 \
+		quinn-proto-0.11.18 \
 		quinn-udp-0.5.14 \
 		quinn-udp-0.6.1 \
 		quote-1.0.45 \
@@ -806,6 +807,7 @@ CARGO_CRATES=	Inflector-0.11.4 \
 		rand_core-0.6.4 \
 		rand_core-0.9.5 \
 		rand_core-0.10.1 \
+		rand_pcg-0.10.2 \
 		rand_regex-0.18.1 \
 		rand_xorshift-0.4.0 \
 		ratatui-0.30.2 \
@@ -1294,9 +1296,9 @@ CARGO_CRATES=	Inflector-0.11.4 \
 		runfiles@git+https://github.com/dzbarsky/rules_rust?rev=b56cbaa8465e74127f1ea216f813cd377295ad81\#b56cbaa8465e74127f1ea216f813cd377295ad81 \
 		nucleo,nucleo-matcher@git+https://github.com/helix-editor/nucleo.git?rev=4253de9faabb4e5c6d81d946a5e35a90f87347ee\#4253de9faabb4e5c6d81d946a5e35a90f87347ee \
 		appcontainer_common,learning_mode_core,learning_mode_windows,mxc_config_contract,mxc_telemetry,process_security_environment_spec,sandbox_spec,wxc_common@git+https://github.com/microsoft/mxc?rev=6cd3d58f05d3447e67109cfb75e042803b843ca4\#6cd3d58f05d3447e67109cfb75e042803b843ca4 \
-		rmcp,rmcp-macros@git+https://github.com/modelcontextprotocol/rust-sdk?rev=3e636cab26c013eca5131103c03d20237f12c4df\#3e636cab26c013eca5131103c03d20237f12c4df \
 		crossterm@git+https://github.com/openai-oss-forks/crossterm?rev=ed1cdab335221515706178d68495bba2aed1924f\#ed1cdab335221515706178d68495bba2aed1924f \
 		tungstenite@git+https://github.com/openai-oss-forks/tungstenite-rs?rev=4fffad30fe373adbdcffab9545e9e9bf4f2fc19f\#4fffad30fe373adbdcffab9545e9e9bf4f2fc19f \
+		rmcp,rmcp-macros@git+https://github.com/modelcontextprotocol/rust-sdk?rev=4048ac40e958fb1a7d614617a2ae8d26666ee2fa\#4048ac40e958fb1a7d614617a2ae8d26666ee2fa \
 		tokio-tungstenite@git+https://github.com/openai-oss-forks/tokio-tungstenite?rev=0e5b2d73aa18dd9f0a50ee9ff199d5aef7594186\#0e5b2d73aa18dd9f0a50ee9ff199d5aef7594186 \
 		notify,notify-types@git+https://github.com/notify-rs/notify.git?rev=48415246732dc426577684bf03c558579cf0b081\#48415246732dc426577684bf03c558579cf0b081 \
 		h3,h3-quinn@git+https://github.com/hyperium/h3?rev=e07e69412876f7e26f026bd75a48b2704d8c8283\#e07e69412876f7e26f026bd75a48b2704d8c8283
diff --git a/misc/codex/distinfo b/misc/codex/distinfo
index b9c859e7636e..9737c09d5f2b 100644
--- a/misc/codex/distinfo
+++ b/misc/codex/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1791634354
+TIMESTAMP = 1792219707
 SHA256 (rust/crates/Inflector-0.11.4.crate) = fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3
 SIZE (rust/crates/Inflector-0.11.4.crate) = 17438
 SHA256 (rust/crates/addr2line-0.25.1.crate) = 1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b
@@ -943,8 +943,8 @@ SHA256 (rust/crates/hybrid-array-0.2.3.crate) = f2d35805454dc9f8662a98d6d61886ff
 SIZE (rust/crates/hybrid-array-0.2.3.crate) = 26514
 SHA256 (rust/crates/hybrid-array-0.4.12.crate) = 9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da
 SIZE (rust/crates/hybrid-array-0.4.12.crate) = 36407
-SHA256 (rust/crates/hyper-1.8.1.crate) = 2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11
-SIZE (rust/crates/hyper-1.8.1.crate) = 157353
+SHA256 (rust/crates/hyper-1.11.1.crate) = 27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43
+SIZE (rust/crates/hyper-1.11.1.crate) = 170053
 SHA256 (rust/crates/hyper-rustls-0.27.7.crate) = e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58
 SIZE (rust/crates/hyper-rustls-0.27.7.crate) = 35435
 SHA256 (rust/crates/hyper-timeout-0.5.2.crate) = 2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0
@@ -1131,6 +1131,8 @@ SHA256 (rust/crates/line-clipping-0.3.7.crate) = 3f50e8f47623268b5407192d26876c4
 SIZE (rust/crates/line-clipping-0.3.7.crate) = 15755
 SHA256 (rust/crates/link-section-0.17.2.crate) = 4d1e908a416d6e9f725743b84a36feea40c4c131e805fbc26d61f9f451f36080
 SIZE (rust/crates/link-section-0.17.2.crate) = 55982
+SHA256 (rust/crates/linkify-0.11.0.crate) = 92f9ae2f3d31697697311f016320fe984127e636b45cf5eb5c175b7eb103dadb
+SIZE (rust/crates/linkify-0.11.0.crate) = 27173
 SHA256 (rust/crates/linktime-proc-macro-0.1.0.crate) = a44cd706ff0d503ee32b2071166510ca27e281228de10cd3aa8d35ff94560f81
 SIZE (rust/crates/linktime-proc-macro-0.1.0.crate) = 11201
 SHA256 (rust/crates/linux-keyutils-0.2.4.crate) = 761e49ec5fd8a5a463f9b84e877c373d888935b71c6be78f3767fe2ae6bed18e
@@ -1549,8 +1551,8 @@ SHA256 (rust/crates/quickcheck-1.1.0.crate) = 95c589f335db0f6aaa168a7cd27b1fc692
 SIZE (rust/crates/quickcheck-1.1.0.crate) = 31932
 SHA256 (rust/crates/quinn-0.11.9.crate) = b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20
 SIZE (rust/crates/quinn-0.11.9.crate) = 83606
-SHA256 (rust/crates/quinn-proto-0.11.15.crate) = 4fcb935c5bec503c2f0e306bdd3e58bb9029dcb14fa8d9ac76e3a5256ac0763e
-SIZE (rust/crates/quinn-proto-0.11.15.crate) = 245016
+SHA256 (rust/crates/quinn-proto-0.11.18.crate) = a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc
+SIZE (rust/crates/quinn-proto-0.11.18.crate) = 255396
 SHA256 (rust/crates/quinn-udp-0.5.14.crate) = addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd
 SIZE (rust/crates/quinn-udp-0.5.14.crate) = 33436
 SHA256 (rust/crates/quinn-udp-0.6.1.crate) = 76150b617afc75e6e21ac5f39bc196e80b65415ae48d62dbef8e2519d040ce42
@@ -1615,6 +1617,8 @@ SHA256 (rust/crates/rand_core-0.9.5.crate) = 76afc826de14238e6e8c374ddcc1fa19e37
 SIZE (rust/crates/rand_core-0.9.5.crate) = 24129
 SHA256 (rust/crates/rand_core-0.10.1.crate) = 63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69
 SIZE (rust/crates/rand_core-0.10.1.crate) = 22833
+SHA256 (rust/crates/rand_pcg-0.10.2.crate) = caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a
+SIZE (rust/crates/rand_pcg-0.10.2.crate) = 15439
 SHA256 (rust/crates/rand_regex-0.18.1.crate) = 04db2e382d13679a1e42400e90e306cdbb79dc5cd41bb035ba4eae72e78cdf37
 SIZE (rust/crates/rand_regex-0.18.1.crate) = 20166
 SHA256 (rust/crates/rand_xorshift-0.4.0.crate) = 513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a
@@ -2591,17 +2595,17 @@ SHA256 (helix-editor-nucleo-4253de9faabb4e5c6d81d946a5e35a90f87347ee_GH0.tar.gz)
 SIZE (helix-editor-nucleo-4253de9faabb4e5c6d81d946a5e35a90f87347ee_GH0.tar.gz) = 86782
 SHA256 (microsoft-mxc-6cd3d58f05d3447e67109cfb75e042803b843ca4_GH0.tar.gz) = 7cd51b7844ce3f62449c60a6d602996992f644ab01d496e17ea5b3fd2a18fc38
 SIZE (microsoft-mxc-6cd3d58f05d3447e67109cfb75e042803b843ca4_GH0.tar.gz) = 5985947
-SHA256 (modelcontextprotocol-rust-sdk-3e636cab26c013eca5131103c03d20237f12c4df_GH0.tar.gz) = 0199e66be6d68f80664e20bea2428390ef24ae034d678b588c2013144fb0178c
-SIZE (modelcontextprotocol-rust-sdk-3e636cab26c013eca5131103c03d20237f12c4df_GH0.tar.gz) = 711661
 SHA256 (openai-oss-forks-crossterm-ed1cdab335221515706178d68495bba2aed1924f_GH0.tar.gz) = 3530cd377d080722f631c6566e5edb4844ab8be8f4b185d6be4a2bbba5591531
 SIZE (openai-oss-forks-crossterm-ed1cdab335221515706178d68495bba2aed1924f_GH0.tar.gz) = 162382
 SHA256 (openai-oss-forks-tungstenite-rs-4fffad30fe373adbdcffab9545e9e9bf4f2fc19f_GH0.tar.gz) = d85393467dd5843688059bb204a61b7450dce1166a2c8aab3c87478955ffce48
 SIZE (openai-oss-forks-tungstenite-rs-4fffad30fe373adbdcffab9545e9e9bf4f2fc19f_GH0.tar.gz) = 293806
+SHA256 (modelcontextprotocol-rust-sdk-4048ac40e958fb1a7d614617a2ae8d26666ee2fa_GH0.tar.gz) = aff9954fec4fee134ff47197189d6f5a626f3a53dc705469c850f4a44af22eb5
+SIZE (modelcontextprotocol-rust-sdk-4048ac40e958fb1a7d614617a2ae8d26666ee2fa_GH0.tar.gz) = 741132
 SHA256 (openai-oss-forks-tokio-tungstenite-0e5b2d73aa18dd9f0a50ee9ff199d5aef7594186_GH0.tar.gz) = a1d8bfedf41ea59d5ed375ebc280dad7099d0c3398e91406c51d485270196a3d
 SIZE (openai-oss-forks-tokio-tungstenite-0e5b2d73aa18dd9f0a50ee9ff199d5aef7594186_GH0.tar.gz) = 33055
 SHA256 (notify-rs-notify-48415246732dc426577684bf03c558579cf0b081_GH0.tar.gz) = f18d07b616d78d563a125dc3f76326e7350f6d0853b72eb65be93782620f7904
 SIZE (notify-rs-notify-48415246732dc426577684bf03c558579cf0b081_GH0.tar.gz) = 197130
 SHA256 (hyperium-h3-e07e69412876f7e26f026bd75a48b2704d8c8283_GH0.tar.gz) = 3b9d8a9d10841fe27fb86c97a06bece1411fcb0acfadc0ca857b6365d4e5d29a
 SIZE (hyperium-h3-e07e69412876f7e26f026bd75a48b2704d8c8283_GH0.tar.gz) = 244832
-SHA256 (openai-codex-rust-v0.162.1_GH0.tar.gz) = e709bda93494c000a69d4c07a85a1975ce433f5541e737d1a5feddd399c97c60
-SIZE (openai-codex-rust-v0.162.1_GH0.tar.gz) = 17186781
+SHA256 (openai-codex-rust-v0.163.0_GH0.tar.gz) = 5990ddb133184ce5e470c741d14f1eeb24a0b6cd36685ef78fb772cf83cab7fc
+SIZE (openai-codex-rust-v0.163.0_GH0.tar.gz) = 17505520
diff --git a/misc/codex/files/patch-codex-rs_Cargo.lock b/misc/codex/files/patch-codex-rs_Cargo.lock
index c3e1014d3229..8907b40fd86e 100644
--- a/misc/codex/files/patch-codex-rs_Cargo.lock
+++ b/misc/codex/files/patch-codex-rs_Cargo.lock
@@ -1,6 +1,6 @@
---- codex-rs/Cargo.lock.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/Cargo.lock.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/Cargo.lock
-@@ -7255,15 +7255,6 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9
+@@ -7245,15 +7245,6 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9
  checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
  
  [[package]]
@@ -16,7 +16,7 @@
  name = "fslock"
  version = "0.2.1"
  source = "registry+https://github.com/rust-lang/crates.io-index"
-@@ -9487,9 +9478,9 @@ name = "inotify"
+@@ -9478,9 +9469,9 @@ name = "inotify"
  
  [[package]]
  name = "inotify"
@@ -28,7 +28,7 @@
  dependencies = [
   "bitflags 2.13.1",
   "inotify-sys",
-@@ -9498,9 +9489,9 @@ name = "inotify-sys"
+@@ -9489,9 +9480,9 @@ name = "inotify-sys"
  
  [[package]]
  name = "inotify-sys"
@@ -40,7 +40,7 @@
  dependencies = [
   "libc",
  ]
-@@ -9864,9 +9855,9 @@ name = "kqueue"
+@@ -9855,9 +9846,9 @@ name = "kqueue"
  
  [[package]]
  name = "kqueue"
@@ -52,7 +52,7 @@
  dependencies = [
   "kqueue-sys",
   "libc",
-@@ -9874,11 +9865,11 @@ name = "kqueue-sys"
+@@ -9865,11 +9856,11 @@ name = "kqueue-sys"
  
  [[package]]
  name = "kqueue-sys"
@@ -119,7 +119,7 @@
  name = "objc2-core-text"
  version = "0.3.2"
  source = "registry+https://github.com/rust-lang/crates.io-index"
-@@ -17797,6 +17798,12 @@ checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd46
+@@ -17807,6 +17808,12 @@ checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd46
  version = "0.13.6"
  source = "registry+https://github.com/rust-lang/crates.io-index"
  checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4"
diff --git a/misc/codex/files/patch-codex-rs_app-server-client_src_lib.rs b/misc/codex/files/patch-codex-rs_app-server-client_src_lib.rs
index 93af2145e641..ebcd054cc892 100644
--- a/misc/codex/files/patch-codex-rs_app-server-client_src_lib.rs
+++ b/misc/codex/files/patch-codex-rs_app-server-client_src_lib.rs
@@ -1,6 +1,6 @@
---- codex-rs/app-server-client/src/lib.rs.orig	2026-09-13 18:14:32 UTC
+--- codex-rs/app-server-client/src/lib.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/app-server-client/src/lib.rs
-@@ -16,6 +16,8 @@
+@@ -20,6 +20,8 @@
  //! runtime remain bounded; the local consumer event queue is unbounded so
  //! unread notifications cannot prevent request responses from being delivered.
  
@@ -8,4 +8,4 @@
 +
  mod path;
  mod remote;
- 
+ mod server_request;
diff --git a/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch.rs b/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch.rs
index e85265b772b5..5848409c4514 100644
--- a/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch.rs
+++ b/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch.rs
@@ -1,4 +1,4 @@
---- codex-rs/core/src/tools/runtimes/apply_patch.rs.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/core/src/tools/runtimes/apply_patch.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/core/src/tools/runtimes/apply_patch.rs
 @@ -5,6 +5,7 @@ use crate::session::turn_context::TurnEnvironment;
  //! sandboxing enforced by the explicit filesystem sandbox context.
@@ -8,7 +8,7 @@
  use crate::tools::sandboxing::Approvable;
  use crate::tools::sandboxing::ApprovalAction;
  use crate::tools::sandboxing::ExecApprovalRequirement;
-@@ -174,6 +175,7 @@ impl ToolRuntime<ApplyPatchRequest, ApplyPatchRuntimeO
+@@ -176,6 +177,7 @@ impl ToolRuntime<ApplyPatchRequest, ApplyPatchRuntimeO
          let started_at = Instant::now();
          let fs = req.turn_environment.environment.get_filesystem();
          let sandbox = Self::file_system_sandbox_context_for_attempt(req, attempt);
@@ -16,7 +16,7 @@
          let mut stdout = Vec::new();
          let mut stderr = Vec::new();
          let result = codex_apply_patch::apply_patch_with_options(
-@@ -192,7 +194,7 @@ impl ToolRuntime<ApplyPatchRequest, ApplyPatchRuntimeO
+@@ -194,7 +196,7 @@ impl ToolRuntime<ApplyPatchRequest, ApplyPatchRuntimeO
              &mut stdout,
              &mut stderr,
              fs.as_ref(),
diff --git a/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch__tests.rs b/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch__tests.rs
index aa5ec6755e3a..859901876f43 100644
--- a/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch__tests.rs
+++ b/misc/codex/files/patch-codex-rs_core_src_tools_runtimes_apply__patch__tests.rs
@@ -1,6 +1,6 @@
---- codex-rs/core/src/tools/runtimes/apply_patch_tests.rs.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/core/src/tools/runtimes/apply_patch_tests.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/core/src/tools/runtimes/apply_patch_tests.rs
-@@ -48,6 +48,15 @@ fn test_turn_environment(environment_id: &str) -> crat
+@@ -49,6 +49,15 @@ fn test_turn_environment(environment_id: &str) -> crat
      )
  }
  
diff --git a/misc/codex/files/patch-codex-rs_core_tests_suite_remote__env.rs b/misc/codex/files/patch-codex-rs_core_tests_suite_remote__env.rs
index d84f13580654..6995bb63b2d5 100644
--- a/misc/codex/files/patch-codex-rs_core_tests_suite_remote__env.rs
+++ b/misc/codex/files/patch-codex-rs_core_tests_suite_remote__env.rs
@@ -1,6 +1,6 @@
---- codex-rs/core/tests/suite/remote_env.rs.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/core/tests/suite/remote_env.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/core/tests/suite/remote_env.rs
-@@ -385,7 +385,7 @@ async fn remote_test_env_exposes_target_shell_and_exec
+@@ -386,7 +386,7 @@ async fn remote_test_env_exposes_target_shell_and_exec
      // TODO(anp): Assert Wine-exec exposes a `C:\\...` cwd after model-visible paths preserve
      // target-native spelling instead of the Linux orchestrator's `/C:/...` representation.
      let expected_shell = match test_target_os() {
@@ -9,7 +9,7 @@
          TestTargetOs::Windows => "<shell>powershell</shell>",
          TestTargetOs::MacOs => unreachable!("remote test targets do not run macOS"),
      };
-@@ -407,7 +407,7 @@ async fn approved_remote_shell_runs_in_remote_cwd() ->
+@@ -408,7 +408,7 @@ async fn approved_remote_shell_runs_in_remote_cwd() ->
      skip_if_no_remote_env!(Ok(()));
  
      let (shell, command) = match test_target_os() {
@@ -18,7 +18,7 @@
              "bash",
              r#"case "$PWD" in /tmp/codex-core-test-cwd-*) ;; *) echo "unexpected cwd: $PWD" >&2; exit 1 ;; esac"#,
          ),
-@@ -528,7 +528,7 @@ async fn environment_permissions_follow_configuration_
+@@ -529,7 +529,7 @@ async fn environment_permissions_follow_configuration_
      );
  
      let (shell, command) = match test_target_os() {
diff --git a/misc/codex/files/patch-codex-rs_exec_src_main.rs b/misc/codex/files/patch-codex-rs_exec_src_main.rs
index 99aa1cdbad69..b40f704580de 100644
--- a/misc/codex/files/patch-codex-rs_exec_src_main.rs
+++ b/misc/codex/files/patch-codex-rs_exec_src_main.rs
@@ -1,6 +1,6 @@
---- codex-rs/exec/src/main.rs.orig	2026-09-13 10:30:38 UTC
+--- codex-rs/exec/src/main.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/exec/src/main.rs
-@@ -9,6 +9,9 @@
+@@ -13,6 +13,9 @@
  //!
  //! This allows us to ship a completely separate set of functionality as part
  //! of the `codex-exec` binary.
diff --git a/misc/codex/files/patch-codex-rs_features_src_lib.rs b/misc/codex/files/patch-codex-rs_features_src_lib.rs
index b6cbc7529cc0..109c0d825615 100644
--- a/misc/codex/files/patch-codex-rs_features_src_lib.rs
+++ b/misc/codex/files/patch-codex-rs_features_src_lib.rs
@@ -1,6 +1,6 @@
---- codex-rs/features/src/lib.rs.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/features/src/lib.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/features/src/lib.rs
-@@ -992,7 +992,8 @@ pub const FEATURES: &[FeatureSpec] = &[
+@@ -1029,7 +1029,8 @@ pub const FEATURES: &[FeatureSpec] = &[
          id: Feature::DaemonAutoStart,
          key: "daemon_auto_start",
          stage: Stage::Stable,
diff --git a/misc/codex/files/patch-codex-rs_tui_src_app_right__click__paste.rs b/misc/codex/files/patch-codex-rs_tui_src_app_right__click__paste.rs
index f4c759fcdba5..3941e3617c29 100644
--- a/misc/codex/files/patch-codex-rs_tui_src_app_right__click__paste.rs
+++ b/misc/codex/files/patch-codex-rs_tui_src_app_right__click__paste.rs
@@ -1,7 +1,7 @@
---- codex-rs/tui/src/app/right_click_paste.rs.orig	2026-10-07 05:10:14 UTC
+--- codex-rs/tui/src/app/right_click_paste.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/tui/src/app/right_click_paste.rs
-@@ -29,7 +29,7 @@ impl PasteEnvironment {
-     pub(super) fn detect() -> Self {
+@@ -32,7 +32,7 @@ impl PasteEnvironment {
+     pub(crate) fn detect() -> Self {
          Self {
              primary: crate::clipboard_copy::primary::available(),
 -            platform_default: cfg!(any(target_os = "windows", target_os = "linux")),
diff --git a/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy.rs b/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy.rs
index e905a7bf77d4..2b2a8d9bb0f6 100644
--- a/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy.rs
+++ b/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy.rs
@@ -1,15 +1,15 @@
---- codex-rs/tui/src/clipboard_copy.rs.orig	2026-10-08 16:56:07 UTC
+--- codex-rs/tui/src/clipboard_copy.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/tui/src/clipboard_copy.rs
 @@ -8,7 +8,7 @@
  //! suppress native copying. Both the host and attached client's clipboards may
- //! change. Outside tmux and SSH, use OSC 52 only if native copying fails.
+ //! change. Outside tmux, Herdr, and SSH, use OSC 52 only if native copying fails.
  //!
 -//! On Linux, X11 and some Wayland compositors require the process that wrote the
 +//! On Linux and FreeBSD, X11 and some Wayland compositors require the process that wrote the
  //! clipboard to keep its handle open. `ClipboardLease` wraps the `arboard::Clipboard`
  //! so the copy worker can retain it for the lifetime of the TUI. On other platforms the lease
  //! is always `None`.
-@@ -127,19 +127,19 @@ fn copy_to_clipboard(
+@@ -138,19 +138,19 @@ fn copy_to_clipboard(
  
  /// Keeps a platform clipboard owner alive when the backend requires one.
  ///
@@ -33,7 +33,7 @@
      fn native_linux(clipboard: arboard::Clipboard) -> Self {
          Self {
              _clipboard: Some(clipboard),
-@@ -149,7 +149,7 @@ impl ClipboardLease {
+@@ -160,7 +160,7 @@ impl ClipboardLease {
      #[cfg(test)]
      pub(crate) fn test() -> Self {
          Self {
@@ -42,7 +42,7 @@
              _clipboard: None,
          }
      }
-@@ -263,12 +263,12 @@ fn arboard_copy(
+@@ -279,12 +279,12 @@ fn arboard_copy(
          None => clipboard.set_text(text),
      }
      .map_err(|e| format!("failed to set clipboard text: {e}"))?;
diff --git a/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy_worker.rs b/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy_worker.rs
index ff6087905bc2..2203eef422b3 100644
--- a/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy_worker.rs
+++ b/misc/codex/files/patch-codex-rs_tui_src_clipboard__copy_worker.rs
@@ -1,6 +1,6 @@
---- codex-rs/tui/src/clipboard_copy/worker.rs.orig	2026-10-07 05:15:33 UTC
+--- codex-rs/tui/src/clipboard_copy/worker.rs.orig	2026-10-15 18:57:07 UTC
 +++ codex-rs/tui/src/clipboard_copy/worker.rs
-@@ -414,8 +414,8 @@ impl ClipboardWorker {
+@@ -433,8 +433,8 @@ impl ClipboardWorker {
                      }
                      frames.schedule_frame();
                  }
diff --git a/misc/codex/files/patch-codex-rs_tui_src_main.rs b/misc/codex/files/patch-codex-rs_tui_src_main.rs
deleted file mode 100644
index 9b6ee5faf4a3..000000000000
--- a/misc/codex/files/patch-codex-rs_tui_src_main.rs
+++ /dev/null
@@ -1,8 +0,0 @@
---- codex-rs/tui/src/main.rs.orig	2026-09-13 12:46:31 UTC
-+++ codex-rs/tui/src/main.rs
-@@ -1,3 +1,5 @@
-+#![recursion_limit = "256"]
-+
- use clap::Parser;
- use codex_arg0::Arg0DispatchPaths;
- use codex_arg0::arg0_dispatch_or_else;