Use api.pluginConfig directly for Dirigent runtime config #20

Merged
hzhang merged 2 commits from fix/use-pluginconfig-runtime-config into main 2026-04-01 20:32:39 +00:00
Collaborator

Summary

  • remove getLivePluginConfig and stop re-reading plugin config from api.config
  • normalize runtime config from api.pluginConfig once and pass it through hooks, commands, and tools
  • prevent secret redaction from breaking moderatorBotToken after gateway restart

Context

Dirigent moderator startup was reading config via api.config.plugins.entries.dirigent.config, which can surface redacted secret placeholders after restart. This made moderatorBotToken appear set while actually resolving to OPENCLAW_REDACTED and caused Discord auth failure.

Testing

  • reviewed all plugin call sites that depended on getLivePluginConfig
  • rebuilt local dist via npm run prepare
## Summary - remove getLivePluginConfig and stop re-reading plugin config from api.config - normalize runtime config from api.pluginConfig once and pass it through hooks, commands, and tools - prevent secret redaction from breaking moderatorBotToken after gateway restart ## Context Dirigent moderator startup was reading config via api.config.plugins.entries.dirigent.config, which can surface redacted secret placeholders after restart. This made moderatorBotToken appear set while actually resolving to __OPENCLAW_REDACTED__ and caused Discord auth failure. ## Testing - reviewed all plugin call sites that depended on getLivePluginConfig - rebuilt local dist via npm run prepare
orion added 1 commit 2026-04-01 20:03:35 +00:00
nav added 1 commit 2026-04-01 20:17:01 +00:00
hzhang merged commit 9fa71f37bf into main 2026-04-01 20:32:39 +00:00
hzhang deleted branch fix/use-pluginconfig-runtime-config 2026-04-01 20:32:39 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nav/Dirigent#20