[GH-ISSUE #1438] [Feature]: refactor remote runtime connection health check #716

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

When configuring a remote Marinara server URL in Settings, there's no way to verify the server is reachable or that it has read/write access to its storage. You only find out something is misconfigured when a full operation fails.

Proposed solution

On app launch (only when a Remote Runtime URL is configured):

  • Silent if the server is reachable and writable — no noise on the happy path
  • Show a toast warning if the server is unreachable or reports storage as not writable

In Settings (Remote Runtime URL section):

  • A small live status indicator (dot + short message) that auto-checks when the section is scrolled into view, using IntersectionObserver
  • Does nothing if the URL field is empty
  • Re-checks on each "in view" event so it reflects current state while you're configuring

Backend (/health endpoint):

  • Extend the existing GET /health response to include a writable probe: try writing and deleting a temp file in the data directory and return { ok: true, runtime: "marinara-server", writable: true/false }
  • The endpoint already bypasses auth middleware, making it a safe ping target

Alternatives considered

  • Always-on background polling — too noisy, wastes requests when settings aren't open
  • Toast on both ok and not-ok at launch — too noisy on the happy path
  • Relying on the existing connection_test flow — requires a saved LLM connection, unrelated to server reachability

Additional context

The /health endpoint already exists and is excluded from the security middleware. The writable check only needs a small addition to the Rust handler. The frontend already has the remoteRuntimeUrl value available in the UI store at
startup.

Template check

Please uncheck (untick) 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 @Gunterlie on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1438 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? When configuring a remote Marinara server URL in Settings, there's no way to verify the server is reachable or that it has read/write access to its storage. You only find out something is misconfigured when a full operation fails. ## Proposed solution **On app launch** (only when a Remote Runtime URL is configured): - Silent if the server is reachable and writable — no noise on the happy path - Show a toast warning if the server is unreachable or reports storage as not writable **In Settings** (Remote Runtime URL section): - A small live status indicator (dot + short message) that auto-checks when the section is scrolled into view, using `IntersectionObserver` - Does nothing if the URL field is empty - Re-checks on each "in view" event so it reflects current state while you're configuring **Backend** (`/health` endpoint): - Extend the existing `GET /health` response to include a writable probe: try writing and deleting a temp file in the data directory and return `{ ok: true, runtime: "marinara-server", writable: true/false }` - The endpoint already bypasses auth middleware, making it a safe ping target ## Alternatives considered - Always-on background polling — too noisy, wastes requests when settings aren't open - Toast on both ok and not-ok at launch — too noisy on the happy path - Relying on the existing `connection_test` flow — requires a saved LLM connection, unrelated to server reachability ## Additional context The `/health` endpoint already exists and is excluded from the security middleware. The writable check only needs a small addition to the Rust handler. The frontend already has the `remoteRuntimeUrl` value available in the UI store at startup. ## Template check Please **uncheck (untick)** 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-20 17:32:16 +07:00
Author
Owner

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

Implemented on refactor in fd303972. Added /health writable storage probing, app-startup warning for unhealthy configured remote runtimes, and an in-view Settings health indicator for the Remote Runtime URL. Verified with targeted remote-runtime tests, typecheck, lint, architecture check, Rust check, build, and Graphify refresh.

<!-- gh-comment-id:4558322679 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on refactor in fd303972. Added /health writable storage probing, app-startup warning for unhealthy configured remote runtimes, and an in-view Settings health indicator for the Remote Runtime URL. Verified with targeted remote-runtime tests, typecheck, lint, architecture check, Rust check, build, and Graphify refresh.
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#716
No description provided.