Skip to content

The claude project watcher failed to start when the project directory name contained an underscore #153

@patrick-fu

Description

@patrick-fu

I found that I never receive messages from the terminal on my mobile device in some project.

Then I checked happy's log and found that the file path monitored by the watcher was incorrect.

My project folder is ~/dev/ai_follow, but the claude project jsonl file is under /Users/patrickfu/.claude/projects/-Users-patrickfu-dev-ai-follow ( Notice that Claude Code replaced the underscore with dash)

Then I found that the path happy was trying to search for was incorrect, it using underscores.

[21:21:41.506] [FILE_WATCHER] Starting watcher for /Users/patrickfu/.claude/projects/-Users-patrickfu-dev-ai_follow/3c273623-966d-4385-9acc-f73f5424e27e.jsonl 
[21:21:41.507] [FILE_WATCHER] Watch error: ENOENT: no such file or directory, watch '/Users/patrickfu/.claude/projects/-Users-patrickfu-dev-ai_follow/3c273623-966d-4385-9acc-f73f5424e27e.jsonl', restarting watcher in a second 

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