Classify invalid thread settings as bad requests

This commit is contained in:
Eric Traut
2026-05-18 19:53:51 -07:00
parent 87c91db57f
commit 7a091b0fe2

View File

@@ -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;