Repository navigation
feat: register Telnyx as an official external provider - #116016
Conversation
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 12:57 PM ET / 16:57 UTC (Revision 26). ClawSweeper reviewWhat this changesRegisters a vendor-maintained Telnyx inference plugin in OpenClaw’s official provider catalog, adds setup and model documentation, and tests its install and onboarding metadata. Merge readiness✅ Ready for maintainer review This PR remains useful: current main has no Telnyx inference catalog entry, and the pinned diff has no supported blocking finding. The September 25 recorded active organization admin decision accepts the official trusted-source treatment that blocked the prior review. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s provider catalog supplies install sources and setup choices before an external plugin runs. The installer uses that metadata to obtain the plugin; the vendor plugin then handles model discovery and inference. flowchart LR
A[Provider catalog] --> B[Telnyx setup choice]
B --> C[Install source selection]
C --> D[Pinned npm or ClawHub package]
D --> E[Vendor plugin runtime]
E --> F[Model discovery and inference]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +174, Docs +196, Other +51. Total +421 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the reviewed catalog-only registration through the native enforced gates while Telnyx continues to own and publish the runtime package. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a provider discovery and setup choice. The reported install, upgrade, and authenticated inference observations provide after-change behavior evidence. Is this the best way to solve the issue? Yes. A catalog-only OpenClaw change with an externally maintained runtime follows the recorded maintainer direction and keeps vendor behavior out of core. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f2a2b9c67943. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (25 earlier review cycles; latest 8 shown)
|
ce64fd7 to
64a1b20
Compare
MixxyAI
left a comment
There was a problem hiding this comment.
The live catalog, streaming, and tool-call evidence are useful, and the provider is kept in an isolated extension package. I left one scope question about removing the output-token ceiling across the whole Telnyx catalog.
If this ends up as an external/ClawHub provider, I’d be happy to compare a small redacted Agent-provider smoke matrix; no API key or private output would be needed.
| // Telnyx error 10015: max_completion_tokens (former max_tokens) and | ||
| // function tools cannot be used in the same request. Agent turns always | ||
| // carry tools, so the cap must yield or every tool request 400s. | ||
| if (Array.isArray(payload.tools) && payload.tools.length > 0) { |
There was a problem hiding this comment.
Is Telnyx error 10015 known to apply endpoint-wide across both Telnyx-hosted and proxied models? The current wrapper removes both output caps for every Telnyx model whenever any tool is present, so users lose their requested generation/cost ceiling even on models that may accept max_tokens with tools. Telnyx’s current chat schema lists max_tokens and tools independently. If the rejection is model- or family-specific, could this fallback be scoped while preserving the cap elsewhere? A registered-provider regression for both the affected and cap-preserving cases would make the policy explicit.
There was a problem hiding this comment.
Good catch — you were right, and it's messier than either hypothesis. Live-tested every model on the account (2026-07-29, real key, max_tokens: 256 + one function tool):
| Result | Models |
|---|---|
| Accept (200, tool call executed) | openai/gpt-5.4, gpt-5.4-mini, gpt-5.2, gpt-5.1, gpt-5, gpt-4o, gpt-4.1, anthropic/claude-haiku-4-5 |
| Reject (400, code 10015) | every Telnyx-hosted model (Kimi ×3, GLM ×2, MiniMax ×2, Qwen, Llama) plus proxied openai/gpt-4o-mini, google/gemini-2.5-flash, Groq/gpt-oss-120b |
So it's neither endpoint-wide nor expressible by family/route: gpt-4o accepts while gpt-4o-mini rejects, and /models exposes no predicting field. That rules out both the blanket strip and a static scope.
Reworked the wrapper in 736f7c6 to the adaptive policy you suggested the shape of:
- Caller caps are preserved by default — accepting models (
gpt-5.4etc.) keep their generation/cost ceiling. - The 8 live-verified rejecting bundled models are pre-seeded, so the default model's hot path never eats the failing first attempt.
- Unknown/discovered models attempt with the cap, retry once without it on a 400, and are cached only when the retry succeeds (unrelated 400s stay visible; nothing is cached from them). Detection tolerates the SDK's bodyless
400 status code (no body)because the endpoint returns Telnyx-envelope errors the OpenAI client can't surface — reported upstream to Telnyx along with the docs mismatch. - Requests without tools never lose their cap anywhere.
Regression tests for both cases (and the no-tools + retry-failure paths) are in extensions/telnyx/index.test.ts against the registered provider's wrapStreamFn.
|
Thank you for doing the live catalog matrix — that resolves the ambiguity much better than a family- or route-level assumption could. The adaptive policy now addresses my concern: preserve the caller’s cap by default, pre-seed only the models verified to reject it, retry an unknown tool-bearing request once without the cap after the relevant 400, and cache that decision only when the cap-free retry succeeds. Keeping unrelated 400s visible and leaving no-tools requests capped are important boundaries. The added registered-provider regression cases cover the behavior I was looking for. |
|
Hey, Adding Telnyx-side context on the max_tokens + tools workaround, since it's reasonable to ask whether that's permanent scaffolding. I'm on the Telnyx side and reviewed this. The per-model inconsistency @dynamite-bud mapped is confirmed as a real API defect, not intended behaviour, it's been raised with our AI inference team along with three related issues on the same endpoint (Telnyx-envelope errors instead of OpenAI's shape, so SDKs surface a bare 400 (no body); is_vision_supported: false on proxied multimodal routes; missing pricing on three proxied models). They're tracked internally and owned by that team. Realistic timeline: a server-side fix is expected but not imminent, it's not landing in days. So our recommendation is to keep the client-side workaround as-is for now rather than block on it. |
|
ClawSweeper applied the proposed close for this PR.
|
|
@clawsweeper @MixxyAI thank you. Following up on the close, could a maintainer help clarify the intended path here? I understand the reasoning behind keeping a standalone provider outside the main repo, and I’m happy to maintain the Telnyx plugin externally through ClawHub/npm. That may actually make sense given that we’ll need to keep updating it as the Telnyx inference API evolves. The main thing I’d like to understand is whether Telnyx can still be included as an official external provider. There seems to be an established model where providers are distributed externally but still appear in the official provider catalog, onboarding and docs. This PR already included the Telnyx catalog entry, provider metadata, API key flow and onboarding configuration. Is Telnyx eligible for that same path? If so, what would be the process for getting the plugin published and the official catalog entry reviewed? I’d also appreciate confirmation from a maintainer that the close reflects the intended product decision. The PR was closed by ClawSweeper, while the contributor guidance describes out-of-scope decisions as maintainer judgement. This isn’t a complaint about the review, I just want to make sure we’re acting on a confirmed decision before moving the package elsewhere. For context, Telnyx is already supported as a backend in the bundled voice-call plugin, so we’d be keen to preserve that existing level of trust and visibility for inference, even if the distribution model is different. Thanks again to everyone who reviewed the implementation and helped improve the |
|
@jalehman the vendor blocker is cleared. Telnyx shipped the SDK fix in team-telnyx/openclaw-telnyx-provider#4 and published Head Proof on an isolated OpenClaw
Update (head @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
1 similar comment
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
@telnyx/[email protected] is built against the batched provider-catalog SDK and loads on 2026.8.1+ hosts; 0.1.0 failed with sdk-incompatible. Pin the npm artifact with its registry integrity, raise minHostVersion to >=2026.8.1, drop the ClawHub pin until 0.2.0 is published there, and remove the docs warning. Co-Authored-By: Claude Fable 5.1 <[email protected]>
@telnyx/[email protected] is now published on ClawHub under the telnyx publisher with the same npm integrity and source commit, so the catalog can offer both sources again. npm stays the default choice. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The line-cap ratchet (openclaw#149622) rejects growth in files already past the max-lines cap. Move the Telnyx pin test into a vendor-pins sibling module, and drop the CLI install and onboarding additions that re-proved what the wecom pass-through and plugin-install-plan tests already cover. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
@clawsweeper re-review |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Thanks for picking this up again @jalehman seems like we're getting closer, looks like the CI failures are flaky but we need to merge against main again. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Landing decision for head Josh Lehman (@jalehman) explicitly authorized merging this catalog-only PR on September 25, 2026 after reviewing its scope. I verified that the acting account is an active OpenClaw organization admin. This records the root AGENTS.md active-org-admin direction route for the official-catalog ownership decision; it is not an approval attributed to assigned reviewer Patrick-Erichsen. The catalog grants official trusted-source treatment to the vendor npm package, not merely onboarding visibility. The default install selects Reviewed evidence: the PR body reports fresh npm and ClawHub installation, upgrade from 0.1.0, runtime loading on OpenClaw 2026.9.4, and authenticated discovery/streaming/tool-call tests for 0.2.0. These are contributor-reported results, not new live tests I executed. The latest ClawSweeper review calls behavioral proof sufficient and identifies official-trust acceptance as its outstanding decision. The bounded pre-push P0–P2 autoreview cleared the unchanged candidate; exact-head CI run 36074148689 and the applicable security gate now pass. No claim is made that CI independently proves live Telnyx inference or every future vendor release. Proceeding through native enforced landing gates under that maintainer authorization; no admin bypass requested. |
|
@clawsweeper re-review Native landing requires a fresh completed review (the previous review expired). The candidate remains a6dd852 and its enforced gates pass. Please consider the recorded active-org-admin landing decision and explicit proof limits in #116016 (comment). No source changes or new live-proof claims. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
|
Huzzah, thanks a mil @jalehman ! |
What
Registers Telnyx as a vendor-maintained external inference provider in OpenClaw's official catalog. This PR contains catalog metadata, onboarding/install contracts, documentation, and tests; it does not bundle Telnyx runtime code.
What Problem This Solves
This makes the Telnyx provider discoverable through normal OpenClaw onboarding and installation while keeping the runtime and release responsibility with Telnyx.
Changes
@telnyx/[email protected], npm,minHostVersion >=2026.8.1)Evidence
Initial refresh validated at:
bc43ddbee71f61b8b5028cd36ad56a26c6d7a4b5Secretless isolated AWS proof against the pushed PR head:
pnpm docs:check-mdx: 1,294 files passedpnpm docs:check-links: 13,216 links checked, 0 brokenpnpm docs:check-i18n-glossary: passedoxfmt --check: passedgit diff --check: passedProof run:
run_b40e948a8d69. The AWS proof lease was released.Vendor compatibility fix and current-host proof (head
b5d09a297c4b8634aa8951d53d7dd0f1015b819c, rebased onto main on 2026-09-22 and again on 2026-09-23; the only conflict was the zh-CN glossary, resolved by keeping main's file and appending the four Telnyx entries)The earlier blocker is resolved.
@telnyx/[email protected]importedbuildManifestModelDefinition, which #130564 (89d6ce4) removed fromopenclaw/plugin-sdk/provider-catalog-shared. Telnyx fixed the plugin in team-telnyx/openclaw-telnyx-provider#4 (merged asd68bb16) and published@telnyx/[email protected]to npm and ClawHub:dist.integrity:sha512-htqOJfPx+TlLWE/nmpdJJVgrg8zDqRIX87smzY3CnKcdJPlx51Rc1kWzarvE+2hvhpm2lzD5sKkxRSIWKz2AaA==dist.shasum:0211cc9581dfe0b7fb700cdac7870bc8b11e6de9; verified by re-packing from the registry.peerDependencies.openclaw:>=2026.8.1(first release tag containing the SDK removal).@telnyx/[email protected]under thetelnyxpublisher, catalog specclawhub:@telnyx/[email protected], npm-pack artifact with the same integrity/shasum, sha256211c4da670bf3c351b0d2bc079f5beb50ef9ba0562c8e59784c0be875d01e478, source-linked tod68bb16, security scan clean.This head pins both sources to
0.2.0with the npm integrity, raisesminHostVersionto>=2026.8.1, removes the docs incompatibility warning, and updates the catalog/install-plan tests. The ClawHub spec moves from the retired@team-telnyx/openclaw-providerrecord (a temporary scope rename the vendor repo reverted) to@telnyx/openclaw-provider, matching the npm package name; npm stays the default choice.Current-host runtime proof (OpenClaw
2026.9.4, isolatedOPENCLAW_STATE_DIR,openclaw plugins inspect telnyx --runtime --json):plugin.statusopenclaw plugins install @telnyx/[email protected]from npmloadedproviderIds: ["telnyx"],builtWithOpenClawVersion: 2026.9.4,diagnostics: []0.1.0install, thenopenclaw plugins update @telnyx/openclaw-provider@latestloadedUpdated telnyx: 0.1.0 -> 0.2.0openclaw plugins install clawhub:@telnyx/[email protected]from ClawHubloadedinstallSource: clawhub,providerIds: ["telnyx"],diagnostics: []0.1.0before update (control)errorcode: sdk-incompatible…does not provide an export named 'buildManifestModelDefinition'Authenticated live proof (vendor suite
OPENCLAW_LIVE_TEST=1 TELNYX_LIVE_TEST=1 npm run test:liveon the 0.2.0 source, real Telnyx API): 2/2 passed — live catalog discovery plus a streamed completion through the default model, and a tool call through OpenClaw's completions transport.Line-cap ratchet: the new ratchet (#149622) rejects growth in files already over the max-lines cap. The Telnyx catalog pin test now lives in
src/plugins/official-external-plugin-catalog-vendor-pins.test.ts, and the CLI install and onboarding additions were dropped because the wecom pass-through test andplugin-install-plan.test.tsalready prove the same behavior; the three over-cap files are back at their base line counts.Test cost (root AGENTS.md rule;
pnpm test <file> --maxWorkers=1on macOS, CI shard from run 35713061786 on headad50aff):src/plugins/official-external-plugin-catalog-vendor-pins.test.tsbun:core-unit-fast-1/checks-node-compact-large-29src/cli/plugin-install-plan.test.tsagentic-cli/checks-node-compact-small-14src/plugins/provider-install-catalog.test.tsagentic-plugins/checks-node-compact-large-5All three stay under the 30 s file budget with no timers, sleeps, process boots, or new config.
plugin-install-plan.test.tssits above the 5 s target only because of its pre-existing transform cost; the added Telnyx case contributes about 0.02 s.Unrelated CI failures on head
ad50aff(run 35713061786), recorded per the test-failure rule:server.node-pairing-ssh-verify.test.ts,server.agent-execution-shutdown.test.ts(120 s timeout),agents/worktrees/service.gc.test.ts, andextensions/codex/.../event-projector.output-fidelity.native.test.ts. None are touched by this PR; main was green on the same commit range, and the Codex one was fixed on main by #156132 after the merge-ref was built. The 2026-09-23 rebase picks that fix up.Repo checks on this head: focused Vitest for the touched test files plus the new sibling passed (457 across the catalog, install-plan, CLI, onboarding, and provider-install suites);
oxfmt --checkon all touched files passed;check-docs-mdxondocs/providers/telnyx.mdpassed;git diff --checkclean.