@radnine/claude-session-daemon 0.6.6 → 0.6.7

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": "@radnine/claude-session-daemon",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Node.js daemon for managing Claude CLI sessions",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -635,7 +635,7 @@ class ActionCableClient extends BaseConnection {
635
635
  this._logger.info('Received session_activate', { sessionId, userId, claudeSessionId, resetGit });
636
636
 
637
637
  try {
638
- await this._daemon.activateSession(sessionId, {
638
+ const proc = await this._daemon.activateSession(sessionId, {
639
639
  workingDir: this._config.workingDir,
640
640
  claudeSessionId,
641
641
  resetGit,
@@ -644,6 +644,10 @@ class ActionCableClient extends BaseConnection {
644
644
  this.sendDaemonMessage({
645
645
  type: 'session_activated',
646
646
  session_id: sessionId,
647
+ // Report the actual Claude CLI session ID back to Rails so it can be
648
+ // persisted. Without this, Rails has nothing to send on reconnect and
649
+ // the daemon spawns a fresh CLI — losing all conversation context.
650
+ claude_session_id: proc.claudeSessionId,
647
651
  stream_config: {
648
652
  buffer_mode: 'line',
649
653
  max_message_size: 8192,