Skip to content

fix: increase root_event size to 64KiB#4011

Merged
forestileao merged 1 commit intomainfrom
fix/webhook-error-500
Apr 7, 2026
Merged

fix: increase root_event size to 64KiB#4011
forestileao merged 1 commit intomainfrom
fix/webhook-error-500

Conversation

@forestileao
Copy link
Copy Markdown
Collaborator

Summary

Increase the shared event payload size limit from 32 KiB to 64 KiB.

This fixes webhook requests that were failing with 500 when the emitted root event payload was larger than the previous global cap, including larger GitHub pull_request webhook payloads.

Changes

  • Updated DefaultMaxPayloadSize in pkg/workers/contexts/common.go
    • from 32 * 1024
    • to 64 * 1024

Why

Root event emission uses the shared payload size limit enforced by EventContext and ExecutionStateContext.

Some webhook payloads, especially GitHub PR events, can exceed 32 KiB. When that happened, event persistence returned event payload too large, which bubbled up as a 500 from the webhook endpoint.

Raising the limit to 64 KiB keeps the fix simple and avoids the broader jump to 256 KiB.

Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

@forestileao forestileao requested a review from lucaspin April 7, 2026 19:55
@forestileao
Copy link
Copy Markdown
Collaborator Author

👍

@forestileao forestileao merged commit 4adf255 into main Apr 7, 2026
5 checks passed
@forestileao forestileao deleted the fix/webhook-error-500 branch April 7, 2026 21:23
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.

1 participant