feat(gateway): wire safe-point runtime cancellation for agent.cancel

This commit is contained in:
William Valentin
2026-02-13 08:51:14 -08:00
parent 9f81c01603
commit 46099664f0
7 changed files with 182 additions and 26 deletions
+10
View File
@@ -304,6 +304,16 @@ export class AgentOrchestrator {
this._agent.setOnToolUse(callback);
}
/** Request cancellation for the current primary-agent operation. */
cancel(): void {
this._agent.cancel();
}
/** Whether the primary agent currently has an in-flight operation. */
isCancellable(): boolean {
return this._agent.isCancellable();
}
// ── Usage & config accessors ──────────────────────────────────────
/**