[PR #8549] [MERGED] feat(agents): one shared header for every agent settings page #8665

Closed
opened 2026-11-07 16:46:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8549
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/agent-settings-header-slot


📝 Commits (3)

  • 0448d6d feat(agents): one shared header for every agent settings page
  • 5bca6bc test(regressions): pin the shared agent header in FeatureAgentDetailHost
  • e19abcf fix(agents): find the store entry by package id and skip an empty actions row

📊 Changes

8 files changed (+258 additions, -133 deletions)

View changed files

📝 docs/development/optional-agent-packages.md (+11 -0)
➕ packages/client/src/components/agents/AgentDetailHeader.tsx (+100 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+59 -107)
📝 packages/client/src/components/agents/FeatureAgentDetailHost.tsx (+70 -18)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/shared/src/schemas/capability-package.schema.ts (+10 -1)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+6 -5)
📝 scripts/regressions/open-issues.regression.ts (+1 -2)

📄 Description

Why

Agent settings pages did not look the same. Built-in agents show the store banner and logo. Package pages such as Long-Term Memory draw their own header, with their own buttons. The minimal page shows only a plain row. Package authors also had no way to add their buttons ("Add memories", help) to an Engine header.

No linked issue: this is planned follow-up work from #8540 (the "In this chat" settings button).

What changed

  • New AgentDetailHeader: Back, store banner, logo, name, an "author · version" line and actions. AgentEditor and FeatureAgentDetailHost both use it.
  • The minimal agent page now has the banner header, an Active toggle for the open chat, and Manage package.
  • Capability API 1.390: a package with contributions.agentDetail can set "header": "engine". The Engine then draws the header and passes engineHeader: true and headerSlot (an element in the header actions) to the detail view. The package can portal its own header buttons into the slot. Packages without the flag do not change.
  • Docs: "Capability API 1.390" in docs/development/optional-agent-packages.md. The regression pins now expect 1.390.

The Long-Term Memory and Hierarchical Maps opt-in goes to Marinara-Agents in a separate PR.

Validation

  • pnpm check passes. The one lint warning (serverRun) is in older code.
  • pnpm localization:check passes.
  • capability-package-lifecycle regression passes.

Manual verification

  • Manually verify a built-in agent's settings page header (banner, Back, Save/Export/Delete) looks as before, also when scrolled (compact).
  • Manually verify a downloaded agent without its own page shows the banner header, the Active toggle (with a chat open) and Manage package.
  • Manually verify Long-Term Memory (no opt-in yet) still shows its own page as before.
  • Manually verify at phone width.

🔄 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/8549 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/agent-settings-header-slot` --- ### 📝 Commits (3) - [`0448d6d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0448d6d19a6352abeec569af29b45f4ecf111f19) feat(agents): one shared header for every agent settings page - [`5bca6bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5bca6bcc7b34b5018efdff585ac412d3537412fc) test(regressions): pin the shared agent header in FeatureAgentDetailHost - [`e19abcf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e19abcf2029174e41d9ae1861590a1e50ea050ee) fix(agents): find the store entry by package id and skip an empty actions row ### 📊 Changes **8 files changed** (+258 additions, -133 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/optional-agent-packages.md` (+11 -0) ➕ `packages/client/src/components/agents/AgentDetailHeader.tsx` (+100 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+59 -107) 📝 `packages/client/src/components/agents/FeatureAgentDetailHost.tsx` (+70 -18) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+10 -1) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+6 -5) 📝 `scripts/regressions/open-issues.regression.ts` (+1 -2) </details> ### 📄 Description ## Why Agent settings pages did not look the same. Built-in agents show the store banner and logo. Package pages such as Long-Term Memory draw their own header, with their own buttons. The minimal page shows only a plain row. Package authors also had no way to add their buttons ("Add memories", help) to an Engine header. No linked issue: this is planned follow-up work from #8540 (the "In this chat" settings button). ## What changed - New `AgentDetailHeader`: Back, store banner, logo, name, an "author · version" line and actions. `AgentEditor` and `FeatureAgentDetailHost` both use it. - The minimal agent page now has the banner header, an **Active** toggle for the open chat, and Manage package. - Capability API **1.390**: a package with `contributions.agentDetail` can set `"header": "engine"`. The Engine then draws the header and passes `engineHeader: true` and `headerSlot` (an element in the header actions) to the `detail` view. The package can portal its own header buttons into the slot. Packages without the flag do not change. - Docs: "Capability API 1.390" in `docs/development/optional-agent-packages.md`. The regression pins now expect 1.390. The Long-Term Memory and Hierarchical Maps opt-in goes to Marinara-Agents in a separate PR. ## Validation - `pnpm check` passes. The one lint warning (`serverRun`) is in older code. - `pnpm localization:check` passes. - `capability-package-lifecycle` regression passes. ## Manual verification - [ ] Manually verify a built-in agent's settings page header (banner, Back, Save/Export/Delete) looks as before, also when scrolled (compact). - [ ] Manually verify a downloaded agent without its own page shows the banner header, the Active toggle (with a chat open) and Manage package. - [ ] Manually verify Long-Term Memory (no opt-in yet) still shows its own page as before. - [ ] Manually verify at phone width. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:20 +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#8665
No description provided.