Skip to content

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

Merged
vincentkoc merged 4 commits into
mainfrom
feat/gpt-image-2-5-fal
Sep 9, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
feat/gpt-image-2-5-fal

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Fixes #143007

Additional instructions

Same-repository branch; maintainers with repository write access can update it.

What Problem This Solves

Operators cannot use GPT Image 2.5 Flare and Sunburst through fal with the correct generation/edit routes, model-specific output controls, valid geometry, and 16-reference limit.

Why This Change Was Made

This follows the merged direct OpenAI PR. The nine-file feature diff is Fal-only and adds the four canonical openai/gpt-image-2.5/{flare,sunburst}/{text-to-image,edit} endpoints to the existing fal plugin.

References select the sibling edit endpoint; explicit edit paths and older model routing stay unchanged. Model-specific format/background capabilities preserve older models' controls. Aspect-ratio hints translate to legal dimensions; valid explicit sizes survive, invalid sizes/resolutions fail visibly, and inferred resolution does not change automatic edit sizing.

Existing defaults, older reference limits, and the four-output cap remain unchanged. No new auth, configuration, dependencies, queues, masks, compression options, or input-fidelity controls.

Compatibility decision: retain the additive formatsByModel and backgroundsByModel maps, following the existing quality-map contract. Omitted maps keep provider-wide fallbacks; existing plugins need no migration. The bundled Fal provider and supporting runtime ship together. Independently distributed plugins that adopt these new maps must require a runtime version that supports them; older runtimes are not claimed to honor the new controls.

User Impact

Users can select either variant through fal, including edits with up to 16 references and PNG/JPEG/WebP output. Authenticated generation/edit acceptance and final-head CI passed. Landing uses the native maintainer workflow.

Release-note context: support GPT Image 2.5 Flare and Sunburst on fal with generation-to-edit routing, 16 references, model-specific quality/background/format controls, and legal image dimensions.

Evidence

  • Current head: 2ec348bfb6837ce2309865f37b331ad9e23f9070; tree: edb0db2e65df238634553df03c2e2951cb300db4. Signed merges preserve ancestry and integrate pinned main b1db51436d8f623bd24d1ad1e04b29e31eb89740. All nine feature files are byte-identical to reviewed 3bea1d3bc7e335e96ab7910bbcd55a1f5fe19536; the final mechanical merge was independently verified.
  • Official schemas inspected directly: Flare generation, Flare edit, Sunburst generation, Sunburst edit.
  • Live acceptance: 4/4 passed on the current head. The real shared runtime and fal provider made exactly four attempts, received four images, and completed four checks, count one per request, no retries. Remote HEAD/tree, seven source hashes, harness/bootstrap hashes, and zero-API codec preflight were verified first. All responses were HTTP 200 with matching MIME/header, nonempty bytes, and decoded 1024x1024 dimensions.
Live cell Observed output Request ID
Flare generation Low-quality PNG, 736,358 bytes 01a086e2-e8a9-7f03-8498-89ec3e58ae88
Flare edit /text-to-image plus reference resolved to /edit; low-quality PNG, 722,769 bytes 01a086e3-1834-7ed2-9709-e69c5f368781
Sunburst generation xhigh transparent WebP, 115,274 bytes; decoded alpha/corner checks passed 01a086e3-5a64-78c3-8276-0d225b8651ed
Sunburst edit Explicit /edit; low-quality PNG, 703,640 bytes 01a086e3-fa07-7c51-8692-eb1f2f487f59

Both edits changed the synthetic red reference to blue and passed sampled blue-footprint and white-background probes. These are sampled semantic checks, not exact shape dimensions or whole-background preservation. The receipt and source bindings were independently verified. The isolated Linux proof used Node 24.18.1/pnpm 12.3.4; cleanup is confirmed complete. No media or credentials were committed or published.

  • Final-head CI passed: run 34373152464 completed successfully on the exact current head with 109 successful jobs and 16 skips, including the required openclaw/ci-gate. A skipped draft-event check is not credited as passing proof.
  • Focused provider proof on unchanged bytes: pnpm test extensions/fal/image-generation-provider.test.ts extensions/fal/image-generation-provider.gpt-image-25.test.ts passed 73 tests in two files on Testbox, source 01ec3cad11ec6ea03707660da8a055d702f707e3. Both provider test files and the provider implementation remain byte-identical. These mocked tests cover variants, routing, 16 accepted/17 rejected references, older caps, output-control isolation, valid sizes/ratios, and suppressed inferred resolution; they are not the live proof above.
  • Prior CI, not final-head proof: run 34353417619 passed 192 jobs with six skips on 62aa3ff5775d955592a0a0086940e5fcefd045c6, including build, checks, and actual Windows file-URL coverage. Earlier Windows timeouts prompted restoring the fixture's acquisition-boundary isolation; the exact blocked await remained unknown. Main independently landed the same repair, and this PR now retains main's exact Windows fixture, outside its feature diff. Current changed-scope rules intentionally do not select native Windows for these nine files; the final Windows stub is skipped, not a new Windows execution.
  • Fresh full-feature autoreview and independent code review are clean. The final mechanical merge preserves those feature bytes. ClawSweeper revision 7 found no code/security defects and accepted the live proof; its additive-contract compatibility note is addressed explicitly above.
  • Delta over pinned main: production +111/-15 (net +96), tests +238/-6 (net +232), docs +100/-50 (net +50). Growth implements the new Fal contracts while keeping endpoint and geometry policy in the plugin.

@vincentkoc vincentkoc self-assigned this Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: fal size: M maintainer Maintainer-authored PR labels Sep 9, 2026
@vincentkoc
vincentkoc force-pushed the feat/gpt-image-2-5-direct branch from 8557f0c to 600abde Compare September 9, 2026 11:20
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 12:10 PM ET / 16:10 UTC (Revision 7).

ClawSweeper review

What this changes

Adds fal GPT Image 2.5 generation and editing, including model-specific output controls, validated dimensions, support for 16 reference images, and documentation.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful work absent from current main. The updated live results resolve the previous proof blocker, and the introduced diff has no actionable correctness or security findings.

Priority: P2
Reviewed head: 2ec348bfb6837ce2309865f37b331ad9e23f9070

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with completed live acceptance and useful regression coverage; no concrete patch defect remains.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured PR body records four successful authenticated runs through the changed shared runtime and fal provider on isolated Linux at the reviewed head, covering both variants, sibling and explicit edit routing, decoded dimensions, sampled edit effects, and transparent WebP alpha. This resolves the prior proof request.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured PR body records four successful authenticated runs through the changed shared runtime and fal provider on isolated Linux at the reviewed head, covering both variants, sibling and explicit edit routing, decoded dimensions, sampled edit effects, and transparent WebP alpha. This resolves the prior proof request.
Evidence reviewed 7 items Verified introduced scope: Inspected the complete local production diff from the pinned merge base to the reviewed head. The separate comparison against 3bea1d3 showed unchanged feature bytes. The stale test merge was not used to infer removal of main-branch behavior.
Request ownership and compatibility: Exact model matching contains the new endpoint, geometry, reference-limit, quality, and background policies within fal. Shared normalization uses optional model-specific maps with provider-wide fallbacks. The existing runtime suppresses inferred resolution for models declaring an empty resolution list.
Completed live proof resolves prior request: The supplied complete PR-body snapshot, sourceRevision 23f76f300f45b684ff1f0297c9b1b3f6cfcc83886896d9c63b2d61f2bbfd17c8, records four authenticated calls through the real shared runtime and fal provider at the reviewed head. Both variants generated and edited successfully: HTTP 200, nonempty outputs, matching MIME, and decoded 1024x1024 dimensions. Flare exercised sibling edit routing; Sunburst exercised explicit edit routing and transparent WebP alpha. Both edits passed sampled red-to-blue checks. These completed observations address the retained previous-review rank-up request; they do not establish exhaustive image semantics.
Findings None None.
Security None None.

How this fits together

OpenClaw’s shared image runtime receives prompts, reference images, and output preferences from the CLI or agent tool. The fal plugin translates those requests into provider calls and returns downloaded image bytes for normal output handling.

flowchart LR
  A[CLI or agent image tool] --> B[Shared image runtime]
  B --> C[Model capability filtering]
  C --> D[fal routing and geometry]
  D --> E[Generation or edit endpoint]
  E --> F[Guarded image download]
  F --> G[Generated image output]
Loading

Before merge

  • Resolve merge risk (P1) - Independently distributed plugins adopting the two new output-capability maps need a runtime that understands them; older runtimes can ignore those controls. Existing plugins retain provider-wide fallbacks.
Agent review details

Security

None.

PR surface

Source +96, Tests +232, Docs +50. Total +378 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 111 15 +96
Tests 3 238 6 +232
Docs 2 100 50 +50
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 449 71 +378

Review metrics

Metric Value Why it matters
Public capability extension 2 optional model-specific output maps Format and background overrides extend the existing quality-map pattern without replacing legacy fields.
Production versus tests Production net +96 lines; tests net +232 lines Production growth implements the fal endpoint and geometry contracts, with boundary coverage for routing, limits, and output isolation.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #143007
Summary: This PR supplies the remaining fal portion of the shared feature request; the merged direct OpenAI implementation is complementary.

Members:

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

Merge-risk options

Maintainer options:

  1. Retain the additive capability contract (recommended)
    Accept the discussed optional maps with their tested provider-wide fallbacks, keeping third-party adoption tied to a supporting runtime.

Technical review

Best possible solution:

Keep fal endpoint and geometry policy in the plugin, using additive shared capability metadata while preserving existing defaults and provider-wide fallbacks.

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

Not applicable as a feature request; current-main source establishes the missing fal-specific handling, and the supplied after-change live results exercise the new paths.

Is this the best way to solve the issue?

Yes. Extending the existing fal plugin and model-capability lookup avoids a parallel integration and preserves older model behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9c0ae15a4649.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured PR body records four successful authenticated runs through the changed shared runtime and fal provider on isolated Linux at the reviewed head, covering both variants, sibling and explicit edit routing, decoded dimensions, sampled edit effects, and transparent WebP alpha. This resolves the prior proof request.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded addition to an existing image provider without an urgent existing-user outage.
  • merge-risk: 🚨 compatibility: The public plugin capability type gains optional format and background maps whose adoption requires a supporting runtime.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured PR body records four successful authenticated runs through the changed shared runtime and fal provider on isolated Linux at the reviewed head, covering both variants, sibling and explicit edit routing, decoded dimensions, sampled edit effects, and transparent WebP alpha. This resolves the prior proof request.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured PR body records four successful authenticated runs through the changed shared runtime and fal provider on isolated Linux at the reviewed head, covering both variants, sibling and explicit edit routing, decoded dimensions, sampled edit effects, and transparent WebP alpha. This resolves the prior proof request.

Evidence

What I checked:

  • Verified introduced scope: Inspected the complete local production diff from the pinned merge base to the reviewed head. The separate comparison against 3bea1d3 showed unchanged feature bytes. The stale test merge was not used to infer removal of main-branch behavior. (extensions/fal/image-generation-provider.ts:44, 2ec348bfb683)
  • Request ownership and compatibility: Exact model matching contains the new endpoint, geometry, reference-limit, quality, and background policies within fal. Shared normalization uses optional model-specific maps with provider-wide fallbacks. The existing runtime suppresses inferred resolution for models declaring an empty resolution list. (src/image-generation/normalization.ts:63, 2ec348bfb683)
  • Completed live proof resolves prior request: The supplied complete PR-body snapshot, sourceRevision 23f76f300f45b684ff1f0297c9b1b3f6cfcc83886896d9c63b2d61f2bbfd17c8, records four authenticated calls through the real shared runtime and fal provider at the reviewed head. Both variants generated and edited successfully: HTTP 200, nonempty outputs, matching MIME, and decoded 1024x1024 dimensions. Flare exercised sibling edit routing; Sunburst exercised explicit edit routing and transparent WebP alpha. Both edits passed sampled red-to-blue checks. These completed observations address the retained previous-review rank-up request; they do not establish exhaustive image semantics. (2ec348bfb683)
  • Boundary regression coverage: Read the new runtime/provider tests covering both variants, generation and edit routing, 16 accepted versus 17 rejected references, geometry validation, and inferred-resolution suppression. Existing GPT Image tests retain the 10-reference contract. Shared output tests cover model-specific acceptance, absent-map fallback, and explicit empty restrictions. Tests were inspected, not executed during this read-only review. (extensions/fal/image-generation-provider.gpt-image-25.test.ts:51, 2ec348bfb683)
  • Still necessary on main and release: Inspected the fal provider at fetched main and v2026.9.3: both retain generic GPT Image handling and the 10-reference limit without these four model-specific routes. GitHub confirms feat(openai): support GPT Image 2.5 variants #143068 merged, but its documented scope is direct OpenAI support. The remaining fal work belongs to this PR and the still-open Feature: GPT Image 2.5 through OpenAI and fal #143007. (extensions/fal/image-generation-provider.ts:45, 9c0ae15a4649)
  • Existing model-specific capability precedent: GitHub’s merged-commit patch confirms that the direct OpenAI change added the model-specific quality lookup now extended to formats and backgrounds. Local history also identifies recent fal geometry and media maintenance by Peter Steinberger. Deeper local blame encountered unavailable historical blobs, so no introducing-author claim is made from boundary blame. (src/image-generation/normalization.ts:65, f93881f90f42)

Likely related people:

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

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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-09T11:21:12.541Z sha 5d7d6071423a07b7e4fe8a2f58d8c9648087c9b6 :: blocked before merge. :: none
  • reviewed 2026-09-09T11:58:53.151Z sha 01ec3ca :: blocked before merge. :: none
  • reviewed 2026-09-09T12:28:06.479Z sha 01ec3ca :: blocked before merge. :: none
  • reviewed 2026-09-09T12:58:11.745Z sha 62aa3ff :: blocked before merge. :: none
  • reviewed 2026-09-09T13:22:51.652Z sha 62aa3ff :: blocked before merge. :: none
  • reviewed 2026-09-09T16:02:32.151Z sha 2ec348b :: blocked before merge. :: none

Base automatically changed from feat/gpt-image-2-5-direct to main September 9, 2026 11:47
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes extensions: openai size: L and removed size: M labels Sep 9, 2026
@vincentkoc
vincentkoc force-pushed the feat/gpt-image-2-5-fal branch from 5d7d607 to 01ec3ca Compare September 9, 2026 11:52
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed cli CLI command changes extensions: openai size: L labels Sep 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 9, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 9, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 9, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 9, 2026 15:46
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 9, 2026
@vincentkoc
vincentkoc merged commit a57c799 into main Sep 9, 2026
197 of 198 checks passed
@vincentkoc
vincentkoc deleted the feat/gpt-image-2-5-fal branch September 9, 2026 16:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
* feat(fal): support GPT Image 2.5 variants

* test(agents): restore Windows media fixture isolation
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

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: fal maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: GPT Image 2.5 through OpenAI and fal

1 participant