sync: upstream v0.80.3#95
Merged
Merged
Conversation
Add a shared normalizeProviderError helper in packages/ai/src/utils/error-body.ts and route the 8 body-blind / status-only providers through it (amazon-bedrock, azure-openai-responses, google, google-vertex, images/openrouter, openai-codex-responses, openai-completions, openai-responses). Non-schema 4xx/5xx responses from proxies / gateways now show the real reason carried in the response body alongside the HTTP status, instead of "403 status code (no body)" or "Unknown: UnknownError". The helper probes status (statusCode, status, $metadata.httpStatusCode, $response.statusCode) and body (body, parsed error object, $response.body) across the Mistral, OpenAI, Google, and Bedrock SDK shapes, truncates the body at a 4000 char cap, and preserves error.message when the SDK already folded the body in (Anthropic / Google happy path). mistral.ts and anthropic.ts are left untouched. Provider prefixes and the OpenRouter metadata.raw append are preserved. closes #5763
Adds two read-only RPC commands exposing existing SessionManager reads: - get_entries: all session entries in append order, with optional since-entry-id cursor (strictly-after semantics, error on unknown id), plus current leafId. - get_tree: getTree() roots plus current leafId. Since sessions are append-only trees with stable entry ids, an entry id is a durable cursor: external orchestrators can use these commands to catch up after a restart without losing pre-compaction history, and can observe branch structure (/tree jumps, abandoned branches) that get_messages hides.
feat(coding-agent): add get_entries and get_tree RPC commands
…no-continue fix(coding-agent): avoid pre-prompt compaction continue
Refs #6127
closes #6083
…through-5763 fix(ai): surface provider HTTP error body instead of opaque SDK message
Includes updated Xiaomi MiMo pricing from models.dev. Closes #6138
fix(coding-agent): emit session name changes to extensions
Owner
Author
QA evidence
Evidence files captured before this PR was opened:
|
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.
Automated upstream sync for
v0.80.3.a23abe4a695df8b69b613f73e9fdda2a8af894d4upstream-agent-qa-v0.80.3QA completed before PR creation:
npm run buildnpm run checknpm testsenpi-qacommon, mock-loop, CLI smoke, and tmux TUI smoke when availableSummary by cubic
Sync to upstream v0.80.3. Adds Claude Sonnet 5 support, clearer provider errors with HTTP bodies, new agent/RPC APIs, and UI/robustness fixes that improve reliability on slow connections.
New Features
amazon-bedrock,openrouter, andvercel-ai-gatewaywith adaptive thinking payloads.prepareNextTurnWithContextto access the next-turn loop context.get_entriesandget_tree; addedoutputPadto control user/assistant/thinking horizontal padding; added stable status indicators.Bug Fixes
azure-openai-responses,openai-responses,openai-completions,openai-codex-responses,google-generative-ai,google-vertex,bedrock-converse-stream, andopenrouter-images.timeoutMs(replaces fixed 20s), reducing false timeouts on slow links.clear_thinking: false; ensured adaptive thinking for Claude Sonnet 5 on Anthropic and Bedrock.undicimid‑stream client errors to avoid crashes; stabilized status indicator rendering.session_info_changedto extensions.prepareNextTurnbehavior to receive the abort signal (not the context).Written for commit 7f20ae7. Summary will update on new commits.