polygram 0.12.2 → 0.12.3

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.
@@ -2132,6 +2132,22 @@ class CliProcess extends Process {
2132
2132
  backend: this.backend,
2133
2133
  });
2134
2134
  this._logEvent('turn-timeout', { turnTimeoutMs, reason });
2135
+ // 0.12.3 wedge characterization (docs/0.13-turn-wedge-autorecovery-spec.md):
2136
+ // a zero-reply turn hit the ceiling = claude wedged (no hooks AND no
2137
+ // "esc to interrupt" the whole window). Capture the TUI pane tail + busy
2138
+ // flags to learn WHAT state claude is stuck in (a tool, an unrecognized
2139
+ // prompt, the idle ❯, blank). Fire-and-forget: never blocks or changes
2140
+ // the kill path; the tmux session is still alive at this point.
2141
+ this.probeBusyState().then((probe) => {
2142
+ this._logEvent('turn-timeout-pane', {
2143
+ reason,
2144
+ streaming: probe.streaming,
2145
+ background_shell: probe.backgroundShell,
2146
+ shell_count: probe.shellCount,
2147
+ captured: probe.captured,
2148
+ pane_tail: probe.paneTail,
2149
+ });
2150
+ }).catch(() => { /* telemetry best-effort — never throws into the kill path */ });
2135
2151
  this.emit('idle');
2136
2152
  const err = new Error(`turn timeout (${turnTimeoutMs}ms, reason=${reason})`);
2137
2153
  err.code = 'TURN_TIMEOUT';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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": {