@sjawhar/claude-envoy 5.12.3 → 5.12.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/.omp-plugin/plugin.json
CHANGED
package/dist/envoy-channel.js
CHANGED
|
@@ -62199,7 +62199,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
62199
62199
|
|
|
62200
62200
|
// package.json
|
|
62201
62201
|
var name2 = "@sjawhar/claude-envoy";
|
|
62202
|
-
var version2 = "5.12.
|
|
62202
|
+
var version2 = "5.12.4";
|
|
62203
62203
|
var legion = {
|
|
62204
62204
|
daemonApiVersion: 217
|
|
62205
62205
|
};
|
|
@@ -68260,6 +68260,8 @@ async function startChannelSession(options) {
|
|
|
68260
68260
|
const next = await readSessionHandoff(handoffFile);
|
|
68261
68261
|
if (next === undefined || next === identity.id)
|
|
68262
68262
|
return;
|
|
68263
|
+
if (connectionLost !== undefined)
|
|
68264
|
+
return;
|
|
68263
68265
|
const previous = identity.id;
|
|
68264
68266
|
const previousSubject = directSubject;
|
|
68265
68267
|
const nextSubject = legacyAgentSubject(next);
|
package/package.json
CHANGED
|
@@ -1701,6 +1701,16 @@ export async function startChannelSession(options: ChannelSessionOptions): Promi
|
|
|
1701
1701
|
* old one leaves the topic list before the first registration under it. Runs
|
|
1702
1702
|
* only inside `serialized`.
|
|
1703
1703
|
*
|
|
1704
|
+
* A `/clear` waits while the connection is closed for good and not yet replaced and set up
|
|
1705
|
+
* (`connectionLost`, which the replacement's own step in the chain clears, `reopenFor`): until
|
|
1706
|
+
* then the new id's relay can be neither moved to its credential nor subscribed, so the new id's
|
|
1707
|
+
* registration would be refused after the identity had already moved, and the handoff would end
|
|
1708
|
+
* there, half done and never reported. A heartbeat queued in the chain can run after the
|
|
1709
|
+
* replacement has connected and before that set-up. The check follows the read of the handoff
|
|
1710
|
+
* file: the connection can close for good, and its replacement connect, while that read is
|
|
1711
|
+
* awaited, and only a check after it sees the loss. The next heartbeat after the set-up adopts
|
|
1712
|
+
* the `/clear`.
|
|
1713
|
+
*
|
|
1704
1714
|
* The deregistration of the old id carries this process's client instance id, so the listener
|
|
1705
1715
|
* removes that entry only while it is still this instance's: a later process that resumed the
|
|
1706
1716
|
* old session id and registered it keeps its registration, and this handoff takes nothing
|
|
@@ -1710,6 +1720,7 @@ export async function startChannelSession(options: ChannelSessionOptions): Promi
|
|
|
1710
1720
|
if (handoffFile === undefined) return
|
|
1711
1721
|
const next = await readSessionHandoff(handoffFile)
|
|
1712
1722
|
if (next === undefined || next === identity.id) return
|
|
1723
|
+
if (connectionLost !== undefined) return
|
|
1713
1724
|
const previous = identity.id
|
|
1714
1725
|
const previousSubject = directSubject
|
|
1715
1726
|
const nextSubject = legacyAgentSubject(next)
|