mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1376] [Issue]: Long-Term Memory: move the client's largest screens into per-screen folders #703
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#703
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 (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1376
Originally assigned to: @Promansis on GitHub.
Summary
Three Long-Term Memory screens are single files of 3,600 to 4,700 lines, and each already contains separate components defined inline. Moving those into per-screen folders, without changing behaviour, makes each later change and review smaller. Two small parts of the shell and Settings screens also move into their own files.
Affected package
long-term-memory1.4.31, underpackages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/:MemoryVault.tsx4,666 linesSourcesWorkspace.tsx4,072ReviewQueue.tsx3,631ActivityView.tsx1,938MemorySettings.tsx1,736LongTermMemoryDetail.tsx1,632Expected behavior
Each screen lives in its own folder, and shared modules stay at the root. Two different components no longer share the name
ScopeTargetPicker.Actual behavior
Each large screen is one component that holds 25 to 38 state values (Vault 38, Review 26, Sources 25), with already-separate components defined inline in the same file. Two different components are both named
ScopeTargetPicker(MemoryVault.tsx:210,SourcesWorkspace.tsx:112).Steps to reproduce
function ScopeTargetPicker: there are two definitions.Environment
staging)upstream/staging39a5c5cfb; LTM files unchanged sincecdb583a95)Logs, screenshots, or video
Not applicable; line numbers are at
cdb583a95and will shift once #1374 and #1375 land.Minimal fix
Pure moves (
git mvplus cutting inline components into sibling files, updating imports and the test path map from #1373). No logic changes.vault/:MemoryVault.tsx;VaultScopePicker(the VaultScopeTargetPicker, renamed);MemoryAvailabilityWorkbench;BulkAvailabilityWorkbench;Pill;TargetPicker.tsx;detail-name.ts; and the types they use (MemoryVault.tsx:157-176).sources/:SourcesWorkspace.tsx;SourceScopeCombobox(the SourcesScopeTargetPicker, renamed);DestinationScopePanel;EntrySelect;SourceOperationWorkbench;ImportedSourceInspector.review/:ReviewQueue.tsx;review-state.ts(the pure row-building, persistence and fingerprint helpers, about 600 lines,:394-588and nearby);MutationEditor;ExtractionDetails;AmbiguousLinkChoiceand its small siblings;SubjectIdentityReview.tsx;review-queue-ambiguous-link.ts.settings/:MemorySettings.tsx,ExtractionPromptTemplates.tsx,ActivityView.tsx,debug-activity.ts.api.ts,types.ts,shared-controls.tsx,LtmWorkspace.tsx,LastInjectionSummary.tsx,client-entry.tsx,LongTermMemoryDetail.tsx,LongTermMemoryNavigation.tsx,ChatSettings.tsx,localization.tsx,display-labels.ts,scope-targets.ts,source-task.ts,recall-style.ts,locales/.lazyimport path forMemoryVault(LongTermMemoryDetail.tsx:94-99).Two small extractions, which move a little state with them (review these as behaviour changes):
Onboarding.tsxbesideLongTermMemoryDetail.tsx: the setup guide (onboardingStepsat:35-93, JSX at about:937-1572, including the 88-line<style>at:940). Its three state values (open, step, source) move with it, and the header help button opens it through anonOpenprop.settings/MaintenancePanel.tsx: the Maintenance tab (MemorySettings.tsx:1387-1696) with its seven state values, plus its own busy and message state.Validation per PR:
npm run check,node scripts/typecheck-packages.mjs long-term-memory, rebuild LTM,node scripts/validate-catalog.mjs,node tests/long-term-memory-feedback-clarity-ui.regression.mjs,node tests/long-term-memory-loading.regression.mjs, and the LTM browser test.Additional context
api.ts,detail-name.ts,display-labels.ts,review-queue-ambiguous-link.ts,source-task.tsanddebug-activity.tsby path. With the path map, each move changes one line in the tests.client-entry.tsxis referenced, and directories are copied recursively.client.jsand ships as a patch bump, so batch the moves: one PR, or one per folder.Template check