Skip to content

tolerate malformed SMS_WEBHOOK_PORT on adapter init - #80182

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

tolerate malformed SMS_WEBHOOK_PORT on adapter init#80182
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/sms-webhook-port-int-guard

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Summary

  • SmsAdapter used unguarded int() for SMS_WEBHOOK_PORT.
  • A malformed env value raised during construction and took the Twilio webhook adapter down instead of falling back to the documented default port.
  • Add a small int coercion helper and regression coverage for the invalid-port case.

SmsAdapter used unguarded int() for SMS_WEBHOOK_PORT. A malformed env value
raised during construction and took the Twilio webhook adapter down instead of
falling back to the documented default port.

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/plugins Plugin system and bundled plugins sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades duplicate This issue or pull request already exists labels Aug 6, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #50211. Both fix malformed SMS_WEBHOOK_PORT initialization with fallback to the default; #50211 is the earlier open PR and uses the shared env_int helper.

@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/plugins Plugin system and bundled plugins duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants