[GH-ISSUE #2426] [Issue]: 11-PROV-RUNTIME-embedding-transport rejects Claude Subscription embeddings #1187

Closed
opened 2026-10-21 05:28:31 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2426

Originally assigned to: @Xelvanis on GitHub.

Summary

Surface 11-PROV-RUNTIME-embedding-transport: Claude Subscription embedding requests are no longer rejected before transport. Refactor falls through to the OpenAI-compatible embedding path instead of returning the legacy guidance to configure a separate embedding connection.

Expected behavior

Claude Subscription connections should reject embedding requests with a clear unsupported-provider error and tell users to configure a separate embedding-capable connection.

Actual behavior

embed_text only rejects openai_chatgpt; claude_subscription does not have a rejection branch and falls through to embed_openai_compatible.

Steps to reproduce

  1. Configure or construct a Claude Subscription connection with provider claude_subscription.
  2. Call llm_embed or /api/sidecar/v1/embeddings with that connection and an embedding input.
  3. Observe that refactor attempts OpenAI-compatible embedding transport instead of rejecting the unsupported provider.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor parityscan for #2410 Batch 6
  • Run mode: Tauri desktop / remote runtime
  • OS + version: not runtime-tested
  • Node + pnpm versions: not runtime-tested
  • Rust version, if relevant: not runtime-tested
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: Claude Subscription embeddings

Logs, screenshots, or video

Static proof only:

  • Legacy explicitly rejected Claude Subscription embeddings: main:packages/server/src/services/llm/providers/claude-subscription.provider.ts:591.
  • Refactor provider dispatch rejects only openai_chatgpt, sends Google/Vertex to Google, Ollama to Ollama, and sends every other provider to OpenAI-compatible embeddings: src-tauri/src/commands/storage/prompts.rs:512.
  • llm_embed and /api/sidecar/v1/embeddings both route through the same refactor embedding resolver/transport: src-tauri/src/commands/storage/llm.rs:111, src-tauri/src/http_server.rs:1111.

Regression notes

Legacy behavior exists on main: Claude Subscription provider embed() throws a clear unsupported-provider error and separate-connection guidance. Refactor lacks equivalent rejection for claude_subscription.

Additional context

Source tracker: #2410.

Acceptance criteria:

  • 11-PROV-RUNTIME-embedding-transport rejects claude_subscription embedding requests before any provider HTTP call.
  • llm_embed and /api/sidecar/v1/embeddings surface clear separate-embedding-connection guidance for Claude Subscription.
  • ChatGPT local auth rejection and retired local-sidecar rejection continue to behave as they do now.
  • Focused Rust/unit proof covers Claude Subscription rejection.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2426 Originally assigned to: @Xelvanis on GitHub. ## Summary Surface `11-PROV-RUNTIME-embedding-transport`: Claude Subscription embedding requests are no longer rejected before transport. Refactor falls through to the OpenAI-compatible embedding path instead of returning the legacy guidance to configure a separate embedding connection. ## Expected behavior Claude Subscription connections should reject embedding requests with a clear unsupported-provider error and tell users to configure a separate embedding-capable connection. ## Actual behavior `embed_text` only rejects `openai_chatgpt`; `claude_subscription` does not have a rejection branch and falls through to `embed_openai_compatible`. ## Steps to reproduce 1. Configure or construct a Claude Subscription connection with provider `claude_subscription`. 2. Call `llm_embed` or `/api/sidecar/v1/embeddings` with that connection and an embedding input. 3. Observe that refactor attempts OpenAI-compatible embedding transport instead of rejecting the unsupported provider. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor parityscan for #2410 Batch 6 - Run mode: Tauri desktop / remote runtime - OS + version: not runtime-tested - Node + pnpm versions: not runtime-tested - Rust version, if relevant: not runtime-tested - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: Claude Subscription embeddings ## Logs, screenshots, or video Static proof only: - Legacy explicitly rejected Claude Subscription embeddings: `main:packages/server/src/services/llm/providers/claude-subscription.provider.ts:591`. - Refactor provider dispatch rejects only `openai_chatgpt`, sends Google/Vertex to Google, Ollama to Ollama, and sends every other provider to OpenAI-compatible embeddings: `src-tauri/src/commands/storage/prompts.rs:512`. - `llm_embed` and `/api/sidecar/v1/embeddings` both route through the same refactor embedding resolver/transport: `src-tauri/src/commands/storage/llm.rs:111`, `src-tauri/src/http_server.rs:1111`. ## Regression notes Legacy behavior exists on `main`: Claude Subscription provider `embed()` throws a clear unsupported-provider error and separate-connection guidance. Refactor lacks equivalent rejection for `claude_subscription`. ## Additional context Source tracker: #2410. Acceptance criteria: - `11-PROV-RUNTIME-embedding-transport` rejects `claude_subscription` embedding requests before any provider HTTP call. - `llm_embed` and `/api/sidecar/v1/embeddings` surface clear separate-embedding-connection guidance for Claude Subscription. - ChatGPT local auth rejection and retired local-sidecar rejection continue to behave as they do now. - Focused Rust/unit proof covers Claude Subscription rejection. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:28:31 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1187
No description provided.