mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1434] [MERGED] Fix remote provider stream error copy #5084
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#5084
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/1434
Author: @cha1latte
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1428-provider-error-copy📝 Commits (2)
6cc9355Fix remote provider stream error copy9438e65Merge remote-tracking branch 'upstream/refactor' into fix/issue-1428-provider-error-copy📊 Changes
2 files changed (+94 additions, -2 deletions)
View changed files
📝
src/shared/api/remote-runtime.test.ts(+63 -1)📝
src/shared/api/remote-runtime.ts(+31 -1)📄 Description
Linked issue
Closes #1428
Why this change
messagefield, but the browser remote-stream adapter only readtextordata, so Conversation recovery copy could show[object Object]instead of the actionable provider message.What changed
message,code, and provider status when/api/llm/streamemitstype: "error".ApiErrorfor remote stream failures so 500/429 provider details survive into the existing Conversation failure notice/toast path.text, legacy stringdata, and existing remote cancellation behavior.Refactor impact
Primary owner:
shared API / remote runtime
Impact areas reviewed:
src/shared/api/remote-runtime.tssrc/features/runtime/generation/hooks/use-generate.tssrc-tauri/src/http_server.rsBoundary notes:
Pressure points touched:
Validation
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/shared/api/remote-runtime.test.ts: the new 500/429 rows failed because the thrown message was[object Object]instead offake provider 500/fake provider 429.pnpm exec vitest run src/shared/api/remote-runtime.test.ts --reporter verbose: 9 tests passed, including 500, 429, legacytext, legacy stringdata, and remote cancellation rows.pnpm check: passedcheck:architecture,check:frontend,check:rust, andcheck:docs.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json: passed.graphify update .could not run becausegraphifyis not available on PATH in this Codex session. This does not block the core claim.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A: this is an adapter-level remote stream error propagation bug. The provider copy path is proven with the remote-runtime regression harness; no direct app UI state exists without a configured fake provider/runtime.
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.