Repository navigation
fix(plugins): keep transcription catalogs off session transports - #174015
Merged
Merged
Conversation
Shared transcript byte accounting was imported through the runtime session SDK barrel, so constructing OpenAI and Mistral catalog descriptors also loaded the websocket transport. Keep the shared helper and move both catalog factories to a small private provider SDK leaf with type-only contracts. Preserve the existing session helper export for other callers. Register the leaf through the canonical SDK export generator and document its descriptor-only purpose. No provider algorithm, transport behavior, configuration, permission, dependency or test assertion changes. The unchanged cold-catalog contract reproduces both failures before the fix and passes all 18 provider cases after. OpenAI/Mistral runtime tests pass all 44 cases, including split-surrogate accounting and transcript limits. SDK export/declaration tooling passes 14 cases with one existing skip. Independent P2 review of the final patch is scoped-clean.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 16, 2026 08:24
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
October 16, 2026 08:31
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…nclaw#174015) Shared transcript byte accounting was imported through the runtime session SDK barrel, so constructing OpenAI and Mistral catalog descriptors also loaded the websocket transport. Keep the shared helper and move both catalog factories to a small private provider SDK leaf with type-only contracts. Preserve the existing session helper export for other callers. Register the leaf through the canonical SDK export generator and document its descriptor-only purpose. No provider algorithm, transport behavior, configuration, permission, dependency or test assertion changes. The unchanged cold-catalog contract reproduces both failures before the fix and passes all 18 provider cases after. OpenAI/Mistral runtime tests pass all 44 cases, including split-surrogate accounting and transcript limits. SDK export/declaration tooling passes 14 cases with one existing skip. Independent P2 review of the final patch is scoped-clean.
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.
What Problem This Solves
Fixes OpenAI and Mistral capability catalog construction importing the realtime transcription transport before any session is requested.
User Impact
Capability discovery stays on the lightweight descriptor path. Provider session creation and transcript byte accounting keep their existing behavior; no settings or migration are required.
Why This Change Was Made
The shared transcript byte helper introduced in #173688 was exported through a session SDK barrel that also evaluates the WebSocket transport. Importing that helper from both catalog factories therefore crossed the existing cold-catalog boundary.
A five-line private provider SDK leaf exposes the same helper and erased descriptor types. Both factories now use it. The existing session entrypoint keeps its helper export and session APIs. The canonical generator updates the entrypoint/private inventory, runtime export and declaration aliases; the SDK reference documents the narrow path. No helper algorithm, test assertion, deadline or dependency changes.
The existing catalog contract is the regression test requiring this leaf; no additional test-only production seam was added. The separately reported debug-overlay lint error is already fixed on main by #173976 and is not part of this patch.
Evidence
cold catalog imported transcription transport. The generic Vitest mock-hoisting advice is not the root cause.The change retains the shared byte-counting owner from #173688 and restores the import boundary that its catalog callers already require.
CI status
Native review and GitHub-gated preparation passed for
e61c1c6aa637a408487c0bc980ea28ec9de033be; no additional push was made. Auto-merge is registered but the PR is not merged.CI run 38873480748 tested merge
00b1a82d14857f303b13c2d007545f309db50bfcover main1e2d50c663247a66934e2501481b964e3368c0d1. It currently has eight failed jobs outside this patch: Codex migration deadline, startup/continuation, registration imports, stale session-binding identifiers, thread cleanup, plus Telegram progress delivery and paired-node worker lifecycle.The entire Codex source tree is identical between the tested merge and its main parent. All six affected Codex test files were replayed narrowly on that exact main parent, using a frozen offline install and one worker, and reproduced their CI failures. The session-binding type errors are the same missing identifiers in that parent. Telegram and worker lifecycle failures remain outside this repair and prevent a green-CI landing claim. No assertions, deadlines or CI gates were relaxed, and no workflow was rerun.