Windows: Plugin bash hooks fail on paths with spaces (Google Drive)

Resolved 💬 3 comments Opened Jan 24, 2026 by D1g1t4lWaveRider Closed Jan 29, 2026

Environment

  • Claude Code version: 2.1.19
  • OS: Windows 11
  • Shell: Git Bash
  • Plugin: superpowers@claude-plugins-official v4.1.1

Description

Plugin bash hooks fail to execute when the working directory contains spaces or is on a network drive (Google Drive).

Error Message

SessionStart:resume hook error: Failed with non-blocking status code: wsl: Failed to translate 'G:\Gedeelde drives\Documenten\Onroerend goed\Utrecht DND\VvE'
/bin/bash: C:UsersAlexander.claudepluginscacheclaude-plugins-officialsuperpowers4.1.1/hooks/session-start.sh: No such file or directory

Analysis

Two issues occur:

  1. WSL path translation fails: WSL cannot translate Windows paths with spaces and special characters to Linux paths
  2. Script path is corrupted: The path to the hook script loses its backslashes entirely (C:UsersAlexander... instead of C:\Users\Alexander\...)

Expected Behavior

Hooks should either:

  • Execute correctly on Windows paths with spaces
  • Fall back gracefully without attempting WSL translation for incompatible paths
  • Use native Windows bash (Git Bash) instead of WSL when available

Workaround

The error is non-blocking, so sessions continue to work. However, the hook's intended context injection may not occur.

Steps to Reproduce

  1. Install superpowers plugin on Windows
  2. Open Claude Code in a directory with spaces in the path (e.g., Google Drive folder)
  3. Observe the SessionStart hook error

---

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗