Skip to content

chore: release v0.102.0 - #754

Merged
stamp-build[bot] merged 2 commits into
mainfrom
cindy/release-0.102.0
Nov 12, 2026
Merged

stamp-build[bot] merged 2 commits into
mainfrom
cindy/release-0.102.0

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Cindy from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Claude limit resets through Claude Code's own interactive UI, and usage windows that say which model they count.

Claude: limit resets (#752)

  • New optional member Runtime.inspectLimitResets(installation, options?) (Claude only) lists the account's resets per kind: weekly, fable, full, and five_hour only with includeFiveHour: true. Each kind is available (with resetsLeft and expiresText), none, not_offered, unknown or not_checked; the result also carries the Claude Code version, and program: "legacy" / fiveHourSpent: true when the older program answered.
  • claudeRuntime now has redeemLimitReset(installation, { idempotencyKey, resetId }); for Claude resetId is required and names the kind. Claude's accountUsage still reports no limitResets: list them with inspectLimitResets, not from the usage snapshot.
  • Claude Code 2.1.322 has no -p, SDK or control-protocol form, so OAR drives the hidden /limit-reset <kind> command in a pseudo-terminal (the system script) 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.
  • At the 5-hour limit, Claude's older reset program spends its reset as soon as any /limit-reset opens. Without fiveHourLimitConsent: 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). A weekly, fable or full redeem without consent also needs Claude Code's cached feature flags to show the newer reset program, and otherwise answers consent_required. A five_hour redeem is itself the consent.
  • An idempotency key is remembered for the life of the process once its attempt typed a command: the same key gets the first answer, never a second Yes; the same key with another resetId rejects. An attempt that sent nothing is not remembered. Claude answers a timeout with not_attempted or unknown instead of rejecting (Codex still rejects).
  • Each call starts Claude Code's UI, which sends one 1-token model request at startup; on a subscription it likely counts as usage. inspectLimitResets is not a passive read: call it on the account owner's request and never poll it.
  • Linux only, with the system script (util-linux) available; anywhere else, or without it, the answer is unsupported_platform. (macOS's BSD script exits when its stdin is a socket, which Node pipes are there.)
  • Evidence: the screen recognisers come from Raft's offline harness, which drove the real 2.1.322 UI against a fake backend; the real server's Fable and full screens are unverified, and no real account's reset has been spent through OAR.

Source compatibility. New exported types: LimitResetInspection, LimitResetInspectOptions, LimitResetInspector, LimitResetKindStatus, LimitResetNotAttemptedReason, LimitResetUnsupportedReason, AccountUsageWindowScope; new option LimitResetOptions.fiveHourLimitConsent. LimitResetResult gains not_attempted (busy, deadline, usage_unread, startup_failed) and unknown (optionally fiveHourSpent), and its unsupported reason is now typed LimitResetUnsupportedReason (the account-usage reasons plus unsupported_platform, unsupported_version, reset_id_required, consent_required). Codex's behavior is unchanged, but a host with an exhaustive switch over these unions, or one that assigns the reason to AccountUsageUnsupportedReason, needs updating. A host that offered redeem only where redeemLimitReset exists now sees it on Claude too. oar list gains an inspectLimitResets key.

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"; Codex limitName, which can be a quota alias such as gpt-reserve). Omitted, meaning unknown, where the runtime says neither (Claude's OAuth apps window, Codex's other unnamed buckets, Kimi's name-only rows).
  • scope says 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, which rateLimited already weighs.

Also in this release: spawn validation errors no longer echo a rejected argument or environment value (#751).

🤖 Generated with Claude Code

Cindy and others added 2 commits November 12, 2026 09:02
@stamp-build
stamp-build Bot merged commit fa3536a into main Nov 12, 2026
40 checks passed
@stamp-build
stamp-build Bot deleted the cindy/release-0.102.0 branch November 12, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants