Skip to content

fix(skills): make weather workflow Windows-safe - #5341

Open
mercael91 wants to merge 1 commit into
HKUDS:mainfrom
mercael91:fix/windows-safe-weather-curl
Open

fix(skills): make weather workflow Windows-safe#5341
mercael91 wants to merge 1 commit into
HKUDS:mainfrom
mercael91:fix/windows-safe-weather-curl

Conversation

@mercael91

Copy link
Copy Markdown

Problem

On Windows PowerShell, bare curl may resolve to the Invoke-WebRequest alias instead of the native cURL executable.

The weather skill previously used bare curl in its examples. This could cause the first weather command to fail, requiring the agent to analyze the error and retry with curl.exe.

Closes #5303

Changes

  • Add platform notes documenting Windows PowerShell vs macOS/Linux difference
  • Use explicit HTTPS URLs for wttr.in requests
  • Add single ?1&m request for today's weather to avoid redundant calls
  • Use cross-platform output path (weather.png instead of /tmp/weather.png)
  • Add regression test for the weather skill guidance

Testing

  • pytest tests/agent/test_builtin_weather_skill.py -v — 1 passed
  • Manually verified the weather workflow on Windows PowerShell

On Windows PowerShell, bare `curl` may resolve to the `Invoke-WebRequest`
alias instead of the native cURL executable. This causes the first weather
command to fail, requiring the agent to retry with `curl.exe`.

Changes:
- Add platform notes documenting Windows PowerShell vs macOS/Linux difference
- Use explicit HTTPS URLs for wttr.in requests
- Add single `?1&m` request for today's weather to avoid redundant calls
- Use cross-platform output path (weather.png instead of /tmp/weather.png)
- Add regression test for the weather skill guidance

Signed-off-by: mercael <mercael91@gmail.com>
@chengyongru chengyongru added priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. bug Something isn't working fix test conflict labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working conflict fix priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants