Repository navigation
chore: release v0.54.2 - #332
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.54.2. This PR changes only the two package version fields.
Fixed: grok's own follow-up turn counts in
usage()(#325, #327)prompt_id: "subagent-completed-<child>"). It has nosession/promptanswer, which is where OAR read the root's ledger, so its spend was missing fromusage().total. OAR now adds that turn'sturn_completed.usageto the same running total as prompt answers, once per native_meta.eventId; later prompt answers keep it. The original frames stay in the record stream.session/load. OAR records, on the wire, whether each notification arrived before or after the session-open answer, even when the ACP SDK delivers it later, and counts only those after it that are not marked as a replay. A resumed or loaded session's total starts empty, as before.Still not counted, now documented: a background subagent's own spend when it finishes after the parent's turn ends. grok includes a child's spend in the parent's prompt ledger only when the child finishes during that prompt, and neither
subagent_finished.will_wake, the model'sbackgroundargument nor the order of the notifications tells OAR which happened (grok can apply the child's usage before it schedules the finished notification on another worker). Grok child ledgers therefore stay native-only andwithChildrenstays absent for grok, sousage().totalcan undercount such a child.docs/runtimes/grok.mdhas the evidence and a repeatable probe (experiments/grok-background-usage-2026-10-10.md).Behavior changes
usage().totalgrows when grok runs a follow-up turn after a background subagent, with ausageevent on that notification's frame.Validation: #327 passed all 17 checks on its final head, and its merged tree equals the tree verified locally on top of 0.54.1 (typecheck, lint, full tests). Lookout verified it against real grok 1.0.50 with a mock provider, with no account: background, foreground and resumed sessions, and a shim that forced
session/loadand renamed grok's replayed history to the live notification name, so replays looked exactly like live reports. No replayed ledger was counted. After this PR passes CI and merges, tag its exact squash commit asv0.54.2to trigger npm trusted publishing.🤖 Generated with Claude Code