You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Cancel abandoned embedding requests for all indexing providers #37
Stopping indexing cancels embedding requests only for the OpenAI implementation. Requests through other providers can continue after their results are no longer needed, potentially consuming quota and time.
Context
Deferred finding 🟡5 from PR #34: #34, which addresses #23. Source reviewed: 8c38f1c.
The shared embedding contract accepts cancellation, but the other implementations do not accept or forward it. This includes OpenAI-compatible requests and their Gemini, Mistral, and Vercel gateway wrappers, plus Ollama, Bedrock, and OpenRouter. Protection against writes from abandoned attempts remains; this follow-up concerns wasted requests, not demonstrated index corruption.
Acceptance criteria
Carry cancellation through every supported provider and wrapper to the underlying request where supported.
Stop scheduling new batches and retries after cancellation.
Treat a cancelled request as cancellation rather than a provider failure.
Document any provider limitation without promising that local cancellation reverses provider-side billing.
Add provider-focused tests for already-cancelled and in-flight requests and wrapper forwarding.
Constraints/Preferences
Preserve protection against stale writes. Live quota consumption was not measured during filing.
Activity