Issue #660 Add --accept-license-terms flag to publish and sync #685
Issue #660 Add --accept-license-terms flag to publish and sync #685podthesquire wants to merge 1 commit into
Conversation
|
@podthesquire is attempting to deploy a commit to the Amantus Machina Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR adds an Key observations:
Confidence Score: 3/5
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ce40686c9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| version, | ||
| changelog, | ||
| acceptLicenseTerms: true, | ||
| acceptLicenseTerms: options.acceptLicenseTerms === true, |
There was a problem hiding this comment.
Preserve default license acceptance for publish payload
This change makes cmdPublish send acceptLicenseTerms: false whenever --accept-license-terms is omitted, which breaks existing clawhub publish/clawhub sync workflows that previously succeeded without that flag. The server-side publish handler rejects any payload where this field is not true (convex/httpApiV1/skillsV1.ts checks payload.acceptLicenseTerms !== true), so this introduces a runtime 400 regression for callers that do not add the new option.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Clawhub implemented a breaking change requiring this field be set for the API calls. Defaulting to false maintains the current intended behavior--preventing users from submitting without accepting license terms.
|
I had to update my local CLI implementation to work around this. |
|
Thanks for taking this on — I reviewed the current state from a live publisher perspective. My recommendation is:
We independently reproduced this on So from my side:
|
|
Closing this as not needed. Issue #660 is a real problem for the published npm CLI, but this PR is fixing it in the wrong direction. Current server behavior requires This PR changes the behavior from:
to:
That would reintroduce the publish failure on the default CLI path, which is the opposite of what issue #660 needs. I also verified that the existing publish test passes on current So the underlying issue here is a release gap, not a missing flag:
Thanks for digging into the bug, but there isn’t anything here we should merge. |
|
It's odd that you would have a legal contract, but have that automatically accepted as part of the CLI use without the user knowing. That wouldn't hold up in court. On the other hand, I get not wanting to break workflows for all of your users. But that's where we were, so... ¯_(ツ)_/¯ |
Fix for issue #660
Summary
Changes
Test plan