mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8486] [MERGED] Fix large chat-list payloads and compression #8630
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#8630
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/8486
Author: @SpicyMarinara
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8452-chat-list-payloads📝 Commits (4)
c54b5f9Reproduce large chat-list vector leakage and compression cutoff03d4508Keep chat-list internals private and compress large lists asynchronously24b51caAllow legacy partial metadata in the chat-list response type000ed5fFormat the chat-list public response type📊 Changes
3 files changed (+160 additions, -7 deletions)
View changed files
📝
packages/server/src/middleware/compress-json.ts(+32 -5)📝
packages/server/src/routes/chats.routes.ts(+28 -2)➕
scripts/regressions/chat-list-payload.regression.ts(+100 -0)📄 Description
Why this change
Large chat collections transfer internal vectors and skip compression above 4 MiB, slowing the sidebar over mobile and LAN connections.
What changed
Closes #8452.
Large chat collections no longer send internal embedding vectors or write counters in
GET /api/chats. The list returns the public Chat fields, including complete metadata, rather than spreading database rows. Stored vectors, internal storage callers, and native export paths remain intact.Chat-list responses above 4 MiB now use Brotli or gzip on the compression threadpool before the route sends its response. The shared synchronous on-send hook retains its existing safety boundary for other routes, including async handlers that call
reply.send()without returning it. Internalapp.inject()reads remain plain JSON.Assigned to @SpicyMarinara; this branch owns #8452.
Validation
pnpm checkpassed (one existing HomeProfessorMariChat hook warning). The first attempts caught a metadata type mismatch and formatting; both were corrected, and the original failure logs were retained.Manual verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.