Skip to content

fix(shell): keep custom renderers editable by not polluting static state - #262

Merged
jgindin merged 1 commit into
mainfrom
fix-custom-renderers
Oct 12, 2026
Merged

jgindin merged 1 commit into
mainfrom
fix-custom-renderers

Conversation

@jgindin

@jgindin jgindin commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Keep StartupConfigStateService.renderers() strictly for static config.json renderers (matching apiKeys) instead of merging custom renderers from localStorage into it. Resolve selected custom renderers directly in SettingsService.activeRenderer() so custom renderers are not classified as read-only static items.

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

Keep StartupConfigStateService.renderers() strictly for static
config.json renderers (matching apiKeys) instead of merging custom
renderers from localStorage into it. Resolve selected custom renderers
directly in SettingsService.activeRenderer() so custom renderers are
not classified as read-only static items.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the handling of custom renderers by keeping the startup configuration renderers strictly static and resolving custom renderers dynamically in the settings service. It introduces a versioning signal to track custom renderer updates, prevents custom renderers from bypassing origin validation, and adds safe property lookup checks to avoid prototype pollution. Extensive E2E and unit tests have been added to verify these changes. There are no review comments to evaluate, and I have no additional feedback to provide.

@jgindin
jgindin requested a review from suyangw-g October 12, 2026 16:38
@github-actions

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit eabb0bf):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@jgindin
jgindin merged commit 039988b into main Oct 12, 2026
15 checks passed
@jgindin
jgindin deleted the fix-custom-renderers branch October 12, 2026 18:23
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.

2 participants