[PR #2503] [MERGED] Restore missing chat connection error parity #5624

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2503
Author: @Xelvanis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/2442-legacy-parity


📝 Commits (1)

  • 2e991d3 Restore missing chat connection error parity

📊 Changes

1 file changed (+1 additions, -6 deletions)

View changed files

📝 src/engine/generation/context.ts (+1 -6)

📄 Description

Linked issue

Addresses #2442

Why this change

  • Target 12 parityscan found a remaining blocker: generation without a request or chat connection id still resolved the default or first stored connection.
  • Legacy stops before provider send with No API connection configured for this chat; this restores that negative-control path while preserving explicit request/chat connection and random-pool resolution.

What changed

  • Removed the default/first stored connection fallback from resolveGenerationConnection when no request or chat connection id is set.
  • Kept the "random" sentinel and concrete connection id lookup branches intact.

Refactor impact

Primary owner:

engine generation

Impact areas reviewed:

  • Runtime generation connection resolution
  • Prompt preview and start-generation resolver callers
  • Agent retry path that uses the shared generation resolver

Boundary notes:

  • Engine-only change in src/engine/generation/context.ts.
  • No React feature, shared API, Tauri/Rust, storage schema, or remote-runtime boundary changes.

Pressure points touched:

  • None. No ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs, or import module changes.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Static legacy trace confirmed legacy generation uses request/chat connection id, handles "random", and returns No API connection configured for this chat when neither id is present before provider send.
  • pnpm check: passed.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This restores existing generation connection error behavior and does not add a new discoverable feature.

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

No UI evidence needed; engine-only generation connection resolver fix.


🔄 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/2503 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/6/2026 **Status:** ✅ Merged **Merged:** 6/6/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/2442-legacy-parity` --- ### 📝 Commits (1) - [`2e991d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e991d395344d66f5a9b7b0d9497442b555bc80b) Restore missing chat connection error parity ### 📊 Changes **1 file changed** (+1 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/context.ts` (+1 -6) </details> ### 📄 Description ## Linked issue Addresses #2442 ## Why this change - Target 12 parityscan found a remaining blocker: generation without a request or chat connection id still resolved the default or first stored connection. - Legacy stops before provider send with `No API connection configured for this chat`; this restores that negative-control path while preserving explicit request/chat connection and random-pool resolution. ## What changed - Removed the default/first stored connection fallback from `resolveGenerationConnection` when no request or chat connection id is set. - Kept the `"random"` sentinel and concrete connection id lookup branches intact. ## Refactor impact Primary owner: engine generation Impact areas reviewed: - Runtime generation connection resolution - Prompt preview and start-generation resolver callers - Agent retry path that uses the shared generation resolver Boundary notes: - Engine-only change in `src/engine/generation/context.ts`. - No React feature, shared API, Tauri/Rust, storage schema, or remote-runtime boundary changes. Pressure points touched: - None. No ModeSurface, GameSurface, shared mode UI, `src-tauri/src/lib.rs`, or import module changes. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Static legacy trace confirmed legacy generation uses request/chat connection id, handles `"random"`, and returns `No API connection configured for this chat` when neither id is present before provider send. - `pnpm check`: passed. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This restores existing generation connection error behavior and does not add a new discoverable feature. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence No UI evidence needed; engine-only generation connection resolver fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:55 +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#5624
No description provided.