Skip to content

fix(notify): kwargs handling + README SMS docs#185

Merged
ywatanabe1989 merged 2 commits intomainfrom
develop
Mar 14, 2026
Merged

fix(notify): kwargs handling + README SMS docs#185
ywatanabe1989 merged 2 commits intomainfrom
develop

Conversation

@ywatanabe1989
Copy link
Owner

Summary

  • Fix alert_async() passing irrelevant kwargs to backend constructors (caused call() to always fail from CLI)
  • Fix TwilioBackend.send() treating None kwargs as overrides instead of falling back to env vars
  • Update README with SMS documentation, CLI commands, and corrected MCP tool names

Test plan

  • scitex notify call "test" — now works (was failing)
  • scitex notify sms "test" — works
  • scitex notify backends — works
  • scitex mcp list-tools -m notify — shows 5 tools

🤖 Generated with Claude Code

ywatanabe1989 and others added 2 commits March 15, 2026 08:53
…with SMS

The alert_async() was passing **kwargs to get_backend(), which caused
TwilioBackend.__init__() to fail on unknown args like 'fallback'.
Backend constructors use env vars; send() receives kwargs separately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kwargs.get("to_number", self.to_number) returns None when key exists
with None value. Use `or self.to_number` to fall back to instance default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ywatanabe1989 ywatanabe1989 merged commit 0397b6d into main Mar 14, 2026
1 of 2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant