From 7a091b0fe21e25ad0c2a6816e41ba45bbe232ef0 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 18 May 2026 19:53:51 -0700 Subject: [PATCH] Classify invalid thread settings as bad requests --- codex-rs/core/src/session/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/session/handlers.rs b/codex-rs/core/src/session/handlers.rs index 5f1b0f4ba9..3d57bd7074 100644 --- a/codex-rs/core/src/session/handlers.rs +++ b/codex-rs/core/src/session/handlers.rs @@ -103,7 +103,7 @@ pub async fn update_thread_settings( Ok(()) => thread_settings_applied_event(sess).await, Err(err) => EventMsg::Error(ErrorEvent { message: format!("invalid thread settings override: {err}"), - codex_error_info: Some(CodexErrorInfo::Other), + codex_error_info: Some(CodexErrorInfo::BadRequest), }), }; sess.send_event_raw(Event { id: sub_id, msg }).await;