You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ai-bot): make bot account email configurable via AI_BOT_EMAIL env var
The AI bot email was hardcoded to huly.ai.bot@hc.engineering, causing
self-hosted deployments to send notifications to an unreachable address.
Add AI_BOT_EMAIL env var to the ai-bot service and transactor:
- ai-bot service: reads AI_BOT_EMAIL, calls setAiBotAccountEmail() on
startup, uses it for signUp/assignWorkspace/identity lookups
- transactor: reads AI_BOT_EMAIL, calls setAiBotAccountEmail() so
middleware recognizes the bot as a service account
- server plugin triggers: use getAiBotEmailSocialKey() for DB queries
- middleware: import from @hcengineering/ai-bot instead of duplicating
the hardcoded string
- client plugin unchanged: queries by the default constant, which still
works because the bot retains its original social identity
Defaults to huly.ai.bot@hc.engineering when unset (no behavior change).
Tested on self-hosted K8s: bot registers new social identity, DMs work,
0 restarts on both services.
Resolveshcengineering/huly-selfhost#239
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Don Kendall <kendall@donkendall.com>
0 commit comments