[PR #7477] [MERGED] feat(agents): show release notes for every version an update skips #7752

Closed
opened 2026-10-24 04:07:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7477
Author: @Promansis
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Promansis

Base: staging ← Head: feature/agent-update-notes-range


📝 Commits (4)

  • 1a5215f feat(agents): show release notes for every version an update skips
  • 7010122 docs(changelog): reference #7476 for the update release notes entry
  • e99a6dd Merge remote-tracking branch 'upstream/staging' into feature/agent-update-notes-range
  • fdeefbb Merge branch 'staging' into feature/agent-update-notes-range

📊 Changes

9 files changed (+210 additions, -44 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+3 -1)
➕ packages/client/src/components/agents/AgentReleaseNoteList.tsx (+95 -0)
📝 packages/client/src/components/agents/AgentUpdateDialog.tsx (+13 -6)
📝 packages/client/src/components/agents/AgentVersionHistory.tsx (+4 -15)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+13 -5)
📝 packages/shared/src/schemas/capability-package.schema.ts (+9 -9)
📝 scripts/regressions/capability-release-notes.regression.ts (+69 -8)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7476

Owner: @Promansis (assignee of #7476).

Why this change

When an installed Agent is several versions behind, Agent updates available → What changed showed the notes for only the newest version. Updating Long-Term Memory from 1.4.24 to 1.4.28 showed only the 1.4.28 notes. The notes for 1.4.25 to 1.4.27 were already published in the catalog's release-notes file but never reached the dialog. The notable-change dot had the same gap: it came from the newest version only, so a notable middle version showed no dot.

What changed

  • Server: attachCapabilityReleaseNotes attaches every note above the installed version up to and including the target, newest first. releaseHighlight is true when any note in range is highlighted. An update with no note in range is returned unchanged.
  • Shared type: CapabilityPackageUpdate.releaseNotes is now CapabilityPackageVersionNote[] instead of a string. Server and client ship together, so the API needs no compatibility handling.
  • Client:
    • New AgentReleaseNoteList holds the per-version list. The catalog's Version history uses it unclamped, so it renders as before.
    • The update dialog shows What changed (N) when more than one version is listed. Each version's notes are cut to two lines with a More/Less button that appears only when the text is cut off. A single version shows in full.
    • Notes stay plain text, never markdown or HTML.
  • Localization: three new keys in en.json only (More, Less, What changed ({{count}})).
  • Tests: capability-release-notes.regression.ts is rewritten for the range semantics. The one e2e mock that sent releaseNotes as a string now sends an array.
  • Changelog: [Unreleased] entry added.

No change to the release-notes file format or to Marinara-Agents.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run by the author's agent on the merge tip (these are not ticks; the boxes above are for the human contributor):

  • node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-release-notes.regression.ts passes, and fails against the previous server code.
  • pnpm check exits 0 (one existing lint warning in HomeProfessorMariChat.tsx, not touched here).
  • pnpm localization:check passes.
  • A temporary Playwright probe (not committed) with a three-version mock passed on desktop-chromium and mobile-chromium: the What changed (3) label, the two-line cut, More/Less on the long note only, and the dialog fitting the viewport.
  • A read-only model review of the diff found one defect (the e2e mock above) and four low items; all were fixed before this PR.

Known failing test, not caused by this PR: e2e/core-flows.e2e.ts "Agent updates share one dismissible prompt and remain available after Not now" fails at expect.poll(() => declineRequests).toBe(2) on clean upstream/staging as well. The client now posts to /capability-packages/updates/decline, but the test's mock only matches */updates/*/decline. Every assertion in that test that touches this feature passes before that point. Left out of this PR to keep it scoped; happy to fold the one-line mock fix in if wanted.

Not run: local CodeRabbit (no CLI available here), mobile-webkit, container build.

Manual verification notes

  • Manually verify in the browser that an Agent several versions behind shows every skipped version's notes, newest first, under What changed (N).
  • Manually verify that a long note is cut to two lines with More, that More expands only that version, and that a short note shows no 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 on a real phone, especially Safari/WebKit, where line-clamp with pre-wrap has not been exercised.
  • Manually verify the catalog's Version history looks unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not attached yet. The clamped and expanded states were captured locally from the probe on desktop and mobile; add before/after screenshots from a manual run.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Agent update dialogs now show release notes for every version between the installed and available versions, ordered newest first.
    • Each version’s notes start collapsed to two lines, with a More/Less control when needed. The update indicator appears when any included version has a notable change.
    • Version history also displays release notes by version.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7477 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature/agent-update-notes-range` --- ### 📝 Commits (4) - [`1a5215f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a5215ff741140bc1b6c71e02e66070d53d84feb) feat(agents): show release notes for every version an update skips - [`7010122`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7010122e7c0d118cc308841b6ac04fec54faf803) docs(changelog): reference #7476 for the update release notes entry - [`e99a6dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e99a6dd0b1965b59441ffa00638bf65a6d58518d) Merge remote-tracking branch 'upstream/staging' into feature/agent-update-notes-range - [`fdeefbb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fdeefbb616339b3f32f474cf71e803d0b12bbe00) Merge branch 'staging' into feature/agent-update-notes-range ### 📊 Changes **9 files changed** (+210 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+3 -1) ➕ `packages/client/src/components/agents/AgentReleaseNoteList.tsx` (+95 -0) 📝 `packages/client/src/components/agents/AgentUpdateDialog.tsx` (+13 -6) 📝 `packages/client/src/components/agents/AgentVersionHistory.tsx` (+4 -15) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+13 -5) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+9 -9) 📝 `scripts/regressions/capability-release-notes.regression.ts` (+69 -8) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #7476 Owner: @Promansis (assignee of #7476). ## Why this change When an installed Agent is several versions behind, **Agent updates available → What changed** showed the notes for only the newest version. Updating Long-Term Memory from 1.4.24 to 1.4.28 showed only the 1.4.28 notes. The notes for 1.4.25 to 1.4.27 were already published in the catalog's release-notes file but never reached the dialog. The notable-change dot had the same gap: it came from the newest version only, so a notable middle version showed no dot. ## What changed - **Server:** `attachCapabilityReleaseNotes` attaches every note above the installed version up to and including the target, newest first. `releaseHighlight` is true when any note in range is highlighted. An update with no note in range is returned unchanged. - **Shared type:** `CapabilityPackageUpdate.releaseNotes` is now `CapabilityPackageVersionNote[]` instead of a string. Server and client ship together, so the API needs no compatibility handling. - **Client:** - New `AgentReleaseNoteList` holds the per-version list. The catalog's Version history uses it unclamped, so it renders as before. - The update dialog shows **What changed (N)** when more than one version is listed. Each version's notes are cut to two lines with a **More/Less** button that appears only when the text is cut off. A single version shows in full. - Notes stay plain text, never markdown or HTML. - **Localization:** three new keys in `en.json` only (`More`, `Less`, `What changed ({{count}})`). - **Tests:** `capability-release-notes.regression.ts` is rewritten for the range semantics. The one e2e mock that sent `releaseNotes` as a string now sends an array. - **Changelog:** `[Unreleased]` entry added. No change to the release-notes file format or to Marinara-Agents. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run by the author's agent on the merge tip (these are not ticks; the boxes above are for the human contributor): - `node ./scripts/run-regressions.mjs --filter scripts/regressions/capability-release-notes.regression.ts` passes, and fails against the previous server code. - `pnpm check` exits 0 (one existing lint warning in `HomeProfessorMariChat.tsx`, not touched here). - `pnpm localization:check` passes. - A temporary Playwright probe (not committed) with a three-version mock passed on `desktop-chromium` and `mobile-chromium`: the **What changed (3)** label, the two-line cut, **More/Less** on the long note only, and the dialog fitting the viewport. - A read-only model review of the diff found one defect (the e2e mock above) and four low items; all were fixed before this PR. **Known failing test, not caused by this PR:** `e2e/core-flows.e2e.ts` "Agent updates share one dismissible prompt and remain available after Not now" fails at `expect.poll(() => declineRequests).toBe(2)` on clean `upstream/staging` as well. The client now posts to `/capability-packages/updates/decline`, but the test's mock only matches `*/updates/*/decline`. Every assertion in that test that touches this feature passes before that point. Left out of this PR to keep it scoped; happy to fold the one-line mock fix in if wanted. **Not run:** local CodeRabbit (no CLI available here), `mobile-webkit`, container build. ### Manual verification notes - Manually verify in the browser that an Agent several versions behind shows every skipped version's notes, newest first, under **What changed (N)**. - Manually verify that a long note is cut to two lines with **More**, that **More** expands only that version, and that a short note shows no 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 on a real phone, especially Safari/WebKit, where `line-clamp` with `pre-wrap` has not been exercised. - Manually verify the catalog's **Version history** looks unchanged. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not attached yet. The clamped and expanded states were captured locally from the probe on desktop and mobile; add before/after screenshots from a manual run. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Agent update dialogs now show release notes for every version between the installed and available versions, ordered newest first. * Each version’s notes start collapsed to two lines, with a **More/Less** control when needed. The update indicator appears when any included version has a notable change. * Version history also displays release notes by version. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:07:08 +07:00
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#7752
No description provided.