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:
- Create a project directory with underscores in the name
- Run
afk-code telegram and afk-code run -- claude
- 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
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), butafk-codemonitors the path with underscores preserved (-home-user-IdeaProjects-example_project), resulting inSnapshot: 0 existing JSONL filesand no Telegram notifications being sent.Workaround: Create a symlink from the underscore path to the hyphen path.
Steps to reproduce:
afk-code telegramandafk-code run -- claudeEnvironment: