Improve in-flight cancel latency via run abort signal propagation

This commit is contained in:
William Valentin
2026-02-19 12:24:39 -08:00
parent 290303c14e
commit 2c3a00f6dd
12 changed files with 148 additions and 20 deletions
+21
View File
@@ -3,6 +3,27 @@
"updated_at": "2026-02-19",
"description": "Tracks the status of all Flynn plans and implementation phases",
"plans": {
"faster-inflight-cancel-propagation": {
"status": "completed",
"date": "2026-02-19",
"updated": "2026-02-19",
"summary": "Reduced cancellation latency by wiring a run-level AbortSignal from NativeAgent into model and tool execution. `agent.cancel`/`/stop` now abort in-flight model/tool awaits immediately for signal-aware providers/tools instead of waiting for timeout/safe-point boundaries.",
"files_modified": [
"src/backends/native/agent.ts",
"src/tools/executor.ts",
"src/models/types.ts",
"src/models/openai.ts",
"src/models/github.ts",
"src/models/anthropic.ts",
"src/models/bedrock.ts",
"src/models/local/llamacpp.ts",
"src/backends/native/agent.test.ts",
"docs/api/PROTOCOL.md",
"docs/api/TOOLS.md",
"docs/plans/state.json"
],
"test_status": "pnpm test:run src/backends/native/agent.test.ts src/tools/executor.test.ts src/models/router.test.ts src/gateway/handlers/agent.test.ts + pnpm typecheck passing"
},
"makefile-skills-convenience-targets": {
"status": "completed",
"date": "2026-02-17",