mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
4296447aad
Bolt's App constructor schedules a background auth.test that can't be awaited or error-handled - in unit tests it phoned home to api.slack.com with dummy tokens, leaving ~15 unhandled invalid_auth rejections racing the run's end (the unit (20.x) flake). deferInitialization: true makes construction genuinely side-effect-free; start() runs app.init() first, so auth/config errors surface to the caller, followed by the existing awaited auth.test. Test fake App grows the matching init() stub. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>