Skip to content

[BUG] Cancel abandoned embedding requests for all indexing providers #37

Open

Description

@simurg79

Type

Bug

Problem / Value

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

  1. added
    bug
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions