mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2344] [MERGED] Fix chat validation parity #5546
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#5546
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/2344
Author: @Promansis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Promansis
Base:
refactor← Head:fix/issue-2275📝 Commits (1)
04054c6Fix chat validation parity📊 Changes
6 files changed (+337 additions, -15 deletions)
View changed files
📝
src-tauri/src/commands/storage/chats.rs(+38 -3)📝
src-tauri/src/commands/storage/commands/entities.rs(+228 -2)📝
src-tauri/src/commands/storage/integrations.rs(+4 -0)📝
src-tauri/src/commands/storage/integrations/discord.rs(+1 -1)📝
src/features/catalog/chats/hooks/use-chats.ts(+17 -4)📝
src/shared/api/storage-api.ts(+49 -5)📄 Description
Linked issue
Closes #2275
Why this change
09-CHAT-ERROR-chat-message-validationhad parity gaps where refactor accepted chat metadata and bulk message payloads that legacy rejected or normalized.What changed
inactiveCharacterIdsto be an array of strings and normalize it to IDs present in the chat.Refactor impact
Primary owner:
Rust storage, shared API, shared chat catalog hooks
Impact areas reviewed:
storage_updateBoundary notes:
storage_updatecallers.src/shared/api/storage-api.tsmirrors the user-facing validation before crossing the runtime adapter.Pressure points touched:
src-tauri/src/commands/storage/commands/entities.rssrc-tauri/src/commands/storage/chats.rssrc/shared/api/storage-api.tssrc/features/catalog/chats/hooks/use-chats.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml chat_metadata_patchcargo test --manifest-path src-tauri/Cargo.toml bulk_delete_messages_rejects_empty_or_invalid_id_payloadscargo check --manifest-path src-tauri/Cargo.tomlpnpm typecheckgit diff --checkpnpm checkFeature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Validation parity fix only; no new user-discoverable surface.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No visible UI changes; validation/storage behavior only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.