Skip to content

feat(openai): support GPT-6 Astra - #137550

Merged
steipete merged 2 commits into
mainfrom
codex/gpt-6-astra-support
Sep 3, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/gpt-6-astra-support

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #137549

What Problem This Solves

Operators with GPT-6 Astra access can select openai/gpt-6-astra with the correct model metadata and Responses request contract. Previously Astra was absent from the bundled catalog and forward-compatible routes; legacy cache and sampling fields could also produce rejected requests.

Why This Change Was Made

The OpenAI plugin owns Astra's API/ChatGPT routing, reasoning levels, context limits, and tiered pricing. Account-discovered metadata remains authoritative. Both Responses serializers share the documented 30-minute cache policy and omit unsupported sampling parameters; their duplicate retention helpers are removed. Catalog publication also preserves declared context-price tiers when third-party feeds offer only flat estimates, while native feeds remain authoritative.

The implementation follows the official model reference and migration guide. Existing default models and configuration remain unchanged.

User Impact

Use openclaw models set openai/gpt-6-astra once the account has access. Astra supports text/image input, a 1,050,000-token context window, 128,000 output tokens, and low/medium/high/xhigh/max reasoning. OpenClaw retains its normal 272,000-token default context budget and accounts for the higher price tier above 272K input tokens. Documentation covers rollout and reasoning behavior.

Evidence

Full CI is green on final head 75fd28a28d42. The earlier run hit a session-rollback test timeout and a following identity assertion; all 14 tests in that file passed locally, and the complete final-head CI passed without changing those tests.

  • 311 focused tests passed across model routing/catalogs, account metadata, thinking policy, pricing boundaries, and both Responses serializers. Added cases failed before the implementation. After the final lint fixes, all 36 tests in the two touched owner suites passed again.
  • 52 publisher tests passed, including pre-fix failures for flat-feed tier loss and later tiered-source selection. A real catalog assembly with live pricing feeds preserves both Astra price tiers. The full changed-file checks for the publisher and its tests passed.
  • Core, core-test, plugin, and plugin-test typechecks passed. Changed-file formatting, scoped lint, architecture guards, and Codex autoreview passed with no actionable P0–P2 findings.
  • Live API probes with two accounts returned HTTP 404 model_not_found for valid Astra generation requests. Invalid reasoning.effort=none returned HTTP 400 with the documented low/medium/high/xhigh/max values. A native Codex request returned HTTP 400 indicating Astra is not supported for the available ChatGPT account. The available live catalogs do not yet list Astra. Successful live generation remains unverified because the test accounts lack rollout access. No fallback-model result is presented as Astra proof.
  • Direct Codex source inspection at f84c977 covered codex-rs/protocol/src/openai_models.rs (model metadata and API availability), codex-rs/models-manager/src/manager.rs (catalog selection), and codex-rs/models-manager/src/model_info.rs (unknown-model fallback). Local tests preserve discovered account limits and reasoning effort lists.
  • Runtime production +114/-23 (net +91); publisher tooling +7/-1 (net +6); tests +293/-2 (net +291); docs +24. Growth implements the new model contract; shared cache selection replaces two duplicate helpers.

Follow-up: audit the existing GPT-5.6 cache fields against the updated caching documentation; no live failure for that family was established in this work. Refresh the published model catalog after merge.

@steipete steipete self-assigned this Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: openai size: M maintainer Maintainer-authored PR labels Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 20:39
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 3, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 4:55 PM ET / 20:55 UTC.

ClawSweeper review

What this changes

Adds GPT-6 Astra to the bundled OpenAI plugin’s model catalog, routing, request serialization, pricing publication, tests, and operator documentation.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: the new Astra manifest row is reused by the OAuth offline-catalog fallback, so a temporary ChatGPT/Codex catalog failure advertises Astra to accounts that have not received access. The fetched current-main object could not be hydrated locally because the promisor remote was unreachable, but the introduced trigger and fallback path are directly established in this checkout.

Priority: P1
Reviewed head: 75fd28a28d42af7e7f8fbc7ebee5628e55455aff

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The model contract work is substantial and tested, but a source-proven OAuth fallback regression blocks merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This is maintainer-authored work, so the external-contributor proof gate does not apply; the captured live probes also explicitly disclose that successful Astra generation was unavailable to the test accounts.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is maintainer-authored work, so the external-contributor proof gate does not apply; the captured live probes also explicitly disclose that successful Astra generation was unavailable to the test accounts.
Evidence reviewed 6 items Introduced entitlement trigger: The PR adds Astra to the shared OpenAI manifest. That row is subsequently consumed by the static OAuth fallback, rather than only by direct Platform routing.
OAuth fallback includes the introduced row: On discovery failure, the static OAuth catalog iterates all manifest models and excludes only Platform-only models and non-Sol GPT-5.6 variants. Astra is neither, so it is emitted as a ChatGPT/Codex OAuth model.
Existing failure-path test: The existing 503-discovery test proves that a temporary catalog failure returns the static OAuth model list, but it has no assertion excluding Astra.
Findings 1 actionable finding [P1] Keep Astra out of the static OAuth fallback
Security None None.

How this fits together

The OpenAI plugin turns an operator’s selected model into account-aware catalog metadata and either a Platform or ChatGPT/Codex Responses request. Account catalog discovery is the entitlement boundary; the serializers then apply the selected model’s request capabilities before network I/O.

flowchart LR
  A[Operator selects Astra] --> B[OpenAI plugin catalog]
  B --> C[Account model discovery]
  C --> D{Catalog available?}
  D -->|Yes| E[Account-specific route]
  D -->|No| F[Static OAuth fallback]
  E --> G[Responses request serializer]
  F --> G
  G --> H[OpenAI or ChatGPT endpoint]
Loading

Before merge

  • Keep Astra out of the static OAuth fallback (P1) - The new manifest row passes the existing fallback filter, so a 503 model-catalog response makes Astra selectable for every ChatGPT/Codex OAuth account. That contradicts the account-catalog entitlement rule and produces a runtime rejection for accounts without rollout access. Exclude Astra from this fallback and extend the existing 503 test to assert its absence.
  • Resolve merge risk (P1) - Merging as written makes a transient OAuth catalog failure advertise Astra to accounts without rollout access, shifting an account-entitlement failure from discovery to runtime.
  • Resolve merge risk (P1) - Reviewer limitation: the exact Codex revision cited by the PR could not be inspected from the available sibling cache, so native subscription availability remains dependent on the PR’s recorded upstream evidence.
  • Complete next step (P2) - Exclude Astra from the static OAuth fallback and add the focused 503-discovery regression assertion before merge.

Findings

  • [P1] Keep Astra out of the static OAuth fallback — extensions/openai/openclaw.plugin.json:52
Agent review details

Security

None.

PR surface

Source +91, Tests +291, Docs +24, Other +6. Total +412 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 9 114 23 +91
Tests 7 293 2 +291
Docs 1 24 0 +24
Config 0 0 0 0
Generated 0 0 0 0
Other 1 7 1 +6
Total 18 438 26 +412

Review metrics

Metric Value Why it matters
Production versus test delta runtime +91 net, tooling +6 net, tests +291 net, docs +24 The feature adds a sizeable provider contract; the required fallback repair should remain a narrow, owner-boundary change.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137549
Summary: This PR is the linked implementation candidate for the open Astra-support request, but its OAuth fallback defect must be repaired before it can resolve that work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Preserve OAuth discovery authority (recommended)
    Exclude Astra from static OAuth fallback and add a catalog-503 regression assertion before merge.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Exclude gpt-6-astra from static OAuth fallback and add a 503 discovery regression test that asserts it is absent.

Technical review

Best possible solution:

Keep Astra’s manifest and direct Platform support, but omit it from the static ChatGPT/Codex OAuth fallback until account-scoped discovery confirms availability, with a 503-discovery regression test.

Do we have a high-confidence way to reproduce the issue?

Yes—source establishes a focused path: make account catalog discovery return 503, then inspect the static OAuth model list. The existing test already drives that failure path; it needs an Astra-absence assertion.

Is this the best way to solve the issue?

No—the direct Platform implementation is coherent, but the static OAuth fallback violates the stated account-catalog authority. A narrow exclusion plus regression coverage is the maintainable repair.

Full review comments:

  • [P1] Keep Astra out of the static OAuth fallback — extensions/openai/openclaw.plugin.json:52
    The new manifest row passes the existing fallback filter, so a 503 model-catalog response makes Astra selectable for every ChatGPT/Codex OAuth account. That contradicts the account-catalog entitlement rule and produces a runtime rejection for accounts without rollout access. Exclude Astra from this fallback and extend the existing 503 test to assert its absence.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8b553470f091.

Labels

Label changes:

  • add P1: The introduced fallback can break the ChatGPT/Codex OAuth model-selection workflow for accounts without Astra access when catalog discovery is temporarily unavailable.
  • add merge-risk: 🚨 auth-provider: The PR changes how an OAuth account’s catalog fallback advertises model availability, bypassing its account-specific discovery result.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is maintainer-authored work, so the external-contributor proof gate does not apply; the captured live probes also explicitly disclose that successful Astra generation was unavailable to the test accounts.

Label justifications:

  • P1: The introduced fallback can break the ChatGPT/Codex OAuth model-selection workflow for accounts without Astra access when catalog discovery is temporarily unavailable.
  • merge-risk: 🚨 auth-provider: The PR changes how an OAuth account’s catalog fallback advertises model availability, bypassing its account-specific discovery result.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is maintainer-authored work, so the external-contributor proof gate does not apply; the captured live probes also explicitly disclose that successful Astra generation was unavailable to the test accounts.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/openai/openai-provider.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/openai/openai-dynamic-model.test.ts.
  • [P1] git diff --check.

What I checked:

  • Introduced entitlement trigger: The PR adds Astra to the shared OpenAI manifest. That row is subsequently consumed by the static OAuth fallback, rather than only by direct Platform routing. (extensions/openai/openclaw.plugin.json:52, 75fd28a28d42)
  • OAuth fallback includes the introduced row: On discovery failure, the static OAuth catalog iterates all manifest models and excludes only Platform-only models and non-Sol GPT-5.6 variants. Astra is neither, so it is emitted as a ChatGPT/Codex OAuth model. (extensions/openai/openai-provider.ts:527, 75fd28a28d42)
  • Existing failure-path test: The existing 503-discovery test proves that a temporary catalog failure returns the static OAuth model list, but it has no assertion excluding Astra. (extensions/openai/openai-provider.test.ts:1168, 75fd28a28d42)
  • Captured PR claim: The PR body says successful account catalog discovery remains authoritative and should not grant access to accounts without rollout, while its own live probes report that the available ChatGPT/Codex account does not support Astra. (75fd28a28d42)
  • Codex dependency inspection limitation: Directly inspected the sibling Codex cache at 41e22fee981a63b3698df7ed36bad393cda24715: its protocol exposes reasoning efforts including none/low/max, but the PR-cited f84c977 revision is absent and no Astra model occurrence exists in the locally available relevant source. The sibling remote is a local cache, so its GitHub ownership could not be independently verified. (codex-rs/protocol/src/openai_models.rs:50, 41e22fee981a63b3698df7ed36bad393cda24715)
  • Current-main inspection limitation: The supplied fetched-main SHA could not be read because the partial clone needed a promisor fetch and github.com DNS resolution was unavailable. No current-main source claim is made from that failed lookup. (8b553470f091)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • hrudolph: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Exclude Astra from the static OAuth fallback during unavailable account discovery.
  • Extend the existing 503 discovery test to prove Astra is absent while established fallback models remain available.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit eb72093 into main Sep 3, 2026
168 of 169 checks passed
@steipete
steipete deleted the codex/gpt-6-astra-support branch September 3, 2026 20:58
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

The static OAuth fallback finding is confirmed and addressed in #137561. The existing 503-discovery test failed before the fix; 99 focused tests now pass, including successful account discovery for Astra and preservation of established offline models. Both rank-up moves are included. The fix is in review/CI before the catalog publication step.

@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Completed: the OAuth fallback correction landed in #137561 as 8b1add5, with full CI green and the completed review addressed.

The catalog publication succeeded. Both the hosted catalog and GitHub catalog now contain gpt-6-astra with its context/reasoning metadata and both pricing tiers. Their bytes match, and catalog source 2010e3733272a7cfab693988e0e75e60177ffe40 is verified to contain both merged PRs. The catalog-refresh follow-up is complete.

RomneyDa added a commit that referenced this pull request Sep 19, 2026
* feat(meta): add Muse Spark 1.3 models (#136553)

* feat(meta): add Muse Spark 1.3 models

* docs(meta): cite Muse Spark 1.3 recommendation

Co-authored-by: Tharun Tej Tammineni <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
(cherry picked from commit 194b7f2)

* feat(anthropic): support Fable 5.1 from shared model metadata (#135638)

* feat(anthropic): support Fable 5.1 from shared model metadata

* test(anthropic): keep alias coverage within the file limit

* fix(media): decouple image limits from catalog augmentation

(cherry picked from commit 0a9b08c)

* feat(openai): support GPT Image 2.5 variants (#143068)

* feat(openai): support GPT Image 2.5 variants

* docs(openai): correct GPT Image 2.5 section link

(cherry picked from commit f93881f)

* feat(fal): support GPT Image 2.5 variants (#143069)

* feat(fal): support GPT Image 2.5 variants

* test(agents): restore Windows media fixture isolation

(cherry picked from commit a57c799)

* fix(bedrock): preserve images returned by tools (#149336)

## What Problem This Solves
Tool-returned images make the next request fail with `ValidationException` on affected Bedrock routes. Fixes #149332.

## Why This Change Was Made
The serializer generates image labels from each tool-call ID; input images need no labels. All consecutive tool results come first, followed by image groups in the same tool order. Request state has one writer. `stream.runtime.ts`: +28/−1 for this conversion.

Growth accepted under the owner's standing acceptance (2026-09-15).

## User Impact
Image-reading turns can finish without losing image bytes, tool associations, or error status.

## Evidence
Authenticated `chat.send` → registered `read` on a synthetic PNG: main sent a nested image and failed; candidate sent a sibling image and completed with the scripted “Red square; blue circle.” Our run used a recording HTTP transport.

The [contributor's real two-tool run](#149336 (comment)) confirms image interpretation and association.

## Compatibility
Concrete route identities select the conversion. Opaque aliases keep their layout. The general schema permits nested images for some routes; this repair addresses the affected route’s observed rejection. No config or public interface changes.

## Consumers
All clients use the existing Bedrock serializer.

## Invalidation
Conversion is request-local. Stored transcript rows and original image bytes remain unchanged.

## Tests
`node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-providers.config.ts extensions/amazon-bedrock`: 289 tests across 12 files passed on a fresh merge with main. Types, lint, formatting, file-size and assertion limits, and unused-export checks passed.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 115522a)

* fix: preserve Ultra across model runtime boundaries (#135397)

* fix: preserve Ultra across model runtime boundaries

Keep native Codex Ultra as a runtime mode instead of clamping it against
physical Responses effort tiers. Share the selected collaboration effort
between turn fields and remove the redundant forwarding wrapper.

Carry the active parent thinking level through existing spawn context so
one-shot overrides reach native subagents without changing saved preferences.
Keep explicit child overrides and configured child defaults authoritative.

Scope Control UI thinking catalog fallback to the selected runtime, sharing
one prepared entry for picker options and the inherited default. Document
the native orchestration/budget boundary and active-turn inheritance.

* refactor: simplify Ultra reasoning fixtures

* fix: preserve active thinking across shared tool contexts

* docs: clarify Off thinking for side questions

(cherry picked from commit ee9e22b)

* fix(anthropic): Fable 5.1 sessions lose reasoning after model switches and runtime events (#136782)

* fix(anthropic): keep Fable 5.1 thinking valid across model switches and runtime context

Claude Fable 5.1 binds each thinking block to the producing model and to the
exact request prefix that preceded it. Three harness behaviors conflicted with
that contract on Anthropic-family routes:

- Moving a session onto Fable 5.1 (from Opus 5, Sonnet 5, Opus 4.8, Fable 5)
  dropped readable reasoning client-side; the replay contract now preserves it
  while leaving Fable 5.1 still drops.
- The per-turn runtime-context carrier was injected transiently after the
  active user turn, stripped on the next request, relocated inside tool loops,
  and removed by the context-engine assembly. It is now persisted right after
  its user turn and replayed in place; inline inbound metadata stays in place
  too, and consecutive user turns are no longer merged at load for the
  Messages API because the merged form lost the second turn's timestamp stamp.
- Direct API-key requests with adaptive thinking send the
  thinking-binding-controls beta with prefix_mismatch_behavior=drop_block, so
  a residual mismatch degrades to a server-side unbilled drop with a warning
  listing the dropped paths instead of a 400, a duplicate request, and a
  transcript-wide thinking wipe. OAuth, proxies, Bedrock, Vertex, and Foundry
  keep the existing strip-and-retry recovery.

Live-verified against api.anthropic.com: nine-request Fable/Opus/Fable session
with tool loops and carriers reports input_transformations: [] on every
request with four retained thinking blocks; a /think change on the direct API
yields a logged server-side drop and no retry.

* fix(anthropic): limit the preserved-thinking replay target to Fable 5.1

Mythos 5.1 is not registered in the bundled catalog and has no cross-model
replay proof, so unregistered Mythos targets keep the existing drop path.

(cherry picked from commit 30837ae)

* feat(openai): support GPT-6 Astra (#137550)

* feat(openai): support GPT-6 Astra

* fix(models): preserve declared pricing tiers during catalog refresh

(cherry picked from commit eb72093)

* fix(openai): require discovery before offering Astra for OAuth (#137561)

(cherry picked from commit 8b1add5)

* fix(diagnostics-prometheus): reject unauthorized metric scrapes (#140903)

* fix(diagnostics-prometheus): require operator.read for metric scrapes

The Prometheus scrape route registers under the trusted-operator runtime
scope surface, so the Gateway authenticates the caller and applies its
named-role scope ceiling before dispatch. The handler never consulted
those scopes, so an authenticated identity whose role grants no operator
scopes still received the full diagnostics document with 200, while the
same caller was correctly refused on equivalent read operations.

Check the runtime request scopes inside the handler and fail closed with
403 "missing scope: operator.read" unless the caller holds operator.read,
operator.write, or operator.admin, mirroring the Gateway read implication
set. The guard runs before rendering so HEAD probes cannot disclose the
document size either.

* test(diagnostics-prometheus): prove role-limited scrape denial

(cherry picked from commit 0c9330b)

* fix(discord): enforce sender media policy on guild asset uploads (#140334)

The Discord emoji-upload, sticker-upload, and event-create branches dropped
the sender-scoped media access options before dispatching the action, so the
guild runtime loaded the requested host-local path with only a byte limit. A
sender permitted to run those actions could therefore place bytes from a file
outside their allowed media roots into an outbound Discord emoji, sticker, or
event-cover request.

Forward the resolved action options from all three branches, carry
mediaAccess/mediaLocalRoots/mediaReadFile through the guild runtime, and load
upload sources through buildOutboundMediaLoadOptions like every other outbound
Discord media path. Adds regression coverage that a source outside the sender
roots is rejected before any request is issued, with an in-roots control.

(cherry picked from commit e5e7764)

* fix(discord): preserve realtime speaker and playback ownership (#137433)

* fix(discord): preserve realtime speaker and playback ownership

Bind provider connections to one Discord principal so delayed transcripts
and native consultations cannot inherit another speaker's authority.
Keep the shared agent route and serialize response-owned audio on one
room player, preserving continuations and recovery after playback gaps.

Admit host-requested responses before dispatch and map Google Live turn
completion to canonical terminal outcomes so queued speech can finish.

Closes #137349
Related: #136982, #123243
Follow-up: #137417

* test(discord): preserve room capture across speaker recovery

(cherry picked from commit 85d510c)

* fix(doctor): preserve enabled skills during automatic updates (#138730)

Use runtime-repair approval for optional skill disabling. Keep standalone explicit repair and required config migrations unchanged.

(cherry picked from commit acc9a65)

* fix: generated images disappear after failed tool calls (#131226)

## What Problem This Solves

WebChat drops generated media when a later tool failure is the turn's only reply payload.

## Root cause

The embedded-run terminal projection assigned successful tool media to the first non-reasoning payload. A later error warning could become that owner. Gateway error projection then discarded the attached media.

## Fix

- Attach tool media only to a successful, non-reasoning reply.
- Emit a separate media-only payload when the turn has no successful reply.
- Preserve the newer host-owned and automatic-delivery media paths from current `main`.
- Keep regression coverage at the payload owner and physical-delivery boundaries.
- Remove the mocked browser test that manually inserted its expected result.

## Evidence

- Baseline: current `main` at `8544aed05a5dbffb871483be781f71351203319e`.
- Real path: branch-built Control UI → real Gateway → mock OpenAI Responses provider → successful image tool → later failing tool → terminal WebChat event.
- Red: current `main` rendered zero generated images.
- Green: `d2a10d40c633bfe796ad4ab19222aa831184a327` rendered one generated image.
- Anti-cheat: the proof recorded `image-success` before `later-failure` and verified that Chromium loaded the exact Gateway-served asset from the branch build.

## Validation

- Focused unit and integration tests: 19 passed across 2 Vitest shards.
- Real Gateway and built Control UI proof: passed on current `main` and the candidate head with opposite image assertions.
- Targeted format, Oxlint, conflict-marker, max-lines, assertion-safety, and diff checks passed.
- Type checks run in continuous integration because repository policy forbids them on this host.

Production change: `+3/-3`, net zero. Test change: `+23/-1`, net `+22`.

Co-authored-by: A28Hui <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 88be1b8)

* fix(matrix): refresh verification status before reporting device trust (#136226)

* fix(matrix): refresh verification status before reporting device trust

Refresh own-device keys after crypto preparation and before the authoritative trust read. Keep the missing-device preflight and use the Matrix SDK’s existing query contract.

* test(slack): remove core-coupled threading duplicate

---------

Co-authored-by: Dallin Romney <[email protected]>
(cherry picked from commit a812054)

* chore(release): prepare extended-stable 2026.8.33

* fix(release): integrate model and Discord security backports

* docs(release): clarify extended-stable workflow baseline

* fix(release): complete stable-line backport integration

* fix(ios): restore dependency resolution with WebRTC 152 (#134942)

* fix(release): repair frozen validation inputs

* fix(discord): stop error replies after voice consult cancellation (#135380)

* fix(discord): stop error replies after voice consult cancellation

Treat host-cancelled Discord realtime consults as terminal cancellation, preserve late-call dedupe, and wait for every native delivery before returning forced playback ownership. Timeouts and genuine errors retain their normal handling.

Closes #135340. Related phone cancellation helper: #134924.

* test(acp): run CLI lifecycle checks against prepared runtime

* test(cli): cover selective runtime build admission

* test(ci): account for ACP runtime preparation

* fix(release): complete Discord cancellation backport

* test(release): keep candidate fixtures current

* test(update): isolate frozen release version

---------

Co-authored-by: tharuntejmeta <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: dclosefuturex <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Pavan Kumar Gondhi <[email protected]>
Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: CGlashu <[email protected]>
Co-authored-by: A28Hui <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: openai maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support GPT-6 Astra in the OpenAI plugin

1 participant