mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1678] [MERGED] Fix Echo Chamber reload crash fallout #5206
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#5206
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/1678
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1667-echo-reload📝 Commits (3)
fc711f4Fix Echo reload crash falloutfac5d80Merge remote-tracking branch 'upstream/refactor' into fix/issue-1667-echo-reloadfd5d433Address error boundary review feedback📊 Changes
7 files changed (+235 additions, -60 deletions)
View changed files
➕
docs/evidence/issue-1667/root-error-boundary-fallback.png(+0 -0)➕
src/app/AppErrorBoundary.test.tsx(+39 -0)➕
src/app/AppErrorBoundary.tsx(+72 -0)📝
src/app/main.tsx(+6 -3)📝
src/features/modes/shared/chat-ui/components/EchoChamberPanel.tsx(+5 -57)➕
src/features/modes/shared/chat-ui/lib/echo-chamber-messages.test.ts(+61 -0)➕
src/features/modes/shared/chat-ui/lib/echo-chamber-messages.ts(+52 -0)📄 Description
Linked issue
Closes #1667
Why this change
agent-runs.resultData.reactions[]data, and future malformed rows should not be able to crash the visible chat UI.What changed
echo-chamber-messages.ts.resultData.reactions[], stringified result data, the legacy flat shape, and malformed should-not-match rows.AppErrorBoundaryaboveQueryClientProvider/Appso root render failures show a reloadable fallback instead of emptying#root.Refactor impact
Primary owner:
app shell and shared mode chat UI
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/app/main.tsxroot bootstrapEchoChamberPanelValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm exec vitest run src/features/modes/shared/chat-ui/lib/echo-chamber-messages.test.ts src/app/AppErrorBoundary.test.tsx: 4 tests passed.pnpm typecheck: passed.pnpm build: passed.pnpm check: passed.node scratch\issue-1667-app-smoke.mjs: real Vite app mounted a non-empty#root.node scratch\issue-1667-boundary-proof.mjs: synthetic throwing child rendered the realAppErrorBoundaryfallback.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json: passed.upstream/refactorbecause the nested-row normalizer was already present before this PR. This PR adds direct parser proof and the missing root fallback.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.