[GH-ISSUE #1351] [Issue]: Refactor Claude Subscription provider lacks fast mode and Agent SDK session parity #675

Closed
opened 2026-10-20 17:31:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ghost on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1351

Originally assigned to: @cha1latte on GitHub.

Summary

The Claude Subscription provider ID exists, but legacy fast mode, Agent SDK session/resume state, diagnosis route, and rich fast-mode status reporting were not found.

Classification: Partial port / provider behavior regression

Expected behavior

Claude Subscription connections should preserve legacy claudeFastMode and session/resume behavior, or intentionally remove it with migration/user-facing explanation.

Actual behavior

Current Rust path shells out to claude; connection schema/type/UI have no claudeFastMode, and the legacy Agent SDK session store/diagnosis behavior appears absent.

Steps to reproduce

  1. Inspect .tmp/refactor-audit-v161/packages/server/src/services/llm/providers/claude-subscription.provider.ts.
  2. Inspect src-tauri/crates/llm/src/lib.rs, connection schema/types, and ConnectionEditor.tsx.
  3. Compare supported connection settings and runtime status reporting.

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 (audit snapshot 07af6d8b)
  • Legacy baseline: origin/staging / v1.6.1 raw codebase
  • Run mode: Tauri desktop / remote runtime parity audit
  • OS + version: not OS-specific unless labeled Windows/Android
  • Node + pnpm versions: not captured for this audit ticket
  • Rust version, if relevant: not captured for this audit ticket
  • Remote Runtime URL configured? not relevant unless the issue is remote-runtime/security related
  • Provider, model, or integration, if relevant: see summary/additional context

Logs, screenshots, or video

No runtime logs or screenshots. Finding comes from raw-codebase parity inspection.

Regression notes

Legacy behavior/source exists in origin/staging / v1.6.1 raw codebase and is tracked in docs/refactor-staging-1.6-feature-gap-audit.md. Current refactor source did not show equivalent behavior at the paths named below.

Additional context

Likely owners: connection contract/schema/UI, LLM Rust transport, and storage commands that diagnose/test provider connections.

Audit report: docs/refactor-staging-1.6-feature-gap-audit.md.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ghost on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1351 Originally assigned to: @cha1latte on GitHub. ## Summary The Claude Subscription provider ID exists, but legacy fast mode, Agent SDK session/resume state, diagnosis route, and rich fast-mode status reporting were not found. **Classification:** Partial port / provider behavior regression ## Expected behavior Claude Subscription connections should preserve legacy `claudeFastMode` and session/resume behavior, or intentionally remove it with migration/user-facing explanation. ## Actual behavior Current Rust path shells out to `claude`; connection schema/type/UI have no `claudeFastMode`, and the legacy Agent SDK session store/diagnosis behavior appears absent. ## Steps to reproduce 1. Inspect `.tmp/refactor-audit-v161/packages/server/src/services/llm/providers/claude-subscription.provider.ts`. 2. Inspect `src-tauri/crates/llm/src/lib.rs`, connection schema/types, and `ConnectionEditor.tsx`. 3. Compare supported connection settings and runtime status reporting. ## Impact area - [x] 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 - [x] 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 (audit snapshot 07af6d8b) - Legacy baseline: origin/staging / v1.6.1 raw codebase - Run mode: Tauri desktop / remote runtime parity audit - OS + version: not OS-specific unless labeled Windows/Android - Node + pnpm versions: not captured for this audit ticket - Rust version, if relevant: not captured for this audit ticket - Remote Runtime URL configured? not relevant unless the issue is remote-runtime/security related - Provider, model, or integration, if relevant: see summary/additional context ## Logs, screenshots, or video No runtime logs or screenshots. Finding comes from raw-codebase parity inspection. ## Regression notes Legacy behavior/source exists in `origin/staging / v1.6.1 raw codebase` and is tracked in `docs/refactor-staging-1.6-feature-gap-audit.md`. Current refactor source did not show equivalent behavior at the paths named below. ## Additional context Likely owners: connection contract/schema/UI, LLM Rust transport, and storage commands that diagnose/test provider connections. Audit report: `docs/refactor-staging-1.6-feature-gap-audit.md`. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Addressed on refactor in 0ab35fb8. Restored the Claude Subscription connection-level fast-mode toggle, carried it through the Tauri/Rust LLM transport, added chat-scoped Claude Code session IDs with the legacy CLAUDE_SUBSCRIPTION_USE_RESUME kill switch, isolated the CLI call surface, and surfaced empty Claude JSON results as errors with fast-mode/model-usage diagnostics instead of silently returning no content. Validated with pnpm test -- src/engine/generation/start-generation.test.ts, cargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm claude_subscription_ -- --nocapture, git diff --check, and pnpm check.

<!-- gh-comment-id:4555117328 --> @SpicyMarinara commented on GitHub (May 27, 2026): Addressed on refactor in 0ab35fb8. Restored the Claude Subscription connection-level fast-mode toggle, carried it through the Tauri/Rust LLM transport, added chat-scoped Claude Code session IDs with the legacy CLAUDE_SUBSCRIPTION_USE_RESUME kill switch, isolated the CLI call surface, and surfaced empty Claude JSON results as errors with fast-mode/model-usage diagnostics instead of silently returning no content. Validated with pnpm test -- src/engine/generation/start-generation.test.ts, cargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm claude_subscription_ -- --nocapture, git diff --check, and pnpm check.
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#675
No description provided.