Skip to content

fix: stop hook executing multiple times due to duplicate config loading#1175

Merged
lewis617 merged 1 commit into
mainfrom
worktree-bright-brave-deer
May 28, 2026
Merged

fix: stop hook executing multiple times due to duplicate config loading#1175
lewis617 merged 1 commit into
mainfrom
worktree-bright-brave-deer

Conversation

@lewis617
Copy link
Copy Markdown
Collaborator

loadConfigurationFromWaveConfig() was called multiple times during init
(initializationService + liveConfigManager reload) and used
mergeHooksConfiguration() which appends, causing the same hook from
settings.json to be registered 2-3+ times.

Fix: track the three hook sources (programmatic, plugin, wave config)
separately and replace (not append) wave config hooks on each reload.
A new rebuildConfiguration() merges all sources into the final config.

loadConfigurationFromWaveConfig() was called multiple times during init
(initializationService + liveConfigManager reload) and used
mergeHooksConfiguration() which appends, causing the same hook from
settings.json to be registered 2-3+ times.

Fix: track the three hook sources (programmatic, plugin, wave config)
separately and replace (not append) wave config hooks on each reload.
A new rebuildConfiguration() merges all sources into the final config.
@lewis617 lewis617 merged commit 892d5a1 into main May 28, 2026
1 check passed
@lewis617 lewis617 deleted the worktree-bright-brave-deer branch May 28, 2026 11:06
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.

1 participant