Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
valid headless login failed because the billing parser required a
planobject that suno omits for some authenticated accounts. the expiry check also rejected jwt-only sessions 30 minutes before their actual expiry, even when suno still accepted them.make
planoptional display metadata, keeptotal_credits_leftrequired, and omit the plan label when it is absent. use the jwt's actualexpclaim for local expiry checks. server-side rejection still uses the existing refresh-or-error path.validation:
cargo fmt --checkcargo clippy --locked --release --bin suno -- -D warningscargo build --locked --releasewith lower-memory profile settings on the local arm64 hostrustc --testagainst the built dependenciesauth --jwt-stdin, saved-sessionauth, and json/tablecreditschecks passed; verified again after the old 30-minute cutoff0600; no music was generatedthe full cargo test suite was not run locally because the host is under memory and disk pressure. the existing ci workflow runs it.
the billing issue overlaps #4, #7, #11, and #17. this patch stays focused on optional plan metadata and jwt-only session expiry.