Skip to content

feat: add Windows support to setup#415

Open
arnml wants to merge 1 commit intoqwibitai:mainfrom
arnml:feat/windows-support
Open

feat: add Windows support to setup#415
arnml wants to merge 1 commit intoqwibitai:mainfrom
arnml:feat/windows-support

Conversation

@arnml
Copy link
Copy Markdown

@arnml arnml commented Feb 23, 2026

Summary

  • setup/platform.ts: add 'windows' platform type and 'task-scheduler' service manager; fix commandExists() to use where on Windows; fix getNodePath() to use where node; fix openBrowser() for Windows
  • setup/whatsapp-auth.ts: fix spawn('npx', ...) with shell: true on Windows; replace shell-subprocess QR SVG generation with direct qrcode import (avoids cmd.exe quote mangling)
  • setup/service.ts: add setupWindows() — generates nanoclaw-ctl.ps1 and start/stop/restart.bat control scripts, starts the service, reports status; replaces unsupported_platform exit on Windows
  • README.md: add Windows to requirements and FAQ

Windows-specific behaviour

On Windows, the service step generates three files in the project root:

  • nanoclaw-ctl.ps1 — PowerShell controller (start, stop, restart, status)
  • start.bat / stop.bat / restart.bat — convenience wrappers

No Task Scheduler registration is done automatically — users run start.bat manually (or add it to startup themselves).

Test plan

  • Run /setup on a Windows machine with Docker Desktop installed
  • Verify WhatsApp QR code renders correctly in the browser
  • Verify start.bat / stop.bat / restart.bat work as expected
  • Verify macOS and Linux setup paths are unaffected

🤖 Generated with Claude Code

- platform.ts: add 'windows' platform type and 'task-scheduler' service
  manager; fix commandExists() to use `where` on Windows; fix
  getNodePath() to use `where node`; fix openBrowser() for Windows
- whatsapp-auth.ts: fix spawn('npx') with shell:true on Windows; replace
  shell-subprocess QR SVG generation with direct qrcode import to avoid
  cmd.exe quote mangling
- service.ts: add setupWindows() — generates nanoclaw-ctl.ps1 and
  start/stop/restart.bat control scripts, starts the service, reports
  status; replaces unsupported_platform exit on Windows
- README.md: add Windows to requirements and FAQ

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Andy-NanoClaw-AI Andy-NanoClaw-AI added PR: Feature New feature or enhancement Status: Blocked Blocked by merge conflicts or dependencies Status: Needs Review Ready for maintainer review and removed Status: Blocked Blocked by merge conflicts or dependencies Status: Needs Review Ready for maintainer review labels Mar 5, 2026
@Andy-NanoClaw-AI Andy-NanoClaw-AI added Status: Needs Review Ready for maintainer review and removed Status: Blocked Blocked by merge conflicts or dependencies labels Mar 10, 2026
@Andy-NanoClaw-AI Andy-NanoClaw-AI added Status: Blocked Blocked by merge conflicts or dependencies and removed Status: Needs Review Ready for maintainer review labels Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Feature New feature or enhancement Status: Blocked Blocked by merge conflicts or dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants