Skip to content

Webhook : tolerate malformed int config without crashing adapter init - #79555

Closed
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/webhook-config-int-guard
Closed

Webhook : tolerate malformed int config without crashing adapter init#79555
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/webhook-config-int-guard

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Summary

  • WebhookAdapter.__init__ used unguarded int() on port, rate_limit, max_body_bytes, and script_timeout_seconds.
  • Malformed config (port: "abc", rate_limit: "nope") raises ValueError during construction and takes the webhook platform down.
  • Add _coerce_int() with named defaults — same posture as Teams/Raft config int guards.

…init

Unguarded int() on port, rate_limit, max_body_bytes, and script_timeout_seconds
ValueErrors during WebhookAdapter construction and takes the platform down.
Add _coerce_int with defaults, mirroring Teams/Raft config int guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/webhook Webhook / API server sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades labels Aug 5, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

@aydnOktay aydnOktay closed this Aug 19, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

1 similar comment
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/webhook Webhook / API server sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants