mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2085] [MERGED] Fix remote runtime new-chat readiness #5427
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5427
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2085
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2061-remote-new-chat-health📝 Commits (2)
aec840eFix remote runtime new-chat readinessc4b621aHandle remote health probe rejection📊 Changes
3 files changed (+127 additions, -17 deletions)
View changed files
📝
src/app/shell/useStartNewChat.ts(+32 -7)📝
src/features/catalog/chat-presets/hooks/use-chat-presets.ts(+2 -1)📝
src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx(+93 -9)📄 Description
Linked issue
Closes #2061
Why this change
What changed
useStartNewChatnow checkscheckRemoteRuntimeHealthbefore fetching connections in web-shell mode, and opens the setup gate instead of letting remote storage failures reject silently.NewChatConnectionGatenow blocks connection and preset queries until remote readiness succeeds, shows checking/unavailable states, and routes failures to Advanced Settings.useChatPresetsaccepts an optionalenabledflag so this setup gate can delay preset storage reads without changing existing callers.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
src/appandsrc/features.src/shared/api/remote-runtimewrapper; it does not change engine code, raw remote fetch routing, Rust commands, storage schema, or remote command semantics.Pressure points touched:
src/app/shell/useStartNewChat.tssrc/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsxValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run --dir scratch --config vite.config.ts --environment jsdomfailed because the gate showedNo connections foundinstead ofRemote runtime is unreachable.pnpm exec vitest run --dir scratch --config vite.config.ts --environment jsdompassed and asserted the gate checks/healthbefore storage-backed setup queries.origin/refactorshowedNo connections foundfor the same bad Remote Runtime URL.Remote Runtime unavailable,Remote runtime is unreachable., andOpen Advanced Settings.pnpm checkpassed locally..agents/automation/scripts/workflow-health.mjsandC:/Users/celia/.codex/tools/marinara-proof-gate.mjswere not present in this checkout/environment.Feature Discoverability
Check exactly one:
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.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Local proof captured:
scratch/issue-2061-before.pngscratch/issue-2061-after.pngThese local screenshots should be uploaded/attached as GitHub-hosted image URLs before marking the draft ready for review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.