[PR #1415] [CLOSED] Restore Claude Subscription fast mode parity on refactor #5080

Closed
opened 2026-10-22 04:13:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1415
Author: @cha1latte
Created: 5/27/2026
Status: ❌ Closed

Base: refactor ← Head: fix/refactor-issue-1351-claude-subscription-parity


📝 Commits (2)

  • 6f1a2d7 Restore Claude Subscription parity
  • e68674e Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1351-claude-subscription-parity

📊 Changes

9 files changed (+90 additions, -6 deletions)

View changed files

📝 src-tauri/crates/llm/src/lib.rs (+47 -4)
📝 src-tauri/src/commands/storage/generation.rs (+1 -0)
📝 src-tauri/src/commands/storage/integrations/spotify.rs (+1 -0)
📝 src-tauri/src/commands/storage/llm.rs (+8 -2)
📝 src-tauri/src/commands/storage/mari.rs (+1 -0)
📝 src-tauri/src/commands/storage/translation.rs (+1 -0)
📝 src/engine/capabilities/llm.ts (+1 -0)
📝 src/engine/generation/start-generation.ts (+1 -0)
📝 src/features/shell/connections/components/ConnectionEditor.tsx (+29 -0)

📄 Description

Linked issue

Closes #1351

Why this change

  • Claude Subscription on refactor lost the legacy fast-mode connection setting and session/resume identity wiring, so users could not control whether Claude Code fast mode was allowed per connection.

What changed

  • Added claudeFastMode to the connection schema/types and Connection Editor.
  • Persisted the toggle only for Claude Subscription connections; non-Claude providers save it as false.
  • Carried sessionKey from chat generation into the Rust LLM request.
  • Passed explicit Claude Code CLI settings for fastMode and a stable --session-id for chat generation.
  • Added Rust unit coverage for fast-mode settings JSON and stable session-id generation.

Refactor impact

Primary owner:

Runtime generation / Rust LLM transport

Impact areas reviewed:

  • Connection contract/schema/UI
  • Engine generation LLM request boundary
  • Rust storage LLM request mapping
  • Rust Claude Subscription transport

Boundary notes:

  • Scoped to Claude Subscription parity.
  • Existing connections without claudeFastMode default to fast mode off.
  • No dependency, version, release, or storage migration changes.

Pressure points touched:

  • src/features/shell/connections/components/ConnectionEditor.tsx
  • src/engine/generation/start-generation.ts
  • src-tauri/src/commands/storage/llm.rs
  • src-tauri/crates/llm/src/lib.rs

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex verification run:
    • node scratch/issue-1351-claude-subscription-parity.mjs passes after reproducing the missing parity before the fix.
    • cargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm passed.
    • pnpm check passed after installing locked dependencies with pnpm install --frozen-lockfile.
    • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json passed.
  • Manual app smoke still useful: open a Claude Subscription connection in the Tauri app, toggle Claude Fast Mode, save, reload the connection, and confirm the toggle persists.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

N/A. This is a provider contract/runtime parity fix; no visual regression evidence was needed beyond the Connection Editor compiling through pnpm check.

Summary by CodeRabbit

  • New Features

    • Added "Claude Fast Mode" toggle in the connection editor for Claude Subscription provider, positioned before the API Key field.
  • Improvements

    • Implemented optional session key support in LLM requests for better session identification and management.
    • Enhanced session scoping for multi-turn streaming operations with automatic session key derivation.

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1415 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/27/2026 **Status:** ❌ Closed **Base:** `refactor` ← **Head:** `fix/refactor-issue-1351-claude-subscription-parity` --- ### 📝 Commits (2) - [`6f1a2d7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6f1a2d760f3553782b7c52f666bbf47fb569746a) Restore Claude Subscription parity - [`e68674e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e68674e3a7c7ca804f94c6eecf21eff41a018305) Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1351-claude-subscription-parity ### 📊 Changes **9 files changed** (+90 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/crates/llm/src/lib.rs` (+47 -4) 📝 `src-tauri/src/commands/storage/generation.rs` (+1 -0) 📝 `src-tauri/src/commands/storage/integrations/spotify.rs` (+1 -0) 📝 `src-tauri/src/commands/storage/llm.rs` (+8 -2) 📝 `src-tauri/src/commands/storage/mari.rs` (+1 -0) 📝 `src-tauri/src/commands/storage/translation.rs` (+1 -0) 📝 `src/engine/capabilities/llm.ts` (+1 -0) 📝 `src/engine/generation/start-generation.ts` (+1 -0) 📝 `src/features/shell/connections/components/ConnectionEditor.tsx` (+29 -0) </details> ### 📄 Description ## Linked issue Closes #1351 ## Why this change - Claude Subscription on `refactor` lost the legacy fast-mode connection setting and session/resume identity wiring, so users could not control whether Claude Code fast mode was allowed per connection. ## What changed - Added `claudeFastMode` to the connection schema/types and Connection Editor. - Persisted the toggle only for Claude Subscription connections; non-Claude providers save it as `false`. - Carried `sessionKey` from chat generation into the Rust LLM request. - Passed explicit Claude Code CLI settings for `fastMode` and a stable `--session-id` for chat generation. - Added Rust unit coverage for fast-mode settings JSON and stable session-id generation. ## Refactor impact Primary owner: Runtime generation / Rust LLM transport Impact areas reviewed: - Connection contract/schema/UI - Engine generation LLM request boundary - Rust storage LLM request mapping - Rust Claude Subscription transport Boundary notes: - Scoped to Claude Subscription parity. - Existing connections without `claudeFastMode` default to fast mode off. - No dependency, version, release, or storage migration changes. Pressure points touched: - `src/features/shell/connections/components/ConnectionEditor.tsx` - `src/engine/generation/start-generation.ts` - `src-tauri/src/commands/storage/llm.rs` - `src-tauri/crates/llm/src/lib.rs` ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex verification run: - `node scratch/issue-1351-claude-subscription-parity.mjs` passes after reproducing the missing parity before the fix. - `cargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm` passed. - `pnpm check` passed after installing locked dependencies with `pnpm install --frozen-lockfile`. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json` passed. - Manual app smoke still useful: open a Claude Subscription connection in the Tauri app, toggle Claude Fast Mode, save, reload the connection, and confirm the toggle persists. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A. This is a provider contract/runtime parity fix; no visual regression evidence was needed beyond the Connection Editor compiling through `pnpm check`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added "Claude Fast Mode" toggle in the connection editor for Claude Subscription provider, positioned before the API Key field. * **Improvements** * Implemented optional session key support in LLM requests for better session identification and management. * Enhanced session scoping for multi-turn streaming operations with automatic session key derivation. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1415?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:01 +07:00
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#5080
No description provided.