fix(chatwoot): fix nullish content field - #243
Merged
Merged
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a Chatwoot webhook ingestion crash by aligning the webhook payload schema with the Chatwoot API behavior where content may be omitted.
Changes:
- Allow
contentto be missing/undefined in the Chatwoot webhook Zod schema (nullish()). - Add a
pnpm-lock.yamlfor the Chatwoot integration. - Update the Intercom HITL
pnpm-lock.yamldependency set (now includesturndown).
Reviewed changes
Copilot reviewed 1 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| integrations/intercom-hitl/pnpm-lock.yaml | Updates locked dependencies (includes turndown entries). |
| integrations/chatwoot/src/misc/types.ts | Makes content optional/nullable in the webhook payload schema to prevent validation failures. |
| integrations/chatwoot/pnpm-lock.yaml | Adds a lockfile for the Chatwoot integration dependency graph. |
Files not reviewed (1)
- integrations/intercom-hitl/pnpm-lock.yaml: Generated file
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
LeoSM-07
approved these changes
Jul 27, 2026
Math-Fauch
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes an issue described in https://linear.app/botpress/issue/SHK-1588/pluschatwoot-agent-side-hitl-handback-crashes-content-field-required
The issue is caused by misalignment with Chatwoot API where ther content field is not always passed. We validate it as non-optional and this causes a lot of errors