diff options
| author | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 10:54:33 -0700 |
|---|---|---|
| committer | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 10:54:33 -0700 |
| commit | 2aa90a83876b548c5db2e3ecae22d93088e6e0e5 (patch) | |
| tree | 871257f7dc70e6b19c3095931dd84d033cdd6a17 /plugins/plugin-dev/skills/plugin-settings | |
| parent | 90accf6fd2008fe0ee9578ebc088740c3a754d58 (diff) | |
telegram: exit when Claude Code closes the connectionkenneth/telegram-shutdown
When the MCP stdio transport closes, the bot kept polling Telegram as
a zombie process — holding the token and causing 409 Conflict for the
next session.
- Listen for stdin end/close and SIGTERM/SIGINT -> bot.stop() + exit
- Force-exit after 2s if bot.stop() stalls on the long-poll timeout
- unref the approval-check interval so it doesn't keep us alive
Fixes #793, partial #788 (issue 3)
Diffstat (limited to 'plugins/plugin-dev/skills/plugin-settings')
0 files changed, 0 insertions, 0 deletions
