mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3780] [MERGED] refactor(client): centralize API transport policy #6098
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#6098
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/3780
Author: @Xelvanis
Created: 7/18/2026
Status: ✅ Merged
Merged: 7/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/internal-api-transport📝 Commits (3)
7367874refactor(client): centralize API transport policyd26a0eafix(client): tolerate unavailable local storage17374e3Merge branch 'staging' into fix/internal-api-transport📊 Changes
6 files changed (+34 additions, -53 deletions)
View changed files
📝
packages/client/src/components/chat/ChatBranchSelector.tsx(+10 -4)📝
packages/client/src/components/layout/ChatSidebar.tsx(+5 -5)📝
packages/client/src/components/modals/STBulkImportModal.tsx(+5 -18)📝
packages/client/src/components/panels/SettingsPanel.tsx(+1 -3)📝
packages/client/src/hooks/use-knowledge-sources.ts(+1 -9)📝
packages/client/src/lib/api-client.ts(+12 -14)📄 Description
Linked issue
Follow-up to #3603.
Why this change
/apifetches that bypass shared admin-secret, CSRF, cache, and error-handling policy. This applies the recommended incremental migration to the privileged and straightforward multipart paths reviewed here.What changed
apiFetchtransport boundary.api.rawwhile preserving JSON, SSE, header, and binary response access.api.upload.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpassed on the rebased commit, including project-context checks, workspace lint/type checks, and production builds.Docs and release impact
No documentation or release metadata changes are required for this internal transport refactor.
UI evidence (if applicable)
Not applicable; there is no visual UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.