mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2268] 9. Chats and messages #1109
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#1109
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?
Originally created by @Promansis on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2268
Originally assigned to: @Promansis on GitHub.
Target 9: Chats And Messages
Scope
Included:
Not checked:
origin/refactorgit-object static evidence. PR #2460 reports targeted Rust tests, typecheck, architecture check, cargo check, andpnpm checkpassing.Intentional divergence checked:
visual_novelremains a legacy input alias normalized to canonicalroleplay, matchingdocs/REFACTOR_PARITY_PIPELINE.md#known-intentional-divergences.Executive Finding
Current static rescan on
origin/refactor@7e70c4dashows the broad Target 9 inventory has no remaining known static parity regression. Current code confirms fixes for message-swipe sidecar storage, chat-folder semantics, direct message-create legacyextradefaults, trim flag forwarding, branch labels, chat validation, connected-chat disconnect cleanup, Memory Recall edit/swipe/rebuild/delete semantics, chat transcript/native import-export paths, and embedded/remote command routing.The previously last open row,
09-CHAT-STORAGE-message-create-edit-active-swipe-sync, is now resolved by merged #2460. The shared API create body now merges legacyMessageExtraleaves, the Rustmessagescollection registersMESSAGE_DEFAULTS, Rust defaulting insertsdisplayText, role-basedisGenerated,tokenCount, andgenerationInfowithout overwriting provided metadata, and the message sidecar create path keeps those defaults on both the parent message and initial active swipe.09-CHAT-STORAGE-delete-derived-state-cleanupremains resolved onorigin/refactor: #2385 is merged, single-message delete and chat bulk delete route throughdelete_message_rows_with_memory_prune, and focused Rust tests cover overlapping, timestamp-window, cross-chat, and rollback/error cases for Memory Recall pruning.Coverage Matrix
visual_novelalias behavior remain intentional.use-generate.ts:1793forwardstrimIncompleteModelOutput, andstart-generation.ts:1900consumes it.entities.rs:690,:790,:953,:1022;contracts.rschat-folder defaults/cleanup).hiddenFromAIand refactorhiddenFromAialias handling remain covered.extraleaves in shared API (storage-api.ts:173-215) and Rust storage (contracts.rs:59,:398-404;shared.rs:998-1035,:1061), while preserving provided extra (message_swipes.rs:1755-1794) and initial active swipe seed (message_swipes.rs:1696-1752;commands/entities.rs:2707-2736). Edit-to-active-swipe sync remains covered (message_swipes.rs:510-514;shared.rs:588-615).message-swipessidecars, migration, materialization, profile/import/export handling, and focused swipe tests (message_swipes.rs,commands/entities.rs,profile.rs).extra.cachedPromptprojection intogenerationPromptSnapshotremains covered.nameand initializesmetadata.branchName(chats.rs:313,:2874).ChatFilesDrawer.tsx:105,ChatBranchSelector.tsx).bulk_delete_messagesroutes throughdelete_message_rows_with_memory_prune(chats.rs:1079,:1123), genericmessagesdelete routes through the same helper (entities.rs:1450,:1462), and pruning is atomic with message, swipe, tracker, and chat-memory mutation (chats.rs:1326,:1355,:1372-:1452).chats.rs:867,:2786,:5360;commands/entities.rs:747,:2966). Delete cleanup is also covered by the #2293 row above.disconnect_connected_chatclears both sides and pair-owned notes/influences, and remote dispatch uses the same helper (chats.rs:1169,http_dispatch.rs:919)./api/invokeroute through the same checked storage/chat helpers for Target 9 command surfaces. #2460 keeps message create aligned by routing genericstorage_createthroughstorage_create_innerand Rust storage defaults.extrarejection are present (entities.rs:93,:2406,:2739;chats.rs:720,:3847).name,is_user,is_system,mes,send_date), andmarinara-chat-bulkhas a native importer (chat-transcript-export.ts:34,:103,:136;imports/marinara.rs:27;imports/marinara_chat_bulk.rs).Follow-Ups
metadata.branchNamedisplay restored.origin/refactor.extra, active swipe default propagation, richerextrapreservation, and focused create/default tests.Proof Commands
git fetch origin refactor maingit rev-parse origin/refactor->7e70c4da59b2569d20a6565e3f5be91065d3f04dgit rev-parse origin/main->dce75127e1b0b9af01e1257bf949a066749f5521gh issue view 2268 --repo Pasta-Devs/Marinara-Engine --json number,title,state,updatedAt,body,urlgh issue view 2272 --repo Pasta-Devs/Marinara-Engine --json number,title,state,closedAt,updatedAt,body,urlgh pr view 2460 --repo Pasta-Devs/Marinara-Engine --json number,title,state,mergedAt,body,files,commits,urlgit show --stat --oneline 7e70c4dagit log --oneline 50dc44dc..origin/refactor -- src-tauri/src/commands/storage src/features/catalog/chats src/features/modes/shared/chat-ui src/shared/api src/engine/generation src/engine/contracts/schemas/chat.schema.tsgit grepstatic traces forMESSAGE_DEFAULTS,messageExtraDefaults,insert_message_extra_default,create_message_seeds_legacy_default_extra_on_initial_swipe,storage_create_message_returns_default_extra_and_persists_initial_swipe,visual_novel, and genericstorage_createrouting.git show origin/refactor:<path>line-window inspections for shared API defaults, Rust defaults, message sidecar create/default tests, message update active-swipe sync, and chat mode intentional divergence.git show origin/main:packages/server/src/services/storage/chats.storage.tsline-window inspection for legacy create defaultextraleaves.gh issue list --repo Pasta-Devs/Marinara-Engine --state open --search "09-CHAT-STORAGE-message-create-edit-active-swipe-sync" --json number,title,state,url,updatedAt-> no open issue found.Rescan Criteria