Repository navigation
chore: release v0.76.3 - #531
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.
Patch release: a Pi provider-key security fix, a Qwen reply fix, and structured configured-credential sources. No API breaking changes.
Security
Pi: provider API keys are stored as literal values (#530)
Pi resolves stored credential values: a value starting with
!runs the rest as a shell command, and$NAME/${NAME}expand environment variables. Through 0.76.2, keys passed to the Pi provider facade (createPiProviderAuth:setApiKey, and the secret prompts oflogin(providerId, "api_key", ...)) were stored unchanged, so a key such as!some-commandor one containing$HOMEwas executed or expanded when Pi read it. OAR now writes those values with Pi's own escapes (every$as$$, a leading!as$!), so Pi reads back exactly the key that was supplied, never runs a command and never expands a variable. Verified with Pi 1.4.0's own storage and resolver. OAuth answers and non-secret prompts are unchanged. Keys stored by earlier versions are not rewritten: a stored key that contains$or starts with!should be stored again with 0.76.3. If you deliberately relied on the facade to store a$VARor!commandreference, that now stays literal; write such an entry to Pi'sauth.jsonyourself, where Pi's resolution still applies.Fixes
Qwen: replies after thinking were reported twice (#528)
With Qwen Code 0.26.3, when a response streams thinking and then text, Qwen sends the final text snapshot with a different message id than the stream it completes, without a new
message_start. OAR counted the streamed text and the snapshot, so the turn's reply text contained the answer twice (on a real Model Studio Token Plan endpoint the expected 22-character answer came back as 44 characters; a local reproduction confirmed it was the answer twice). OAR now recognizes the snapshot from Qwen's block sequence (a block stop followed by its single-block snapshot), never by comparing text, so repeated paragraphs and identical answers in consecutive turns are kept. Reasoning was never mixed into the reply. Reported upstream as QwenLM/qwen-code#15875.Pi: "Sign in with ChatGPT" through the provider facade (#530)
In 0.76.2,
login("openai", "oauth", ...)throughcreatePiProviderAuthalways failed because Pi requires a device id and OAR could not pass one.loginnow takes an optional fourth argument,ProviderLoginOptions(getDeviceId,agentName), passed to Pi unchanged. ChatGPT sign-in works when the host suppliesgetDeviceIdreturning a stable UUID for its installation; the host creates and keeps that UUID, and without it Pi still rejects the flow.Behavior changes
configuredon unknown login status (#529)AuthStatusunknownhas an optionalconfigured?: readonly string[]. A nonempty list means the reader found local authentication configuration from those sources without validating it; each entry is a human-readable label naming the source (for exampleenvironment: OPENAI_API_KEY), never a value; labels are for display, not parsing. Query failures omit it, and its absence does not mean nothing is configured. Qwen fills it from its local configuration sources and Cursor fromCURSOR_API_KEY. Hosts can now tell configured-but-unverified from unreadable status without parsingdetail.Pi provider login: prompt cancellation (#530)
Each
ProviderLoginPromptnow carries an optionalsignalthat aborts when that input is no longer needed (for example the OAuth browser callback wins) or when the host cancels; close the input UI when it fires. The pending Pi prompt is rejected even if the host's prompt callback never returns. Onlyinteraction.signalcancels the whole login, as before.Pi provider facade from the Pi entry (#530)
createPiProviderAuthis also exported from@botiverse/oar/runtimes/pi, which loads the Pi SDK only when a facade is created, so a host can use it without loading the root entry and every runtime.TypeScript
AuthStatusunknowngains optionalconfigured(feat(auth): expose configured credential source labels #529).ProviderLoginOptions;ProviderAuthFacade.logingains an optional fourth parameter;ProviderLoginPromptgains optionalsignal;PiProviderAuthOptionsis also exported from@botiverse/oar/runtimes/pi(fix(pi): preserve literal provider keys and login context #530). Existing callers and customProviderAuthFacadeimplementations keep compiling.