Skip to content

fix(providers): preserve realtime tool-result delivery ownership - #120776

Merged
steipete merged 1 commit into
mainfrom
codex/qa-realtime-provider-tool-result-delivery
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-realtime-provider-tool-result-delivery

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Realtime tool-result submissions could appear successful even when their payload was not representable on the provider's wire format, the connection rejected the send, or a reconnect queue overflowed. Once the gateway accepted that false success, the original tool call could not be retried.

Why This Change Was Made

Each provider now validates and snapshots its own wire payload before consuming pending ownership, acknowledges delivery only after its actual transport accepts the message, and propagates genuine send and queue failures through the existing provider lifecycle.

The provider-specific owners preserve valid JSON values and custom serialization semantics, unsupported interim behavior, reconnect policies, and exactly-once error callbacks. No core or public provider contracts were changed.

User Impact

Failed realtime tool outputs now produce an actionable failure and remain retryable instead of silently disappearing after the gateway reports success.

Evidence

  • Tests against the existing registered provider and gateway paths reproduced 34 failures while 267 existing controls passed.
  • The final three-provider focused suites pass all 301 cases, including malformed values, custom serializers, lazy startup, reconnect queues, transport errors, and acknowledgement ownership.
  • The complete ten-file changed gate passes production and test typechecks, both lint lanes, provider ownership, and all runtime/security guards.
  • An independent review verified the upstream websocket and SDK contracts, and a fresh structured review reported no actionable findings.
  • Production grows by 48 lines across three distinct provider-owned wire and lifecycle boundaries; no public configuration, authentication, core routing, or persistent state changes.

@steipete
steipete marked this pull request as ready for review August 8, 2026 23:51
@steipete
steipete merged commit bb019e4 into main Aug 9, 2026
164 of 168 checks passed
@steipete
steipete deleted the codex/qa-realtime-provider-tool-result-delivery branch August 9, 2026 00:03
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 9, 2026
Punchcard-Session: amber-workshop-workshop-36

* origin/main: (28 commits)
  perf(doctor): keep bundled doctor contract closures dependency-light (#120698)
  fix(elevenlabs): preserve repeated committed speech segments (#120792)
  fix(ai): fence Responses replay metadata (#120777)
  fix(ai): invalidate stale compaction replay (#120786)
  fix(telegram): clean up every failed webhook startup phase (#120788)
  fix(codex): preserve configured MCP tools in scheduled turns (#120366)
  fix(ui): show dev checkout commit lag in Updates (#120769)
  fix(agents): repair XML-polluted tool names (#113814)
  fix(discord): remove only the bot own reactions (#120785)
  fix(macos): complete ChatGPT subscription setup (#120782)
  fix(plugins): surface safe administrator install warnings (#120783)
  fix(release): keep upgrade survivor sessions fresh (#120778)
  fix(providers): preserve realtime tool-result delivery ownership (#120776)
  fix(plugins): retain incognito scope for embedded session ownership (#120215)
  fix(elevenlabs): surface realtime provider error events (#120772)
  fix(agents): preserve exact steering delivery ownership (#120770)
  fix(telegram): prevent session-count routing slowdown (#120774)
  fix(agents): preserve authoritative background process outcomes (#120754)
  test(process): make Linux adapter wiring portable (#120741)
  fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant