[PR #4603] [MERGED] fix: render enabled conversation capability slots #6439

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4603
Author: @Gunterlie
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/5/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/generic-conversation-capability-slots


📝 Commits (7)

  • ae92414 fix: render enabled conversation capability slots
  • 09f0032 Merge branch 'staging' into fix/generic-conversation-capability-slots
  • c8af14f fix: style capability toolbar actions consistently
  • 88ce34a Merge remote-tracking branch 'origin/fix/generic-conversation-capability-slots' into fix/generic-conversation-capability-slots
  • d2a1b0d Merge branch 'staging' into fix/generic-conversation-capability-slots
  • 13f8eab refactor: trust active agent metadata contract
  • ccf43ef Merge branch 'staging' into fix/generic-conversation-capability-slots

📊 Changes

2 files changed (+96 additions, -1 deletions)

View changed files

📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+58 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+38 -1)

📄 Description

Summary

Closes #4600

Render enabled capability packages that declare conversation-toolbar or conversation-surface in Conversation and Roleplay chats.

Why

The shared manifest schema accepts these slots, but the client previously mounted only Calls through a package-kind hardcode. Other enabled feature packages could therefore declare a chat launcher and surface without either ever appearing.

Implementation

  • Select active installed packages with client entrypoints whose package ID or contributed agent-detail ID is enabled in the active chat.
  • Mount declared toolbar and surface views through the existing CapabilityElement contract.
  • Apply the same behavior to Conversation and Roleplay chat surfaces.
  • Exclude the existing conversation-calls kind from generic discovery so Calls keeps its compatibility path without mounting twice.

Validation

  • pnpm check passed, including localization audit, lint, shared/server/client production builds.
  • pnpm version:check passed.
  • pnpm guard:installer-artifacts passed.
  • git diff --check passed.

Manual verification

Pending maintainer verification with the Virtual Phone package in Conversation and Roleplay chats. The PR remains a draft until the toolbar button, overlay, light/dark appearance, and mobile layout are exercised in a running Engine.

UI evidence

Bildschirmfoto 2026-08-04 um 23 39 34

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Added support for installed capabilities in chat conversations.
    • Enabled compatible tools and actions to appear in the conversation toolbar and near the message input.
    • Capabilities now adapt to the active agent and receive relevant conversation context.

🔄 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/4603 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/generic-conversation-capability-slots` --- ### 📝 Commits (7) - [`ae92414`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ae92414adbb9ad0154ef9b3fc57decb8a2b49c7a) fix: render enabled conversation capability slots - [`09f0032`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09f003283f1f405925f39eb85f3cc8616abe23e0) Merge branch 'staging' into fix/generic-conversation-capability-slots - [`c8af14f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8af14fc7bc6b637e9b9495a69d1651965de5b1e) fix: style capability toolbar actions consistently - [`88ce34a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/88ce34ae8f7beca843b45f66a350341eca526d74) Merge remote-tracking branch 'origin/fix/generic-conversation-capability-slots' into fix/generic-conversation-capability-slots - [`d2a1b0d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d2a1b0d97d09072c8955b6bb1a1a60114fe86e12) Merge branch 'staging' into fix/generic-conversation-capability-slots - [`13f8eab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/13f8eabeb0397f8b72012c85c94bdade404292cc) refactor: trust active agent metadata contract - [`ccf43ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ccf43ef1c3a09fb97c1a85235ecbebcbf97a26e3) Merge branch 'staging' into fix/generic-conversation-capability-slots ### 📊 Changes **2 files changed** (+96 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+58 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+38 -1) </details> ### 📄 Description ## Summary Closes #4600 Render enabled capability packages that declare `conversation-toolbar` or `conversation-surface` in Conversation and Roleplay chats. ## Why The shared manifest schema accepts these slots, but the client previously mounted only Calls through a package-kind hardcode. Other enabled feature packages could therefore declare a chat launcher and surface without either ever appearing. ## Implementation - Select active installed packages with client entrypoints whose package ID or contributed agent-detail ID is enabled in the active chat. - Mount declared toolbar and surface views through the existing `CapabilityElement` contract. - Apply the same behavior to Conversation and Roleplay chat surfaces. - Exclude the existing `conversation-calls` kind from generic discovery so Calls keeps its compatibility path without mounting twice. ## Validation - `pnpm check` passed, including localization audit, lint, shared/server/client production builds. - `pnpm version:check` passed. - `pnpm guard:installer-artifacts` passed. - `git diff --check` passed. ## Manual verification Pending maintainer verification with the Virtual Phone package in Conversation and Roleplay chats. The PR remains a draft until the toolbar button, overlay, light/dark appearance, and mobile layout are exercised in a running Engine. ## UI evidence <img width="237" height="40" alt="Bildschirmfoto 2026-08-04 um 23 39 34" src="https://github.com/user-attachments/assets/706181e9-02ed-4bff-9c2a-7d6be25ba437" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit * **New Features** * Added support for installed capabilities in chat conversations. * Enabled compatible tools and actions to appear in the conversation toolbar and near the message input. * Capabilities now adapt to the active agent and receive relevant conversation context. <!-- 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-23 04:10:26 +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#6439
No description provided.