Developer Builds Telegram Bot to Fix Claude Code's Silent Blocking Problem
A developer working across multiple parallel projects noticed significant time being lost when Claude Code sessions stalled waiting for input, with no way to know without manually checking each window. To solve this, they built an open-source tool called claude-code-notify that sends Telegram alerts when a Claude Code session finishes a task or needs user approval. An initial attempt using Claude Code's built-in Stop hook failed because background Bash commands return an immediate acknowledgment rather than a completion signal, causing premature notifications. The developer resolved this by tracking each background task's tool_use_id in the session transcript and only sending a notification once every launched task had a confirmed result. The project also exposed gaps in Claude Code's native SubagentStop hook, which the developer noted are open issues in the platform itself rather than problems specific to their setup.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in