[GH-ISSUE #7476] [Feature]: Show release notes for every version an Agent update skips #4164

Closed
opened 2026-10-21 06:12:00 +07:00 by bsakaguchi · 0 comments
Owner

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: attachCapabilityReleaseNotes in packages/server/src/services/capability-packages/package-manager.service.ts:1728 uses find to 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

  • In attachCapabilityReleaseNotes, keep each note whose version is greater than installedVersion and less than or equal to version. Compare versions with compareCapabilityPackageVersions and sort newest first, as releaseNotes() already does (package-manager.service.ts:2610).
  • Set releaseHighlight to true when any note in that range is highlighted.
  • When no note falls in the range, return the update unchanged, as the function does now.

2. Shared type

In CapabilityPackageUpdate (packages/shared/src/schemas/capability-package.schema.ts:998), change releaseNotes?: string to releaseNotes?: 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

  • Move the <ol> list from packages/client/src/components/agents/AgentVersionHistory.tsx into a small shared component that takes the entries and a clamp flag. AgentVersionHistory uses it without clamping, so the catalog's version history looks the same as today.
  • AgentUpdateDialog.tsx renders update.releaseNotes with the same component inside the existing What changed section.
  • When a package has more than one note:
    • The toggle reads What changed (N).
    • Each version's notes are cut to two lines (line-clamp-2).
    • A More/Less button with aria-expanded expands one version at a time.
    • That button appears only when the text is actually cut off (scrollHeight > clientHeight), so short notes get no button.
  • When a package has exactly one note, show it in full, as today.
  • Notes stay plain text (whitespace-pre-wrap) and are never parsed as markdown or HTML, because the catalog URL can be configured to point at an untrusted source.
  • Put the new text under semantic keys in packages/client/src/localization/locales/en.json only: the counted "What changed" label, "More" and "Less". The existing keys are at en.json:4375-4395. Don't add the keys to other locale files.

Acceptance

  • Updating from 1.4.24 to 1.4.28 lists the notes for 1.4.28, 1.4.27, 1.4.26 and 1.4.25 (newest first) and leaves out 1.4.24 and anything after 1.4.28.
  • The dot shows when any version in that range is notable.
  • A package with no notes in its range looks the same as it does today.
  • The catalog's Version history looks the same as it does today.

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:

    • the installed version is left out;
    • the target and the versions between are included;
    • a note above the target is left out;
    • prerelease ordering;
    • the highlight is on when only a middle version is highlighted;
    • the update comes back unchanged when no note is in range.

    Run it with pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-release-notes.regression.ts.

  • Run pnpm check and pnpm localization:check.

  • Add a user-focused CHANGELOG.md [Unreleased] entry.

Out of scope

  • Shortening notes in the catalog's version history.
  • Opening notable versions by default.
  • Saying when older notes fall outside the 20-version limit (MAX_RELEASE_NOTE_VERSIONS).
  • Changing the release-notes file format or the Marinara-Agents catalog build.

Manual verification

  • Manually verify in the browser that an Agent several versions behind shows every version's notes, newest first, under What changed (N).
  • Manually verify that a long note is cut to two lines with More, and that More expands only that version.
  • Manually verify that a short note shows no More button.
  • Manually verify that a package one version behind shows its notes in full with no count.
  • Manually verify that the dot shows when only a middle version is notable.
  • Manually verify the dialog at phone width.

Alternatives considered

  • A dropdown for each version: a collapsed version shows only its number and date, which says nothing about what changed. Users would have to open each one, and it puts a dropdown inside a dropdown inside a dialog.
  • Filter on the client using the existing release-notes request (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.
  • Show every note in full: with up to 20 versions of up to 1,000 characters each per package, the dialog becomes a long wall of text.

Additional context

  • Today's dialog for Long-Term Memory 1.4.24 → 1.4.28 shows a single paragraph: the 1.4.28 note about the Memory Settings → Debug details pane.
  • The catalog detail view already shows the full history through AgentVersionHistory (packages/client/src/components/agents/AgentCatalogView.tsx:811). This change reuses its layout.
  • Related: #5773, "Agent version changelog in the update prompt and Download Agents" (closed). This covers the case it leaves open: an update that skips versions.
  • Limits that stay unchanged: MAX_RELEASE_NOTE_VERSIONS = 20 and MAX_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:

  • I DID NOT read this template and provide the requested details.
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: `attachCapabilityReleaseNotes` in `packages/server/src/services/capability-packages/package-manager.service.ts:1728` uses `find` to 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** - In `attachCapabilityReleaseNotes`, keep each note whose version is greater than `installedVersion` and less than or equal to `version`. Compare versions with `compareCapabilityPackageVersions` and sort newest first, as `releaseNotes()` already does (`package-manager.service.ts:2610`). - Set `releaseHighlight` to true when any note in that range is highlighted. - When no note falls in the range, return the update unchanged, as the function does now. **2. Shared type** In `CapabilityPackageUpdate` (`packages/shared/src/schemas/capability-package.schema.ts:998`), change `releaseNotes?: string` to `releaseNotes?: 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** - Move the `<ol>` list from `packages/client/src/components/agents/AgentVersionHistory.tsx` into a small shared component that takes the entries and a `clamp` flag. `AgentVersionHistory` uses it without clamping, so the catalog's version history looks the same as today. - `AgentUpdateDialog.tsx` renders `update.releaseNotes` with the same component inside the existing **What changed** section. - When a package has more than one note: - The toggle reads **What changed (N)**. - Each version's notes are cut to two lines (`line-clamp-2`). - A **More**/**Less** button with `aria-expanded` expands one version at a time. - That button appears only when the text is actually cut off (`scrollHeight > clientHeight`), so short notes get no button. - When a package has exactly one note, show it in full, as today. - Notes stay plain text (`whitespace-pre-wrap`) and are never parsed as markdown or HTML, because the catalog URL can be configured to point at an untrusted source. - Put the new text under semantic keys in `packages/client/src/localization/locales/en.json` only: the counted "What changed" label, "More" and "Less". The existing keys are at `en.json:4375-4395`. Don't add the keys to other locale files. **Acceptance** - Updating from 1.4.24 to 1.4.28 lists the notes for 1.4.28, 1.4.27, 1.4.26 and 1.4.25 (newest first) and leaves out 1.4.24 and anything after 1.4.28. - The dot shows when any version in that range is notable. - A package with no notes in its range looks the same as it does today. - The catalog's **Version history** looks the same as it does today. **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: - the installed version is left out; - the target and the versions between are included; - a note above the target is left out; - prerelease ordering; - the highlight is on when only a middle version is highlighted; - the update comes back unchanged when no note is in range. Run it with `pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-release-notes.regression.ts`. - Run `pnpm check` and `pnpm localization:check`. - Add a user-focused `CHANGELOG.md` `[Unreleased]` entry. **Out of scope** - Shortening notes in the catalog's version history. - Opening notable versions by default. - Saying when older notes fall outside the 20-version limit (`MAX_RELEASE_NOTE_VERSIONS`). - Changing the release-notes file format or the Marinara-Agents catalog build. **Manual verification** - Manually verify in the browser that an Agent several versions behind shows every version's notes, newest first, under **What changed (N)**. - Manually verify that a long note is cut to two lines with **More**, and that **More** expands only that version. - Manually verify that a short note shows no **More** button. - Manually verify that a package one version behind shows its notes in full with no count. - Manually verify that the dot shows when only a middle version is notable. - Manually verify the dialog at phone width. ## Alternatives considered - **A dropdown for each version:** a collapsed version shows only its number and date, which says nothing about what changed. Users would have to open each one, and it puts a dropdown inside a dropdown inside a dialog. - **Filter on the client using the existing release-notes request (`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. - **Show every note in full:** with up to 20 versions of up to 1,000 characters each per package, the dialog becomes a long wall of text. ## Additional context - Today's dialog for Long-Term Memory 1.4.24 → 1.4.28 shows a single paragraph: the 1.4.28 note about the Memory Settings → Debug details pane. - The catalog detail view already shows the full history through `AgentVersionHistory` (`packages/client/src/components/agents/AgentCatalogView.tsx:811`). This change reuses its layout. - Related: #5773, "Agent version changelog in the update prompt and Download Agents" (closed). This covers the case it leaves open: an update that skips versions. - Limits that stay unchanged: `MAX_RELEASE_NOTE_VERSIONS = 20` and `MAX_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: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4164
No description provided.