Skip to content

fix(slack): publish Home view through the initialized adapter#665

Merged
buremba merged 1 commit into
mainfrom
fix/slack-home-use-initialized-adapter
May 13, 2026
Merged

fix(slack): publish Home view through the initialized adapter#665
buremba merged 1 commit into
mainfrom
fix/slack-home-use-initialized-adapter

Conversation

@buremba
Copy link
Copy Markdown
Member

@buremba buremba commented May 13, 2026

Follow-up to #653/#663. Prod logs showed the Home publish failing with Cannot read properties of undefined (reading 'client')event.adapter from webhook-dispatched Slack events is a separate, uninitialized adapter instance (no @slack/web-api client), so publishHomeView blew up. Pass the registered/initialized adapter through SlackAppHomeDeps.adapter and use it for publishHomeView; event.adapter stays as a fallback. Tests/build/typecheck green.

🤖 Generated with Claude Code

`event.adapter` from webhook-dispatched events is a fresh adapter with no
`@slack/web-api` client, so `publishHomeView` threw 'Cannot read properties
of undefined (reading client)'. Pass the registered (initialized) adapter via
SlackAppHomeDeps and use it for publishing; keep event.adapter as a fallback.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@buremba buremba merged commit e1e549f into main May 13, 2026
13 of 14 checks passed
@buremba buremba deleted the fix/slack-home-use-initialized-adapter branch May 13, 2026 03:54
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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