Repository navigation
chore: release v0.50.0 - #293
Merged
Merged
Conversation
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.
Release OAR and CLI 0.50.0. This PR changes only the two package version fields.
Breaking: a failed turn is a union tagged by
failure(#280)TurnOutcomefailedis nowFailedTurn, exported:credentialexists only onfailure: "auth",resetsAtonly onfailure: "quota",statuson every class. A host that readsoutcome.credentialmust checkfailure === "auth"first, or it no longer compiles.Added
resetsAton a quota failure (feat: a failed turn says when the limit that refused it resets (resetsAt) #280): when the limit that refused the turn resets, where the runtime reports it. Only claude does: arate_limitfailure while claude's latestrate_limit_eventsays a subscription limit isrejected, overage does not take the requests, and a reset is named. It is the runtime's last report; a time already past means unknown. Codex's reset time exists only in its prose and is not parsed.usage().totalis claude's own running total (result.modelUsage), which counts the main loop, Task subagents, sidechains and compaction. Before, it was the main loop only (result.usage).SessionUsage.unattributed: what the total includes that nobyAgententry accounts for (claude's subagents and compaction, which its stream does not attribute per agent).byAgentplusunattributedsums tototal.SessionUsage.withChildren: the total plus the total of every session derived from this one ingraph()(codex child threads, grok child sessions, OpenCode v2 children), each counted once.cause: { method, native }(redacted), so a host can diagnose a failure even when no Session was returned.Fixed
datais redacted (fix: preserve native open errors and clarify retry timing #284); it used to bypass MCP credential redaction.cause: { method: "initialize", native }, instead of returning a Session that exits before its first prompt. A normal resume now waits for claude'sinitializeanswer (about 1 s observed).initializeanswer is no longer recorded (fix(claude): confirm resume readiness before opening #287): it carries the account's email, organization and subscription. This affected every open withserviceTiersince that option shipped.OAR_PI_AGENT_DIRset,createPiProviderAuth()andcreatePiModelCatalog()read and write that dir'sauth.jsonandmodels.jsoninstead of pi's own. An emptyOAR_PI_AGENT_DIRnow counts as unset everywhere, instead of becoming a relative path.Behavior changes
failurebefore readingcredentialorresetsAt(see above).quota(withresetsAt) instead ofrate_limited;failureAdvicesaysretry: "later"for them.get_usageonce at open for its baseline (consumed privately, never recorded); if that answer does not come,usage().totalstays null for the Session rather than reporting the lifetime figure.serviceTier,serviceTier()is null until the first turn reports it; noservice_tierevent is emitted at open.[redacted]where a known credential appeared.Known issues
createPiModelCatalog().providers()[].configuredis false for a stored credential untilrefresh()(pi model catalog: providers()[].configured is false for stored credentials #291). UsecreatePiProviderAuth().status(id).Validation: every PR passed all 17 checks on its final head. #284, #286, #287, #280 and #290 merged with trees equal to their CI trees. #292 was checked on its base, so its combination with #290 (disjoint files) was verified locally (typecheck, lint, full tests: 1446 passed), and the merged tree equals that verified tree. Lookout verified #286, #287, #290 and #292 against real binaries. After this PR passes CI and merges, tag its exact squash commit as
v0.50.0to trigger npm trusted publishing.🤖 Generated with Claude Code