switchroom 0.14.13 → 0.14.15

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.
@@ -49413,8 +49413,8 @@ var {
49413
49413
  } = import__.default;
49414
49414
 
49415
49415
  // src/build-info.ts
49416
- var VERSION = "0.14.13";
49417
- var COMMIT_SHA = "240594e9";
49416
+ var VERSION = "0.14.15";
49417
+ var COMMIT_SHA = "e0f95f64";
49418
49418
 
49419
49419
  // src/cli/agent.ts
49420
49420
  init_source();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.14.13",
3
+ "version": "0.14.15",
4
4
  "description": "Run Claude Code 24/7 on your Claude Pro/Max subscription over Telegram. Open-source alternative to OpenClaw and NanoClaw — no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,6 +26,21 @@
26
26
  # `src/agents/lifecycle.ts:attachAgent` expect — the contract is the
27
27
  # same one v0.6 systemd has always honored, just enforced inside the
28
28
  # container instead of by the host's user systemd manager.
29
+
30
+ {{#if handoffEnabled}}
31
+ # The telegram-plugin gateway reads SWITCHROOM_HANDOFF_SHOW_LINE to
32
+ # decide whether to prepend the visible "↩️ Picked up where we left
33
+ # off …" line on the first reply after a restart. It MUST be exported
34
+ # *before* the gateway is forked in the docker preamble below (and
35
+ # before the tmux re-exec), otherwise the gateway — the sole consumer —
36
+ # never inherits it and session_continuity.show_handoff_line:false
37
+ # silently no-ops on every docker agent. Living here, ahead of the
38
+ # runtime branch, covers docker (both the outer fork pass and the inner
39
+ # tmux pass) and the v0.6 non-docker path in one place. Gated on
40
+ # handoffEnabled so a handoff-disabled agent emits no handoff env at all.
41
+ export SWITCHROOM_HANDOFF_SHOW_LINE={{#if handoffShowLine}}true{{else}}false{{/if}}
42
+ {{/if}}
43
+
29
44
  if [ "$SWITCHROOM_RUNTIME" = "docker" ] && [ -z "$SWITCHROOM_DOCKER_TMUX_INNER" ]; then
30
45
  # Hoist TELEGRAM_STATE_DIR up here so the gateway daemon (forked
31
46
  # below) finds gateway.sock / gateway.pid.json / history.db at the
@@ -510,9 +525,8 @@ if [ ! -s "$HANDOFF_FILE" ]; then
510
525
  timeout 5 handoff-briefing.sh 2>/dev/null || true
511
526
  fi
512
527
  fi
513
- # Telegram plugin reads this to decide whether to prepend the visible
514
- # "↩️ Picked up where we left off <topic>" line on the first reply.
515
- export SWITCHROOM_HANDOFF_SHOW_LINE={{#if handoffShowLine}}true{{else}}false{{/if}}
528
+ # SWITCHROOM_HANDOFF_SHOW_LINE is exported near the top of this script
529
+ # (ahead of the docker preamble) so the gateway sidecar inherits it.
516
530
  APPEND_PROMPT={{#if systemPromptAppendShellQuoted}}{{{systemPromptAppendShellQuoted}}}{{else}}""{{/if}}
517
531
  # Inject .handoff-briefing.md first (assembled from live sources), then
518
532
  # .handoff.md (raw transcript tail from the Stop hook). If both