Repository navigation
chore: release v0.102.0 - #754
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… for claude Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Claude limit resets through Claude Code's own interactive UI, and usage windows that say which model they count.
Claude: limit resets (#752)
Runtime.inspectLimitResets(installation, options?)(Claude only) lists the account's resets per kind:weekly,fable,full, andfive_houronly withincludeFiveHour: true. Each kind isavailable(withresetsLeftandexpiresText),none,not_offered,unknownornot_checked; the result also carries the Claude Codeversion, andprogram: "legacy"/fiveHourSpent: truewhen the older program answered.claudeRuntimenow hasredeemLimitReset(installation, { idempotencyKey, resetId }); for ClauderesetIdis required and names the kind. Claude'saccountUsagestill reports nolimitResets: list them withinspectLimitResets, not from the usage snapshot.-p, SDK or control-protocol form, so OAR drives the hidden/limit-reset <kind>command in a pseudo-terminal (the systemscript) and reads the screen. Every screen must match the recorded text word for word apart from dates, counts and percentages (the whole confirmation dialog included); anything else ends the attempt with Esc. Yes is sent at most once, never while inspecting./limit-resetopens. WithoutfiveHourLimitConsent: true, OAR reads usage right before the first command and types nothing when the account is at the limit (consent_required) or the read fails (not_attempted/usage_unread). Aweekly,fableorfullredeem without consent also needs Claude Code's cached feature flags to show the newer reset program, and otherwise answersconsent_required. Afive_hourredeem is itself the consent.resetIdrejects. An attempt that sent nothing is not remembered. Claude answers a timeout withnot_attemptedorunknowninstead of rejecting (Codex still rejects).inspectLimitResetsis not a passive read: call it on the account owner's request and never poll it.script(util-linux) available; anywhere else, or without it, the answer isunsupported_platform. (macOS's BSDscriptexits when its stdin is a socket, which Node pipes are there.)Source compatibility. New exported types:
LimitResetInspection,LimitResetInspectOptions,LimitResetInspector,LimitResetKindStatus,LimitResetNotAttemptedReason,LimitResetUnsupportedReason,AccountUsageWindowScope; new optionLimitResetOptions.fiveHourLimitConsent.LimitResetResultgainsnot_attempted(busy,deadline,usage_unread,startup_failed) andunknown(optionallyfiveHourSpent), and itsunsupportedreason is now typedLimitResetUnsupportedReason(the account-usage reasons plusunsupported_platform,unsupported_version,reset_id_required,consent_required). Codex's behavior is unchanged, but a host with an exhaustiveswitchover these unions, or one that assigns the reason toAccountUsageUnsupportedReason, needs updating. A host that offered redeem only whereredeemLimitResetexists now sees it on Claude too.oar listgains aninspectLimitResetskey.Account usage: window scope (#753)
AccountUsageWindow.scope:{ kind: "account" }when the runtime reports the window as the account's,{ kind: "model", name }when it reports it as one model's, with the runtime's own name kept as given (Claude "Opus", "Sonnet", "Fable"; CodexlimitName, which can be a quota alias such asgpt-reserve). Omitted, meaning unknown, where the runtime says neither (Claude's OAuth apps window, Codex's other unnamed buckets, Kimi's name-only rows).scopesays what a window counts, not whether a full one stops work: extra usage can carry Claude, Grok and Kimi accounts past a full subscription window, whichrateLimitedalready weighs.Also in this release: spawn validation errors no longer echo a rejected argument or environment value (#751).
🤖 Generated with Claude Code