[PR #5258] [MERGED] Fix embedding endpoints and repeat launcher starts #6693

Closed
opened 2026-10-23 04:12:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5258
Author: @SpicyMarinara
Created: 8/19/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/issues-5252-5256-embedding-startup


📝 Commits (1)

  • 744bd77 Fix embedding endpoints and repeat launches

📊 Changes

11 files changed (+231 additions, -53 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 package.json (+1 -1)
📝 packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/client/src/localization/locales/ko.json (+1 -1)
📝 packages/client/src/localization/locales/zh-Hans.json (+1 -1)
📝 packages/server/src/services/llm/base-provider.ts (+9 -1)
📝 scripts/check-port-available.mjs (+35 -1)
➕ scripts/regressions/launcher/existing-server.regression.mjs (+81 -0)
📝 scripts/regressions/provider-compat.regression.ts (+10 -0)
📝 start.bat (+48 -22)
📝 start.sh (+42 -25)

📄 Description

Linked issue

Closes #5252
Closes #5256

Why this change

  • NanoGPT and OpenRouter document complete /embeddings URLs, but the Engine always appended another /embeddings, producing a 404.
  • Launching an installed copy while its server was already running performed update and build work before checking the port, then could attempt a second writer instead of reopening the existing app.

What changed

  • Accept either an embedding API base URL or a complete /embeddings endpoint and clarify the connection helper text.
  • Probe the configured port before launcher update/install work and reopen a healthy Marinara instance on repeat launches.
  • Keep unknown and unresponsive port occupants blocked, preserving the existing single-writer data guard.
  • Add focused provider and launcher regressions plus Unreleased changelog entries.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated regression verifies API base URLs, complete /embeddings URLs, a healthy Marinara port occupant, an unrelated port occupant, and a newly freed port.
  • Manually verify a second Windows shortcut launch reopens the already-running app.
  • Manually verify an unrelated service on the configured port remains blocked and is not opened.
  • Manually verify NanoGPT and OpenRouter memory vectorization with each provider's documented full embedding endpoint.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Copy-only clarification in the existing Embedding Endpoint URL field; no layout change.

🔄 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/5258 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issues-5252-5256-embedding-startup` --- ### 📝 Commits (1) - [`744bd77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/744bd77e6697361654ac1e76eb16b0d694c17381) Fix embedding endpoints and repeat launches ### 📊 Changes **11 files changed** (+231 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `package.json` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/client/src/localization/locales/ko.json` (+1 -1) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+1 -1) 📝 `packages/server/src/services/llm/base-provider.ts` (+9 -1) 📝 `scripts/check-port-available.mjs` (+35 -1) ➕ `scripts/regressions/launcher/existing-server.regression.mjs` (+81 -0) 📝 `scripts/regressions/provider-compat.regression.ts` (+10 -0) 📝 `start.bat` (+48 -22) 📝 `start.sh` (+42 -25) </details> ### 📄 Description ## Linked issue Closes #5252 Closes #5256 ## Why this change - NanoGPT and OpenRouter document complete `/embeddings` URLs, but the Engine always appended another `/embeddings`, producing a 404. - Launching an installed copy while its server was already running performed update and build work before checking the port, then could attempt a second writer instead of reopening the existing app. ## What changed - Accept either an embedding API base URL or a complete `/embeddings` endpoint and clarify the connection helper text. - Probe the configured port before launcher update/install work and reopen a healthy Marinara instance on repeat launches. - Keep unknown and unresponsive port occupants blocked, preserving the existing single-writer data guard. - Add focused provider and launcher regressions plus Unreleased changelog entries. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated regression verifies API base URLs, complete `/embeddings` URLs, a healthy Marinara port occupant, an unrelated port occupant, and a newly freed port. - Manually verify a second Windows shortcut launch reopens the already-running app. - Manually verify an unrelated service on the configured port remains blocked and is not opened. - Manually verify NanoGPT and OpenRouter memory vectorization with each provider's documented full embedding endpoint. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Copy-only clarification in the existing Embedding Endpoint URL field; no layout change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:47 +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#6693
No description provided.