Skip to content

fix(tirith): add Windows platform support for auto-install - #26132

Closed
ruguoba wants to merge 1 commit into
NousResearch:mainfrom
ruguoba:fix/tirith-windows-support
Closed

ruguoba wants to merge 1 commit into
NousResearch:mainfrom
ruguoba:fix/tirith-windows-support

Conversation

@ruguoba

@ruguoba ruguoba commented May 15, 2026

Copy link
Copy Markdown

Summary

Fixes #26044

The Tirith security scanner auto-install was failing on Windows with unsupported_platform error because _detect_target() only handled Darwin and Linux/Android.

Changes

  1. Platform detection: Added Windows support in _detect_target() returning x86_64-pc-windows-msvc
  2. Archive format: Windows releases use .zip format (vs .tar.gz for Linux/macOS)
  3. Binary name: Use tirith.exe on Windows

Testing

  • Verified that platform.system() returns 'Windows' on Windows
  • Verified that platform.machine() returns 'AMD64' or 'x86_64' on Windows
  • Tested archive extraction logic with both .zip and .tar.gz formats

Notes

  • Only x86_64 Windows is supported (no ARM64 Windows builds available in tirith releases)
  • The fix maintains backward compatibility with existing Linux/macOS installations

- Add Windows detection in _detect_target() returning x86_64-pc-windows-msvc
- Handle .zip archive format for Windows releases (vs .tar.gz for Linux/macOS)
- Use tirith.exe binary name on Windows
- Fixes #26044
@alt-glitch alt-glitch added type/bug Something isn't working comp/tools Tool registry, model_tools, toolsets tool/terminal Terminal execution and process management P3 Low — cosmetic, nice to have labels May 15, 2026
@alt-glitch

Copy link
Copy Markdown
Contributor

Duplicate of #26068 — competing fix for the same Tirith Windows/MSYS auto-install issue (#26044). Base Windows support was already merged in #23050; #26068 handles the MSYS/git-bash edge case.

@ruguoba

ruguoba commented May 15, 2026

Copy link
Copy Markdown
Author

Closing as there are duplicate PRs addressing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have tool/terminal Terminal execution and process management type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Tirith security scanner fails to install on Windows (MSYS/git-bash) - "unsupported_platform"

2 participants