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.
- package/package.json +1 -1
- package/server.js +3 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -201,7 +201,9 @@ function maybeAttachHookSession(data, source) {
|
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
|
|
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
|
}
|