@myagentroam/node 0.10.60 → 0.10.62

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.
@@ -249,7 +249,21 @@ export class ClaudeCodeRunner extends AbstractRunner {
249
249
  }
250
250
  return deduplicateDirectSessions(sessions);
251
251
  }
252
- stop() { }
252
+ stop() {
253
+ for (const approval of this.execution.approvals.values()) {
254
+ clearTimeout(approval.timer);
255
+ approval.resolve('REJECTED');
256
+ }
257
+ this.execution.approvals.clear();
258
+ for (const pending of this.execution.userInputs.values()) {
259
+ clearTimeout(pending.timer);
260
+ pending.reject('NODE_STOPPED');
261
+ }
262
+ this.execution.userInputs.clear();
263
+ for (const run of this.execution.runs.values())
264
+ run.handle.cancel();
265
+ this.execution.runs.clear();
266
+ }
253
267
  start(input) {
254
268
  return this.client.start(input);
255
269
  }