mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1692] [MERGED] Fix sidebar new chat no-runtime guard #5218
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#5218
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/1692
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:bughunt/refactor-lane2-chat-20260531📝 Commits (1)
3d10191Fix sidebar new chat runtime guard📊 Changes
4 files changed (+16 additions, -0 deletions)
View changed files
➕
docs/pr-evidence/refactor-lane2-chat-20260531/after-home.png(+0 -0)➕
docs/pr-evidence/refactor-lane2-chat-20260531/after-sidebar.png(+0 -0)➕
docs/pr-evidence/refactor-lane2-chat-20260531/before.png(+0 -0)📝
src/app/shell/useStartNewChat.ts(+16 -0)📄 Description
Linked issue
Not linked; coordinator-assigned refactor bug-hunt lane 2.
Why this change
New chatbutton tried to list connections through storage before opening the guarded setup flow. That threwRemote Runtime URL is not configuredand left the user on the home screen instead of showing the no-runtime setup guidance.What changed
useStartNewChatbefore it fetches connections.pendingNewChatModeso the existingNewChatConnectionGatemodal opens.Refactor impact
Primary owner:
app shell
Impact areas reviewed:
New chatflow for the active chat mode.__TAURI_INTERNALS__before applying the web-shell guard.Boundary notes:
Pressure points touched:
src/app/shell/useStartNewChat.tsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Codex proof, all run from
C:\tmp\ME-refactor-bughunt-lane2-chat-20260531against local Vite on127.0.0.1:5175:node scratch\\lane2-new-chat-repro.mjs http://127.0.0.1:5175/ before-clickfailed because the sidebarNew chatclick did not open the runtime gate and emitted page errorRemote Runtime URL is not configured.node scratch\\lane2-new-chat-repro.mjs http://127.0.0.1:5175/ after-rebase-new-chatpassed; sidebarNew chatopenedRemote Runtime requiredwith no click-time page errors.node scratch\\lane2-new-chat-repro.mjs http://127.0.0.1:5175/ after-rebase-home "Start Conversation chat"passed; home quick-start Conversation still opens the same gate with no click-time page errors.pnpm typecheckpassed.pnpm checkpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.No blocking manual-only verification remains for the core web-shell no-runtime claim. I did not run a packaged Tauri app smoke test; the Tauri path is kept out of the new guard by the embedded IPC check.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release-note changes needed for this focused bug fix.
UI evidence
Before, sidebar
New chatstayed on the home screen and emitted a runtime URL page error:After, sidebar
New chatopens the guarded setup modal:Adjacent home quick-start still opens the same guarded setup modal:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.