switchroom 0.12.15 → 0.12.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.12.15",
3
+ "version": "0.12.17",
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": {
@@ -616,11 +616,18 @@ function forwardSessionEvent(ev: SessionEvent): void {
616
616
  chatId = ev.chatId ?? ''
617
617
  threadId = ev.threadId != null ? Number(ev.threadId) : undefined
618
618
  }
619
+ // Forward the tailer's already-attached file (its tracked
620
+ // currentFile) so the gateway's proactive-compaction check reads
621
+ // occupancy from the exact session JSONL the tailer is on, never an
622
+ // independent findActiveSessionFile re-scan (which can transiently
623
+ // resolve a sub-agent transcript or a stale rotated file).
624
+ const activeFile = sessionTailHandle?.getActiveFile() ?? null
619
625
  ipc.sendSessionEvent({
620
626
  type: 'session_event',
621
627
  event: ev as unknown as Record<string, unknown>,
622
628
  chatId,
623
629
  ...(threadId != null ? { threadId } : {}),
630
+ ...(activeFile ? { activeFile } : {}),
624
631
  })
625
632
  }
626
633