[GH-ISSUE #2061] [Issue]: web-shell new chat hides remote runtime health failures #1008

Closed
opened 2026-10-21 05:25:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2061

Originally assigned to: @cha1latte on GitHub.

Summary

Web-shell new-chat creation only checks whether a Remote Runtime URL is configured before trying to read connections. If the configured runtime is invalid, unreachable, not writable, or cannot dispatch storage_list, the user can see a silent rejection or the generic "No connections found" setup state instead of the proven remote health failure.

Expected behavior

In web-shell mode, starting a new conversation, roleplay, or game should use the same Remote Runtime readiness contract as startup and Settings before entering connection setup. A bad runtime should surface the actual health/readiness failure and route the user to Advanced Settings.

Actual behavior

useStartNewChat only blocks when Remote Runtime URL is blank. Once any URL exists, it fetches remote connections through storageApi.list("connections"); failures are not handled in the sidebar path, and the setup modal can fall through to "No connections found" because it keys the remote-required state only on a blank URL.

Steps to reproduce

  1. Open the refactor web shell without embedded Tauri IPC.
  2. Configure Settings -> Advanced -> Remote Runtime URL to a bad or unreachable runtime URL.
  3. Try to start a new chat, roleplay, or game from the sidebar or home quick-start.
  4. Observe that the UI does not show the same Remote Runtime health/readiness failure shown by startup/Settings.

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 during Target 3 parityscan on 2026-06-04
  • Run mode: web shell only / remote runtime
  • OS + version: not app-proven
  • Node + pnpm versions: not app-proven
  • Rust version, if relevant: not app-proven
  • Remote Runtime URL configured? yes
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No live browser repro was run. Static parity evidence:

  • src/app/shell/useStartNewChat.ts gates only on missing remoteRuntimeUrl.
  • src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx treats blank URL as remote-required but otherwise shows connection setup/empty state.
  • src/features/catalog/connections/hooks/use-connections.ts reads connections through storageApi.list.
  • src/shared/api/storage-api.ts routes the connection list to storage_list.

Backend contract proof passed:

cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up
cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_list_uses_projected_message_reads

Regression notes

Legacy main was same-origin web client/server and did not need a Remote Runtime URL gate. The refactor web shell adds this gate, so the regression is in the new remote bootstrap behavior rather than a missing legacy route.

Related tracker: #2050.

Additional context

Settings/startup already use checkRemoteRuntimeHealth, which proves Marinara runtime identity, writable storage, and /api/invoke storage_list readiness. The new-chat gate should reuse that readiness result or catch connection-list failures and display the same class of error before opening connection setup.

Template check

Please uncheck 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 @Promansis on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2061 Originally assigned to: @cha1latte on GitHub. ## Summary Web-shell new-chat creation only checks whether a Remote Runtime URL is configured before trying to read connections. If the configured runtime is invalid, unreachable, not writable, or cannot dispatch `storage_list`, the user can see a silent rejection or the generic "No connections found" setup state instead of the proven remote health failure. ## Expected behavior In web-shell mode, starting a new conversation, roleplay, or game should use the same Remote Runtime readiness contract as startup and Settings before entering connection setup. A bad runtime should surface the actual health/readiness failure and route the user to Advanced Settings. ## Actual behavior `useStartNewChat` only blocks when Remote Runtime URL is blank. Once any URL exists, it fetches remote connections through `storageApi.list("connections")`; failures are not handled in the sidebar path, and the setup modal can fall through to "No connections found" because it keys the remote-required state only on a blank URL. ## Steps to reproduce 1. Open the refactor web shell without embedded Tauri IPC. 2. Configure Settings -> Advanced -> Remote Runtime URL to a bad or unreachable runtime URL. 3. Try to start a new chat, roleplay, or game from the sidebar or home quick-start. 4. Observe that the UI does not show the same Remote Runtime health/readiness failure shown by startup/Settings. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [x] Roleplay mode - [x] Game mode - [x] 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 - [x] 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` during Target 3 parityscan on 2026-06-04 - Run mode: web shell only / remote runtime - OS + version: not app-proven - Node + pnpm versions: not app-proven - Rust version, if relevant: not app-proven - Remote Runtime URL configured? yes - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No live browser repro was run. Static parity evidence: - `src/app/shell/useStartNewChat.ts` gates only on missing `remoteRuntimeUrl`. - `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx` treats blank URL as remote-required but otherwise shows connection setup/empty state. - `src/features/catalog/connections/hooks/use-connections.ts` reads connections through `storageApi.list`. - `src/shared/api/storage-api.ts` routes the connection list to `storage_list`. Backend contract proof passed: ```text cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_list_uses_projected_message_reads ``` ## Regression notes Legacy `main` was same-origin web client/server and did not need a Remote Runtime URL gate. The refactor web shell adds this gate, so the regression is in the new remote bootstrap behavior rather than a missing legacy route. Related tracker: #2050. ## Additional context Settings/startup already use `checkRemoteRuntimeHealth`, which proves Marinara runtime identity, writable storage, and `/api/invoke storage_list` readiness. The new-chat gate should reuse that readiness result or catch connection-list failures and display the same class of error before opening connection setup. ## Template check Please uncheck 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-21 05:25:06 +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#1008
No description provided.