fix: correct null check for gatewayAuthMeta in subscription validation#455
Conversation
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Tahar BOUNSIAR.
|
gatewayAuthMeta is declared as an optional property (undefined when unset), but the check compared against null, making the condition always false. This meant --hide-claude-auth never blocked claude.ai subscription users when no gateway was configured.
d1d9033 to
b0a01d7
Compare
|
We require contributors to sign our Contributor License Agreement, and we don't have @tbounsiar on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
We require contributors to sign our Contributor License Agreement, and we don't have @tbounsiar on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
Summary
gatewayAuthMetais declared as an optional property (undefinedwhen unset), but the subscription validation compared it againstnull--hide-claude-authnever blocked claude.ai subscription users when no gateway was configured=== nullto!this.gatewayAuthMetato match the actual property semanticsTest plan
npm run buildcompiles cleannpm run lintpasses