openclaw-pincer 0.2.2 → 0.2.3
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/dist/src/channel.js +9 -0
- package/package.json +1 -1
- package/src/channel.ts +7 -0
package/dist/src/channel.js
CHANGED
|
@@ -202,6 +202,15 @@ export const pincerChannel = {
|
|
|
202
202
|
}
|
|
203
203
|
startDmPoller({ config, ctx, signal, pollMs });
|
|
204
204
|
console.log(`[pincer] Started. Monitoring ${(config.rooms ?? []).length} room(s) + DMs as agent ${config.agentId}`);
|
|
205
|
+
// Keep startAccount alive until the signal fires — OpenClaw treats immediate
|
|
206
|
+
// return as a crash and schedules auto-restart.
|
|
207
|
+
await new Promise((resolve) => {
|
|
208
|
+
if (signal.aborted) {
|
|
209
|
+
resolve();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
signal.addEventListener("abort", () => resolve(), { once: true });
|
|
213
|
+
});
|
|
205
214
|
},
|
|
206
215
|
},
|
|
207
216
|
outbound: {
|
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -278,6 +278,13 @@ export const pincerChannel = {
|
|
|
278
278
|
console.log(
|
|
279
279
|
`[pincer] Started. Monitoring ${(config.rooms ?? []).length} room(s) + DMs as agent ${config.agentId}`
|
|
280
280
|
);
|
|
281
|
+
|
|
282
|
+
// Keep startAccount alive until the signal fires — OpenClaw treats immediate
|
|
283
|
+
// return as a crash and schedules auto-restart.
|
|
284
|
+
await new Promise<void>((resolve) => {
|
|
285
|
+
if (signal.aborted) { resolve(); return; }
|
|
286
|
+
signal.addEventListener("abort", () => resolve(), { once: true });
|
|
287
|
+
});
|
|
281
288
|
},
|
|
282
289
|
},
|
|
283
290
|
outbound: {
|