Skip to content

feat(controls-plugin): compose sections across hook instances#292

Open
draggie wants to merge 2 commits into
callstackincubator:mainfrom
draggie:feat/controls-plugin-compose-sections
Open

feat(controls-plugin): compose sections across hook instances#292
draggie wants to merge 2 commits into
callstackincubator:mainfrom
draggie:feat/controls-plugin-compose-sections

Conversation

@draggie
Copy link
Copy Markdown
Contributor

@draggie draggie commented May 28, 2026

Description

Adds support for composing Controls Plugin sections from multiple useRozeniteControlsPlugin
hook instances. The hook now accepts either options or an updater function, so components can
extend previously registered sections instead of replacing them.

Related Issue

Fixes #284

Context

Previously, each hook instance sent its own full snapshot, so the last mounted/updated
component could overwrite controls registered elsewhere. This change adds a shared registry
that combines active registrations and keeps UI, updates, actions, and agent tools resolved
against the composed section list.

Testing

  • Manual playground check with a second hook instance registering Extra Section; confirmed
    both original controls and extra section appear and the extra toggle works.

@draggie draggie marked this pull request as ready for review May 28, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the possibility to extend sections for controls-plugin

1 participant