Skip to content

sync: upstream v0.80.3#95

Merged
code-yeongyu merged 31 commits into
mainfrom
automation/upstream-v0.80.3-28474739298
Jun 30, 2026
Merged

sync: upstream v0.80.3#95
code-yeongyu merged 31 commits into
mainfrom
automation/upstream-v0.80.3-28474739298

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Automated upstream sync for v0.80.3.

  • Upstream SHA: a23abe4a695df8b69b613f73e9fdda2a8af894d4
  • Evidence artifact: upstream-agent-qa-v0.80.3
  • Release is evaluated only after this PR is merged with a merge commit.

QA completed before PR creation:

  • npm run build
  • npm run check
  • npm test
  • senpi-qa common, mock-loop, CLI smoke, and tmux TUI smoke when available

Summary 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

    • Added Claude Sonnet 5 model metadata across Anthropic-compatible, amazon-bedrock, openrouter, and vercel-ai-gateway with adaptive thinking payloads.
    • Agent API: added prepareNextTurnWithContext to access the next-turn loop context.
    • Coding Agent: added RPC get_entries and get_tree; added outputPad to control user/assistant/thinking horizontal padding; added stable status indicators.
  • Bug Fixes

    • Provider errors now include HTTP response bodies across azure-openai-responses, openai-responses, openai-completions, openai-codex-responses, google-generative-ai, google-vertex, bedrock-converse-stream, and openrouter-images.
    • OpenAI Codex Responses: SSE header wait now uses configured HTTP timeoutMs (replaces fixed 20s), reducing false timeouts on slow links.
    • Reasoning payloads: preserved Z.AI thinking with clear_thinking: false; ensured adaptive thinking for Claude Sonnet 5 on Anthropic and Bedrock.
    • Updated model catalog (incl. Xiaomi MiMo pricing).
    • Networking/UI: handled undici mid‑stream client errors to avoid crashes; stabilized status indicator rendering.
    • Coding Agent: fixed pre‑prompt compaction to avoid unintended continue; applied extension tool changes before the next provider request; emitted session_info_changed to extensions.
    • Agent: kept legacy prepareNextTurn behavior to receive the abort signal (not the context).

Written for commit 7f20ae7. Summary will update on new commits.

Review in cubic

stephanmck and others added 30 commits June 25, 2026 12:07
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
…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
@code-yeongyu

Copy link
Copy Markdown
Owner Author

QA evidence

Evidence files captured before this PR was opened:

  • git-status-after-check.txt
  • git-status-before-qa.txt
  • last-merge-report.md
  • npm-build.txt
  • npm-check.txt
  • npm-test.txt
  • secret-files.txt
  • senpi-qa-cli-smoke.txt
  • senpi-qa-common.txt
  • senpi-qa-mock-loop.txt
  • senpi-qa-tui.txt
  • tool-versions.txt

@code-yeongyu code-yeongyu merged commit b3a785d into main Jun 30, 2026
3 checks passed
@code-yeongyu code-yeongyu deleted the automation/upstream-v0.80.3-28474739298 branch June 30, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants