mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1258] [MERGED] Fix LLM stream cancel target and logging #5006
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#5006
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/1258
Author: @Xelvanis
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/log-llm-cancel-failures📝 Commits (2)
313a9bffix llm stream cancel visibilityebaab1aMerge remote-tracking branch 'origin/refactor' into fix/log-llm-cancel-failures📊 Changes
6 files changed (+389 additions, -13 deletions)
View changed files
➕
src/shared/api/llm-api.test.ts(+150 -0)📝
src/shared/api/llm-api.ts(+6 -4)➕
src/shared/api/llm-cancel-logging.test.ts(+52 -0)➕
src/shared/api/llm-cancel-logging.ts(+71 -0)➕
src/shared/api/remote-runtime.test.ts(+95 -0)📝
src/shared/api/remote-runtime.ts(+15 -9)📄 Description
Linked issue
Closes #1257
Why this change
LLM stream cancellation had two related failure paths:
What changed
Refactor impact
Primary owner:
Shared API wrapper and remote runtime routing.
Impact areas reviewed:
src/shared/api/llm-api.tssrc/shared/api/remote-runtime.tsBoundary notes:
This stays in the shared API adapter layer. It does not change engine product rules, React feature UI, Rust command implementations, provider transport, storage, or the HTTP route contract.
Pressure points touched:
None. No
ModeSurface,GameSurface, shared mode UI, Rust command registration, or import modules changed.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
Commands run locally:
pnpm test -- src/shared/api/llm-api.test.ts src/shared/api/remote-runtime.test.ts src/shared/api/llm-cancel-logging.test.tspnpm testpnpm typecheckpnpm check:architecturepnpm buildgit diff --checkpnpm buildpassed with existing Vite code-splitting/chunk-size warnings. Those warnings are tracked separately in the local chore list and are not introduced by this PR.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or changelog update was made. This repo branch does not have
CHANGELOG.md, and the change is a shared API bugfix without user-facing copy changes.UI evidence
N/A. No visible UI behavior changed.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.