Skip to content

[Bug] Windows: statusline world-root walk-up loops forever #102

Open

Description

@KateMareeG

Description

alive-statusline.sh finds the world root by walking up from cwd:

while [ "$DIR" != "/" ]; do
  ...
  DIR="$(dirname "$DIR")"
done

On native Windows (Git Bash / MINGW64), dirname never returns /. It bottoms out at C: for a C:/... path and at . for a C:\... path. Claude Code passes cwd as C:/path/to/world, so the loop never ends: it pegs a core and the statusline never renders. Traced with a realistic JSON payload on stdin: 20s timeout, exit 124, no output.

The script already detects Windows for icon selection, so the platform is known at that point. The walk-up just has no fixed-point guard. Present in 3.2.2 and still present in 3.2.3 (line 86).

Local patch, verified (exits 0, detects a world containing .alive/, reports "no world detected" correctly when there is none):

_PARENT="$(dirname "$DIR")"
[ "$_PARENT" = "$DIR" ] && break
DIR="$_PARENT"

Each plugin update overwrites the patched copies, so it has to be re-applied by hand.

Expected Behaviour

The walk-up should stop at the filesystem root on every platform. A guard that breaks when dirname stops changing the path works on Windows, macOS and Linux alike.

System

  • Plugin: 3.2.3 (also reproduced on 3.2.2)
  • Engine: claude-opus-5-5
  • OS: MINGW64_NT-10.0-26200
  • Context: 19%
  • Session: ~837min

Sent via /alive:feedback

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions