Skip to content

[CSA-CP] [Silabs] : Closure App Refactor (#73283) - #1255

Merged
sarthak shaha (Sarthak-Shaha) merged 1 commit into
release_2.10-1.6.1from
csa-cp/clousre_app_refactor
Oct 13, 2026
Merged

sarthak shaha (Sarthak-Shaha) merged 1 commit into
release_2.10-1.6.1from
csa-cp/clousre_app_refactor

Conversation

@Sarthak-Shaha

@Sarthak-Shaha sarthak shaha (Sarthak-Shaha) commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

CSA CP : project-chip/connectedhomeip#73283

Summary

Refactor the Silicon Labs Closure App to support the project upgrade architecture and customer customization.

  1. Merge DataModelCallbacks functionality into AppTask.
  2. Streamline the application APIs.
  3. Apply the CRTP-based architecture to AppTask, with AppTaskImpl providing the override layer and CustomerAppTask providing customer customization.
  4. Add a similar CRTP chain for the Closure Manager: ClosureManager → ClosureManagerImpl → CustomerAppManager.
  5. Retain virtual dispatch for Closure Manager APIs that are invoked from the shared closure-common implementation.
  6. Add generation tracking for closure actions to prevent stale asynchronous events from acting on a newer action.

Additional API fixes

Some ClosureManager implementation APIs previously shared names with the APIs exposed through the override layer, preventing the intended overrides from being dispatched correctly. The default implementations have been separated into *Default() APIs to allow the CRTP override path to work as intended.

Related issues

N/A

Testing

* [SL-UP] : Closure App Refactor (#983)

* fix macros

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix spelling

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename base APIs with suffix default

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix macros

* fix the race condition

* address comments

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@Sarthak-Shaha
sarthak shaha (Sarthak-Shaha) requested a review from a team as a code owner October 8, 2026 17:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T17:21:48.588971Z 3171037 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 317103735e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread examples/closure-app/silabs/src/ClosureManager.cpp
@Sarthak-Shaha sarthak shaha (Sarthak-Shaha) added the csa-cp This TAG indicates that this commit is a cherry-pick from a CSA commit. label Oct 8, 2026
@Sarthak-Shaha
sarthak shaha (Sarthak-Shaha) merged commit d49f702 into release_2.10-1.6.1 Oct 13, 2026
86 checks passed
@Sarthak-Shaha
sarthak shaha (Sarthak-Shaha) deleted the csa-cp/clousre_app_refactor branch October 13, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

csa-cp This TAG indicates that this commit is a cherry-pick from a CSA commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants