mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1783] [Feature]: Long-Term Memory: keep the message range visible in Chat messages rows with long chat names #1752
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#1752
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 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1783
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
In Sources → Chat messages, each row shows one title line:
<chat name>, messages <range>, for exampleMy Long Adventure, messages 241-300. 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 row of one chat then looks the same, and you can't tell which piece is which without opening it. The second line (Import <same title>) is cut the same way, so it doesn't help.Proposed package or change
Package-only change to Long-Term Memory's Sources workspace. No Engine change.
Chat messages preview samples carry their range as data, and the row renders it as a separate label that never shrinks. Only the chat name gets "…". The title string itself does not change: it is still the source note title, the accessible name and the task-tray title. So no existing source note is renamed or marked as updated.
The label is localized (
enandko), unlike today's server-built English title. A scene name can later use the same slot, if scene-aware pieces land.Minimal fix
packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema/sources.ts:ltmInteropPreviewSampleBaseSchema(~37) gains an optionalmessageRange: { chatName: string 1..240, first: int ≥ 1, last: int ≥ first }. It stays.strict().packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/sources/interop.tsCandidate(~45) gains an optionalmessageRange. The chat-messages builder (~670–691, wheretitleis built fromchatDisplayNameandpiece.first/piece.last) sets it.previewSample(~816) copies it intobase.packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx,renderFlatSourceRow(~1498, title at ~1538):row.messageRangeis set, render<strong className="min-w-0 truncate">{chatName}</strong>, followed by ashrink-0 whitespace-nowraprange label.min-w-0(today it isflex-wrap), so that the name, not the range, is what shrinks.messageRangerender exactly as today.…/client/src/features/long-term-memory/locales/en.jsonandko.json: add keys for "message {{value1}}" and "messages {{value1}}–{{value2}}".node scripts/validate-package-locales.mjsmust pass.Regression:
tests/long-term-memory-chat-transcript-import.regression.ts: the existing preview assertion (~218, "Moon Vault, messages 1-4") also expectsmessageRange: { chatName: "Moon Vault", first: 1, last: 4 }. Add a single-message piece. Chat summary, character and lorebook samples have nomessageRange.tests/long-term-memory-browser.regression.ts: on a Chat messages row with a long chat name at a narrow width, the range label is visible and inside the row's box (its right edge ≤ the row's right edge), and the name element is the one that is cut. A character row's markup is unchanged.Non-goals
Import <title>second line. It could be dropped or replaced for Chat messages rows, as a separate polish item.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
messages 241-300 · <chat name>). This changes every chat-messages source note title and its English-only wording, and makes the list read range-first. Rejected.Additional context
The other places that show this title already wrap and are fine: the selected-items list (~2789) and the workbench header (~2818).
Template check