claude-remote 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-remote",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Remote control bridge for Claude Code REPL - drive from phone/WebUI",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -201,7 +201,9 @@ function maybeAttachHookSession(data, source) {
201
201
  return;
202
202
  }
203
203
 
204
- if (currentSessionId && currentSessionId !== target.sessionId && !expectingSwitch) {
204
+ // session-start is authoritative always allow it to switch sessions.
205
+ // pre-tool-use is opportunistic — only accept if expecting a switch.
206
+ if (currentSessionId && currentSessionId !== target.sessionId && !expectingSwitch && source !== 'session-start') {
205
207
  log(`Ignored hook session from ${source}: ${target.sessionId} (current=${currentSessionId})`);
206
208
  return;
207
209
  }