fix(extension): make tool cancellation cooperative (#89)

Tool cancellation is now cooperative end-to-end: the queue stays busy until compensation completes, cancellation is checked cooperatively across the pipeline, the fallback window is compensated too, and cleanup_failed is surfaced explicitly. Includes a gated delayed-compensation E2E test.
This commit is contained in:
NianJiu
2026-08-13 17:31:23 +08:00
committed by GitHub
parent 37fbaacc94
commit 4549ed0892
20 changed files with 904 additions and 214 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ export type RpcErrorReason =
| "tab_not_active"
| "restricted_tab_url"
| "borrow_conflict"
| "screenshot_capture_failed";
| "screenshot_capture_failed"
| "cleanup_failed";
export interface RpcErrorData {
reason?: RpcErrorReason;