PermissionUpdate.to_dict() 发送 "ruleContent": null; CLI 会默默丢弃更新,因此对于没有内容的规则,"永远允许"永远不会生效

作者: kosio-dev创建于 2026年9月24日更新于 2026年9月25日

The `to_dict()` method should omit the `ruleContent` field when it is `None`, as in the TypeScript SDK types, where the field is optional. Alternatively, the CLI should accept `null`, or at least report the rejected update instead of dropping it silently.

内容来源: anthropics/claude-agent-sdk-python