Repository navigation
chore: release v0.123.0 - #1022
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.
What a host needs to run Claude through OAR: CLI failures kept out of the model's text, a
model_refusedfailure class, startup diagnostics, Claude's credential declaration, and per-category user configuration exclusion. Also a per-installationcontextUsagedeclaration, cache-write TTL usage, and a light@botiverse/oar/capabilitiesentry. Behavior changes for hosts:launchArgsrefuses flags OAR owns, stateful observers deliver the current state once when subscribed without a cursor, launch validation is stricter, Claude's synthetic messages produce no events, aqueue()made from inside apromptrequest now runs first, and several public unions grew (below).Behavior changes
launchArgsrefuses more flags OAR manages, at open, withUnsupportedOptionError("launchArgs")(fix(security): centralize inherited credential redaction, launchArgs guards, and DSH goalSet refusal #1004). Use the matchingSessionOptionsfields (model,effort,systemPrompt,appendSystemPrompt,name) instead.--model/-m,--effort, the system prompt and append system prompt flags and their-fileforms,--name/-n, the partial and replayed message flags, and--.--reasoning-effort.--model/-m,--system-prompt,--append-system-promptand the partial message flags.--model/-m,--append-system-promptand--append-system-prompt-file.--.--flag=valueand attached short flags (-mfoo); Qoder, Qwen and CodeBuddy also catch camelCase aliases.observeConversationandobserveSessionViewdeliver one snapshot of the current state right away when the retained log is nonempty, then one state per new record; on an empty log they wait for the first record. PassafterSeq: -1for a full replay.events(),observeConversationandobserveSessionViewthrow on a cursor from another session (fix(oar): preserve observation cursors and validate active form fields #1007).ConfigIssuecodeconflicting_fields(fix(oar): preserve observation cursors and validate active form fields #1007).model: "<synthetic>"oris_api_error_message, such as API errors and "No response requested.") no longer produce events, includingtext_delta. They stay readable as native frames, and a failure's text goes to the failed turn'sreason(fix(claude): separate native failures from model replies #1015).rawEventsobserver that callsqueue()from inside apromptrequest now queues that input beforepromptdecides, so thepromptis refused asbusyand the queued input runs. ACP controls are recorded synchronously at call time (fix(session): make queued inputs immediately withdrawable across runtimes #1003).Records over them need the new members:FailureClass(model_refused),CredentialVariable.purpose(six values),RefusableSessionOption(partialUserConfiguration),ConfigIssuecodes (conflicting_fields), andSessionOptions.userConfiguration(an object form).Claude for hosts (#1015, #1017, #1018, #1019, #1020), feature
FailureClassgainsmodel_refused. Claude'sstop_reason: "refusal"and ACP'sstopReason: "refusal"map to it, ahead of the CLI's genericinvalid_request; Grok refusals map to it too, and more specific provider evidence on a CodeBuddy refusal still wins.failureAdvicegives it{ retry: "no", userAction: false }. On Claude, a verification failure isauth, ausage_limit_reachederror isquotaeven without a reset time, and overload isoverloaded. A quota failure can carryrateLimitType.exited.reasonwhen the session was already returned before its first frame. At most 8 KiB is kept, a leading partial line is dropped, and session credentials and recognizable key or JWT shapes are redacted. Other process adapters apply the same redaction to the stderr they already report (fix(runtime): carry safe stderr through native startup exits #1018).claudeRuntime.credentialsdeclares the environment variables and stores Claude Code reads, grouped by direct API and OAuth, federation, cloud provider and model routing.CredentialVariable.purposeaddsprovider_selector,region,account_scope,model_route,credential_sourceandheaders(headers are secret). Variables carried bystores[].directoryEnvare not repeated inenv(feat(claude): declare provider and credential sources #1019).SessionOptions.userConfigurationaccepts{ exclude: ("settings" | "mcp" | "instructions")[] }. On Claude,settingsdrops user settings and user-scope MCP;mcpkeeps only host MCP;instructionsdrops user rules, home memory and automatic memory while project instructions stay. An empty list keeps the native configuration and all three equal"exclude". Cursor takes all or none and declares the new refusal keypartialUserConfiguration; runtimes that refuseuserConfigurationrefuse any nonempty exclusion (feat(session): select user configuration categories #1020).checkUpdateisunavailable(package_manager) andupgradeis refused, before the binary runs. Automatic discovery still uses the standalone CLI (fix(claude): leave cached CLI updates to Desktop #1017).Capabilities and usage (#1013, #1014, #1016), feature
SessionCapabilityDeclaration.contextUsage: { tokens, contextWindow }says whethercontextUsage()reports each by the end of every normally completed root turn, fresh or resumed. Declared true for both on Antigravity, Claude, DSH, Factory, Kimi, Pi, Codex from 0.151.0, Qwen from 0.26.0 and OpenCode on readable versions; tokens only on Cursor and Grok; neither on CodeBuddy, Qoder and Pi Durable; absent on Devin. Factory now waits up to one second fordroid.get_context_statsbefore ending a turn.UsageReport.cacheWriteByTtl?: { "5m"?, "1h"? }, per report. Claude reads it from the latest root model frame of the turn; Pi reports"1h"only and never derives"5m".@botiverse/oar/capabilitiesexportsinstalledSessionCapabilitiesand its contract types without loading any runtime adapter or native SDK.Fixes
queue(): ACP sessions (isolated and shared) before and after spawn, DSH image inputs and Pi Durable no longer answernot_queuedand then run the input (fix(session): make queued inputs immediately withdrawable across runtimes #1003).CURSOR_API_KEYin model listing and session errors, and Factory's inherited credential in account and usage reads. A DSHgoalSetwithout a valid change is refused withruntime_refusedrather than sending undefined fields (fix(security): centralize inherited credential redaction, launchArgs guards, and DSH goalSet refusal #1004).initialSessionView(rootSessionId?)andviewOf(records, streamId, rootSessionId?)take the host's root id, which child records cannot replace; session graphs drop self-links and cycle-closing edges. A typed model id can use the effort levels on its own model listing entry (fix(oar): preserve observation cursors and validate active form fields #1007).turn_active, and shell results parse the native exit-code envelope. OpenCode background child updates use the same version gate as prompt controls (fix(runtime): verify Morph reports and OpenCode version gates in CI #1010).status()instead of the observation layer (fix(pi-durable): read turn status through the shared session #1009).Also
🤖 Generated with Claude Code
Co-authored-by: xxchan [email protected]