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 <oleksiy@zed.dev>
This commit is contained in:
zed-zippy[bot] 2026-05-01 10:33:57 +00:00 committed by GitHub
parent 408ed01443
commit 9df5ab5050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
}