From 9df5ab50504b7d4cc9e4ffb14d780edb0da7c06e Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 10:33:57 +0000 Subject: [PATCH] tools: Make time-zones more case-insensitive (#55288) (cherry-pick to preview) (#55410) Cherry-pick of #55288 to preview ---- 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 Co-authored-by: Oleksiy Syvokon --- 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, }