@@ -249,7 +249,6 @@ use crate::turn_diff_tracker::TurnDiffTracker;
249249use crate :: unified_exec:: UnifiedExecProcessManager ;
250250use crate :: util:: backoff;
251251use crate :: windows_sandbox:: WindowsSandboxLevelExt ;
252- use crate :: zsh_exec_bridge:: ZshExecBridge ;
253252use codex_async_utils:: OrCancelExt ;
254253use codex_otel:: OtelManager ;
255254use codex_otel:: TelemetryAuthMode ;
@@ -1208,7 +1207,8 @@ impl Session {
12081207 "zsh fork feature enabled, but `zsh_path` is not configured; set `zsh_path` in config.toml"
12091208 )
12101209 } ) ?;
1211- shell:: get_shell ( shell:: ShellType :: Zsh , Some ( zsh_path) ) . ok_or_else ( || {
1210+ let zsh_path = zsh_path. to_path_buf ( ) ;
1211+ shell:: get_shell ( shell:: ShellType :: Zsh , Some ( & zsh_path) ) . ok_or_else ( || {
12121212 anyhow:: anyhow!(
12131213 "zsh fork feature enabled, but zsh_path `{}` is not usable; set `zsh_path` to a valid zsh executable" ,
12141214 zsh_path. display( )
@@ -1287,12 +1287,6 @@ impl Session {
12871287 ( None , None )
12881288 } ;
12891289
1290- let zsh_exec_bridge =
1291- ZshExecBridge :: new ( config. zsh_path . clone ( ) , config. codex_home . clone ( ) ) ;
1292- zsh_exec_bridge
1293- . initialize_for_session ( & conversation_id. to_string ( ) )
1294- . await ;
1295-
12961290 let services = SessionServices {
12971291 // Initialize the MCP connection manager with an uninitialized
12981292 // instance. It will be replaced with one created via
@@ -1308,7 +1302,7 @@ impl Session {
13081302 unified_exec_manager : UnifiedExecProcessManager :: new (
13091303 config. background_terminal_max_timeout ,
13101304 ) ,
1311- zsh_exec_bridge ,
1305+ shell_zsh_path : config . zsh_path . clone ( ) ,
13121306 analytics_events_client : AnalyticsEventsClient :: new (
13131307 Arc :: clone ( & config) ,
13141308 Arc :: clone ( & auth_manager) ,
@@ -4227,7 +4221,6 @@ mod handlers {
42274221 . unified_exec_manager
42284222 . terminate_all_processes ( )
42294223 . await ;
4230- sess. services . zsh_exec_bridge . shutdown ( ) . await ;
42314224 info ! ( "Shutting down Codex instance" ) ;
42324225 let history = sess. clone_history ( ) . await ;
42334226 let turn_count = history
@@ -7895,7 +7888,7 @@ mod tests {
78957888 unified_exec_manager : UnifiedExecProcessManager :: new (
78967889 config. background_terminal_max_timeout ,
78977890 ) ,
7898- zsh_exec_bridge : ZshExecBridge :: default ( ) ,
7891+ shell_zsh_path : None ,
78997892 analytics_events_client : AnalyticsEventsClient :: new (
79007893 Arc :: clone ( & config) ,
79017894 Arc :: clone ( & auth_manager) ,
@@ -8048,7 +8041,7 @@ mod tests {
80488041 unified_exec_manager : UnifiedExecProcessManager :: new (
80498042 config. background_terminal_max_timeout ,
80508043 ) ,
8051- zsh_exec_bridge : ZshExecBridge :: default ( ) ,
8044+ shell_zsh_path : None ,
80528045 analytics_events_client : AnalyticsEventsClient :: new (
80538046 Arc :: clone ( & config) ,
80548047 Arc :: clone ( & auth_manager) ,
0 commit comments