@myagentroam/agent 0.15.8 → 0.15.9
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.
|
@@ -40,6 +40,7 @@ export class SessionExecution {
|
|
|
40
40
|
}
|
|
41
41
|
stopSteer() {
|
|
42
42
|
delete this.#bindings.steer;
|
|
43
|
+
this.#steerReady.resolve();
|
|
43
44
|
}
|
|
44
45
|
retireCompactRequests(reason) {
|
|
45
46
|
this.compactRequests.close(reason);
|
|
@@ -50,7 +51,6 @@ export class SessionExecution {
|
|
|
50
51
|
this.retireCompactRequests(reason);
|
|
51
52
|
delete this.#bindings.appendedMessages;
|
|
52
53
|
this.stopSteer();
|
|
53
|
-
this.#steerReady.resolve();
|
|
54
54
|
}
|
|
55
55
|
detachToolSources() {
|
|
56
56
|
delete this.#bindings.toolSources;
|
|
@@ -225,6 +225,8 @@ export class SessionExecution {
|
|
|
225
225
|
if (full.type === 'execution.completed') {
|
|
226
226
|
this.controller.signal.throwIfAborted();
|
|
227
227
|
this.completionAdmitted = true;
|
|
228
|
+
// Handled input never binds steer; keep existing receipts available until teardown.
|
|
229
|
+
this.#steerReady.resolve();
|
|
228
230
|
}
|
|
229
231
|
if (full.type === 'execution.completed' ||
|
|
230
232
|
full.type === 'execution.failed' ||
|
|
@@ -388,10 +390,12 @@ export class SessionExecution {
|
|
|
388
390
|
}
|
|
389
391
|
catch (error) {
|
|
390
392
|
failed = true;
|
|
393
|
+
// Cleanup can release steer callers that interrupt this execution on fallback.
|
|
394
|
+
const cancelled = this.controller.signal.aborted;
|
|
391
395
|
await input.beforeFailure(error);
|
|
392
396
|
input.endParent();
|
|
393
397
|
const finalAnswer = this.kind === 'compact' ? '' : (this.finalAnswer ?? '');
|
|
394
|
-
if (
|
|
398
|
+
if (cancelled) {
|
|
395
399
|
await input.emit({ type: 'execution.cancelled' }).catch(() => undefined);
|
|
396
400
|
return { executionId: this.executionId, status: 'cancelled', finalAnswer };
|
|
397
401
|
}
|