polygram 0.8.0-rc.27 → 0.8.0-rc.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.8.0-rc.27",
4
+ "version": "0.8.0-rc.28",
5
5
  "description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands and a history skill.",
6
6
  "keywords": [
7
7
  "telegram",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.8.0-rc.27",
3
+ "version": "0.8.0-rc.28",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc-client.js",
6
6
  "bin": {
package/polygram.js CHANGED
@@ -3730,6 +3730,18 @@ async function main() {
3730
3730
  };
3731
3731
  process.on('SIGINT', shutdown);
3732
3732
  process.on('SIGTERM', shutdown);
3733
+ // rc.28: also catch SIGHUP. The shumabit deploy path runs polygram
3734
+ // inside `tmux new-session`; on `launchctl kickstart -k` the
3735
+ // shumabit-start launcher does `tmux kill-session -t polygram`
3736
+ // FIRST, then `pkill polygram --bot` 1s later. tmux kill-session
3737
+ // closes polygram's controlling pty → SIGHUP, not SIGTERM. Without
3738
+ // this listener, the shutdown drain never fires; in-flight rows
3739
+ // never flip to 'replay-pending'; boot-replay still picks them up
3740
+ // via the 'dispatched' status (3-min window), but anything that's
3741
+ // been mid-tool-use longer than the replayWindowMs gets silently
3742
+ // dropped. Surface symptom: bot stops responding after deploy on
3743
+ // long agent runs (the §7.4 incident).
3744
+ process.on('SIGHUP', shutdown);
3733
3745
 
3734
3746
  try {
3735
3747
  // Fresh per-boot secret, persisted 0600 for same-UID readers (cron