mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7476] [Feature]: Show release notes for every version an Agent update skips #4164
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#4164
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 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7476
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
When an installed Agent is several versions behind, Agent updates available → What changed shows the notes for only the newest version. For example, updating Long-Term Memory from 1.4.24 to 1.4.28 shows only the 1.4.28 notes. The notes for 1.4.25, 1.4.26 and 1.4.27 are published in the catalog's release-notes file but never reach the dialog, so the user can't see most of what the update changes.
The notable-change dot has the same gap. It is read from the newest version only, so if 1.4.26 was marked as a change the user will notice and 1.4.28 is a routine fix, the dialog shows no dot.
Cause:
attachCapabilityReleaseNotesinpackages/server/src/services/capability-packages/package-manager.service.ts:1728usesfindto pick the note whose version equals the target version and ignores the rest.Proposed solution
Engine-only change. The release-notes file format and Marinara-Agents stay as they are.
1. Server: attach every note in the update's range
attachCapabilityReleaseNotes, keep each note whose version is greater thaninstalledVersionand less than or equal toversion. Compare versions withcompareCapabilityPackageVersionsand sort newest first, asreleaseNotes()already does (package-manager.service.ts:2610).releaseHighlightto true when any note in that range is highlighted.2. Shared type
In
CapabilityPackageUpdate(packages/shared/src/schemas/capability-package.schema.ts:998), changereleaseNotes?: stringtoreleaseNotes?: CapabilityPackageVersionNote[]. The server and client ship in the same Engine build, so this API needs no compatibility handling.3. Client: one note list, shortened in the update dialog
<ol>list frompackages/client/src/components/agents/AgentVersionHistory.tsxinto a small shared component that takes the entries and aclampflag.AgentVersionHistoryuses it without clamping, so the catalog's version history looks the same as today.AgentUpdateDialog.tsxrendersupdate.releaseNoteswith the same component inside the existing What changed section.line-clamp-2).aria-expandedexpands one version at a time.scrollHeight > clientHeight), so short notes get no button.whitespace-pre-wrap) and are never parsed as markdown or HTML, because the catalog URL can be configured to point at an untrusted source.packages/client/src/localization/locales/en.jsononly: the counted "What changed" label, "More" and "Less". The existing keys are aten.json:4375-4395. Don't add the keys to other locale files.Acceptance
Proof and validation
Update
scripts/regressions/capability-release-notes.regression.ts. The current assertions at lines 93-109 expect a single string and that only the target version's note is attached, so rewrite them for the range. Cover:Run it with
pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-release-notes.regression.ts.Run
pnpm checkandpnpm localization:check.Add a user-focused
CHANGELOG.md[Unreleased]entry.Out of scope
MAX_RELEASE_NOTE_VERSIONS).Manual verification
Alternatives considered
useCapabilityPackageReleaseNotes): this adds a request per package and copies the version-range logic into the client, while the server already has the notes file when it builds the update list.Additional context
AgentVersionHistory(packages/client/src/components/agents/AgentCatalogView.tsx:811). This change reuses its layout.MAX_RELEASE_NOTE_VERSIONS = 20andMAX_RELEASE_NOTE_CHARACTERS = 1000(capability-package.schema.ts:7-8).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: