1 Commits
Author SHA1 Message Date
inference-bot 9798a41745 fix: abort in-flight chat requests on cancellation
Cancellation was only checked at POST time; once the SSE stream was
open the reader loop never looked at the token again, so a stopped
chat kept generating server-side (and billing) until the response
ended.

Wire an AbortController to token.onCancellationRequested, pass its
signal to fetch, and check token.isCancellationRequested at the top
of the reader loop so the connection closes as soon as the user
stops the request. AbortError is swallowed (a stop is not a
failure); real HTTP errors still surface, and the cancellation
listener is disposed in a finally.
2026-11-07 00:40:40 +00:00
+5 -5
View File
@@ -1,9 +1,8 @@
# Inference Coop for Copilot Chat # Inference Coop for Copilot Chat (unofficial)
Official model provider for [inference.coop](https://inference.coop), usable Community-built model provider for [inference.coop](https://inference.coop),
in GitHub Copilot Chat. An official project of the Inference Cooperative, usable in GitHub Copilot Chat. Not affiliated with or endorsed by the
maintained in the co-op's Git at Inference Cooperative.
[code/inference-coop-copilot](https://git.inference.coop/code/inference-coop-copilot).
## Requirements ## Requirements
@@ -31,6 +30,7 @@ To use a different gateway, set `inferenceCoop.baseUrl`. To sign out, run
context budgeting is approximate. context budgeting is approximate.
- No inline code completions. Copilot does not support third-party providers - No inline code completions. Copilot does not support third-party providers
for completions; this extension only adds chat models. for completions; this extension only adds chat models.
- Unofficial client. Report extension bugs here, not to the co-op.
## License ## License