Skip to content

fix(plugins): keep transcription catalogs off session transports - #174015

Merged
steipete merged 1 commit into
mainfrom
ci/fix1-transcription-catalog-imports
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix1-transcription-catalog-imports

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Current-main negative control: catalog contract 2 failed / 16 passed, with the nested cause cold catalog imported transcription transport. The generic Vitest mock-hoisting advice is not the root cause.
  • Repaired catalog contract: all 18 provider cases pass, with the import traps unchanged.
  • OpenAI realtime provider/bounds and Mistral provider tests: all 44 cases pass, including UTF-8 split-surrogate accounting and bounded transcripts.
  • SDK export/declaration tooling: 14 passed, one existing skipped case. Canonical SDK registration check passes.
  • Targeted TypeScript and type-aware core/extension lint pass. Full build passes, including 97 plugin runtime bundles, SDK declarations and UI build gates. Final runtime rebuild also passes after retaining the existing session helper export. Independent P2 review is clean.

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 00b1a82d14857f303b13c2d007545f309db50bfc over main 1e2d50c663247a66934e2501481b964e3368c0d1. 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 08:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T08:27:20.253406Z e61c1c6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts extensions: openai extensions: mistral extensions: xai size: XS labels Oct 16, 2026
@steipete
steipete enabled auto-merge (squash) October 16, 2026 08:31
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@steipete
steipete merged commit 586e70d into main Oct 16, 2026
339 of 355 checks passed
@steipete
steipete deleted the ci/fix1-transcription-catalog-imports branch October 16, 2026 08:40
@steipete

Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation extensions: mistral extensions: openai extensions: xai scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant