From c499a95218fa123b2400636b2e3c4e2ed05c0610 Mon Sep 17 00:00:00 2001 From: Oleksiy Syvokon Date: Thu, 30 Apr 2026 12:15:36 +0300 Subject: [PATCH] tools: Make time-zones more case-insensitive (#55288) gpt-5.5 likes to call the `now` tool with upper-case "UTC", leading to this error: > Failed to receive tool input: tool input was not fully received Release Notes: - N/A --- crates/agent/src/tools/now_tool.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/agent/src/tools/now_tool.rs b/crates/agent/src/tools/now_tool.rs index 04aba44ff3a..9721c923b6e 100644 --- a/crates/agent/src/tools/now_tool.rs +++ b/crates/agent/src/tools/now_tool.rs @@ -13,8 +13,10 @@ use crate::{AgentTool, ToolCallEventStream, ToolInput}; #[schemars(inline)] pub enum Timezone { /// Use UTC for the datetime. + #[serde(alias = "UTC", alias = "Utc")] Utc, /// Use local time for the datetime. + #[serde(alias = "LOCAL", alias = "Local")] Local, }