Skip to content

Project directory with underscores not monitored correctly #4

@saitamanistan

Description

@saitamanistan

When the project directory name contains underscores (e.g. example_project), Claude Code stores the project under ~/.claude/projects/ with hyphens (-home-user-IdeaProjects-example-project), but afk-code monitors the path with underscores preserved (-home-user-IdeaProjects-example_project), resulting in Snapshot: 0 existing JSONL files and no Telegram notifications being sent.

Workaround: Create a symlink from the underscore path to the hyphen path.

rmdir ~/.claude/projects/-home-user-IdeaProjects-example_project
ln -s ~/.claude/projects/-home-user-IdeaProjects-example-project \
      ~/.claude/projects/-home-user-IdeaProjects-example_project

Steps to reproduce:

  1. Create a project directory with underscores in the name
  2. Run afk-code telegram and afk-code run -- claude
  3. Telegram receives no session updates

Environment:

  • OS: Ubuntu 25.10 (Questing)
  • Node.js: v20.19.4
  • afk-code: 0.3.1
  • Claude Code: 2.1.53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions