mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1910] [Feature]: Long-Term Memory: keep the range visible in Chat Summaries rows with long chat names #1817
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#1817
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 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1910
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
#1783 fixed this for Sources → Chat Messages. Sources → Chat Summaries has the same problem. Each row's title is
<chat name>, msgs <range>, and the line is cut with "…" when it doesn't fit. With a long chat name, the cut lands inside the name, so the range is hidden. Every summary of one chat then looks the same. The second line (Import <same title>) is cut the same way.The range part takes several forms, all built in
summaries():241-300(1-based, EnginerangeStartIndex/rangeEndIndex)last 40metadata.summaryagent summary,last messages27.07.2026(the day or week key)game session 3Conversation-mode chats are hit hardest: every row is a date, and the date is what gets cut.
Proposed package or change
Package-only change to Long-Term Memory's Sources workspace. No Engine change.
Chat summary preview samples carry their chat name and range as data, and the row renders them in #1783's slot: the name is cut, and the range label stays whole. The title string does not change. It is still the source note title, the accessible name, the task-tray title and the write-failure title. So no existing source note is renamed or marked as updated.
messageRange. Its label becomes the localizedmessages 241–300, the same as Chat Messages rows.summaryRange: { chatName, label }.labelis today's range text, unchanged (last 40,agent summary,last messages,27.07.2026,game session 3). It stays English, as it is in today's title.Minimal fix
packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema/sources.ts: next tomessageRange(~45),ltmInteropPreviewSampleBaseSchemagains an optionalsummaryRange: { chatName: string 1..240, label: string 1..80 },.strict(). A sample sets at most one ofmessageRangeandsummaryRange.packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/sources/interop.tssummaries()(~254): the ordinary-entry branch (~262–282) also returnsfirst/lastwhenrangeStartIndexandrangeEndIndexare both set. Therangestring is unchanged.Candidate(~55) gains an optionalsummaryRange. The chat summary builder (~603–650, title at ~616) setsmessageRange: { chatName, first, last }when the entry hasfirst/last, and otherwise setssummaryRange: { chatName, label: entry.range }.chatNameischatDisplayName.slice(0, 240), as in the Chat Messages builder (~691).previewSample(~829, the copy at ~838) copiessummaryRangethe same way it copiesmessageRange.summary, evidence (message_range:<range>), source ids and previewOrder do not change.packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx,renderFlatSourceRow(~1501;const range = row.messageRangeat ~1504, name at ~1545)row.summaryRangeis set: the samedata-ltm-source-chat-nameelement, and adata-ltm-source-message-rangeelement whose text issummaryRange.label.messageValue1/messagesValue1ToValue2.Regression:
tests/long-term-memory-conversation-summary-import.regression.ts:chat-conversation:day:27.07.2026carriessummaryRange: { chatName: <its chat name>, label: "27.07.2026" }and nomessageRange.rangeStartIndex/rangeEndIndexentry, amessageCountentry and a game session carriesmessageRange { first, last },summaryRange "last N"andsummaryRange "game session N"respectively. All titles are unchanged (<chat>, msgs …).tests/long-term-memory-browser.regression.ts: next to the #1783 check (~8689), on a 320px-wide Chat Summaries tab with a long chat name:messages 1–120, and a date row's label reads its date.tests/long-term-memory-routes.regression.ts(~6364): the write-failure titleObservatory, msgs last messagesstays as is. This proves the title did not change.Non-goals
last 40, dates,game session 3). They stay as they read today.msgsin the title, or the title itself. That would touch source note titles.Import <title>second line, which is the same separate polish item #1783 left out.Why should this be optional?
Long-Term Memory is already a catalog package, and this changes only how its own Sources list lays out one row type.
Alternatives considered
messageRangeinto a union ({ first, last } | { label }). There would be one field, but every existingmessageRangereader and the strict schema would change shape. Rejected in favour of an additive sibling.{ kind: "last", count },{ kind: "day", date }, …) localized in the client. This is more correct for Korean, but it adds about five locale keys and date formatting for text that is English today. It can follow if wanted.Additional context
Follow-up to #1783 (PR #1804, LTM 1.5.6), which was scoped to Chat Messages rows only. The selected-items list and the workbench header already wrap the title and are fine.
Template check