Skip to content

Add complete MiniMax TTS support - #1233

Merged
karkarl merged 2 commits into
mainfrom
octo/20260801-tts-tool-recvqe6RycKVmW
Aug 26, 2026
Merged

karkarl merged 2 commits into
mainfrom
octo/20260801-tts-tool-recvqe6RycKVmW

Conversation

@karkarl

@karkarl karkarl commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes #1081. That cross-repository PR could not be updated because its author disabled maintainer edits, so this origin-owned branch carries the reviewed, rebased stack.

Summary

  • add MiniMax as a provider for the existing tts.speak and tts.status commands
  • support global and mainland China MiniMax endpoints with fixed trusted HTTPS origins
  • protect the MiniMax API key using the existing DPAPI settings path
  • add bounded response handling, whole-operation cancellation/timeout, sanitized provider errors, and HTTP-200 application-error handling
  • add Voice settings, readiness/fallback routing, localization, MCP/CLI documentation, and deterministic contract tests

No new Windows node or MCP command is introduced.

Validation

Validated at 8a7b6db338db219543f2f78318d435fcd8dfa5a2 on Windows ARM64 with OPENCLAW_REPO_ROOT set to the worktree.

  • ./build.ps1: passed all Shared, CLI, WinNode CLI, Setup Engine, and WinUI builds. The offline host lacked the x64 10.0.10 host pack, so the script was run with the detected ARM64 restore graph and pinned installed SDK 10.0.302.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 3,817 passed, 32 environment-gated skipped
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 2,741 passed
  • dotnet test ./tests/OpenClaw.WinNode.Cli.Tests/OpenClaw.WinNode.Cli.Tests.csproj --no-restore: 127 passed
  • focused MiniMaxTextToSpeechClientTests: 10 passed
  • git diff --check origin/main..HEAD: passed
  • final rubber-duck review of origin/main..HEAD: no high-confidence actionable findings
  • git range-diff confirmed exact patch equivalence with the previously reviewed two-commit stack

Real behavior proof

Current-head isolated proof used no MiniMax credentials and did not mutate normal user settings.

  • winnode --list-tools exposed tts.speak, tts.status, and app.navigate
  • winnode --command app.navigate --params '{"page":"voice"}' returned { "navigated": true, "page": "voice" }
  • winnode --command tts.status --params '{}' reported configured provider minimax, readiness needs-api-key, effective provider windows, and fallback enabled
  • UI Automation found the visible, enabled Provider, API Key, Voice ID, Model, Region, and privacy controls with localized accessible names
  • the API key field was empty in all proof artifacts; no secrets or PII were captured

Current-head UI

MiniMax provider settings with an empty API key field

MiniMax voice, model, region, and cloud privacy notice

Gateway-mediated proof is not applicable because this changes provider handling behind existing TTS commands rather than adding a gateway or node-command contract.

octo-patch and others added 2 commits August 26, 2026 09:45
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 85d40d7c-24af-45e6-9205-c1f185d0476c
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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

@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. P2 Normal priority bug or improvement with limited blast radius. labels Aug 26, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Codex review: found issues before merge. Reviewed August 26, 2026, 2:32 PM ET / 18:32 UTC.

ClawSweeper review

What this changes

This PR adds MiniMax as a selectable cloud provider for the existing Windows-node text-to-speech commands, including DPAPI-protected settings, fixed regional endpoints, localization, CLI documentation, and tests.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open. This collaborator-authored feature follows the existing TTS-provider shape and has no blocking code defect, but it needs maintainer product acceptance, a small documentation correction, and ideally a redacted real MiniMax synthesis/playback smoke before merge.

Priority: P2
Reviewed head: 8a7b6db338db219543f2f78318d435fcd8dfa5a2
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is coherent and well-covered by contract tests, while the available current-head proof stops before a real MiniMax service response and playback.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; the PR body nevertheless shows current-head UI and MCP readiness proof, but not authenticated MiniMax synthesis and playback.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; the PR body nevertheless shows current-head UI and MCP readiness proof, but not authenticated MiniMax synthesis and playback.
Evidence reviewed 6 items Current main does not already contain MiniMax: The current-main TTS capability catalog lists Piper, Windows, and ElevenLabs only, so this PR remains a distinct feature rather than an obsolete implementation.
Provider boundary is fixed and credential-aware: The new client selects only the two hard-coded HTTPS origins, applies a Bearer API key, bounds response reads, and sanitizes provider failures.
Secret storage follows the existing settings path: The MiniMax API key is protected only in the persisted settings clone and is covered by the existing DPAPI round-trip test extended for MiniMax.
Findings 1 actionable finding [P3] Document MiniMax in the advertised capabilities
Security None None.

Live Verification

Command: pwsh -File .\run-app-local.ps1 -AllowNonMain -Isolated

Result: FAIL (failed) — execution before step 1 run: sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

Assertions:

  • FAIL expect_output: Started OpenClaw Tray

How this fits together

The tray stores text-to-speech provider settings and exposes existing speech commands through local MCP and gateway node capabilities. A request selects a ready provider, synthesizes audio, then plays it locally while reporting readiness and fallback state.

flowchart LR
  A[User or MCP speech request] --> B[Provider selection]
  B --> C[MiniMax settings and readiness]
  C --> D[Fixed MiniMax HTTPS endpoint]
  D --> E[Audio decoding]
  E --> F[Local Windows playback]
Loading

Decision needed

Question Recommendation
Should OpenClaw own MiniMax as an in-core cloud TTS provider once a redacted live synthesis and playback smoke is available? Sponsor MiniMax after live proof: Accept the provider direction after correcting the Windows-node guide and recording a redacted real-service synthesis, decode, and playback result.

Why: This is a new provider and configuration surface with intentional cloud egress, so implementation correctness alone cannot decide whether it belongs in the core provider set.

Before merge

  • Document MiniMax in the advertised capabilities (P3) - This guide still tells Windows-node users that TTS supports only Windows synthesis or ElevenLabs. Adding MiniMax leaves the testing and discovery documentation contradictory; update the capability description to include MiniMax or make it provider-neutral.
  • Resolve merge risk (P1) - Selecting MiniMax sends response text and its Bearer credential to a fixed external cloud provider; the supplied proof shows settings and readiness but not an authenticated synthesis, decode, and local-playback result.
  • Complete next step (P2) - A maintainer must decide whether this cloud provider belongs in core and whether the remaining real-service proof is sufficient for release confidence.

Findings

  • [P3] Document MiniMax in the advertised capabilities — docs/WINDOWS_NODE_TESTING.md:120
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +543/-18, tests +352/-3 The feature adds a provider client, UI/settings integration, localization, and contract coverage in a single bounded change.
Affected files 22 files affected The change crosses the TTS runtime, persisted settings, MCP-facing documentation, and five locale resources.

Root-cause cluster

Relationship: canonical
Canonical: #1233
Summary: This is the origin-owned replacement for the earlier closed, unmerged MiniMax implementation.

Members:

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

Merge-risk options

Maintainer options:

  1. Capture a redacted live MiniMax smoke (recommended)
    Before merge, use an isolated tray profile and a disposable credential to show successful MiniMax synthesis, decoding, and local playback without exposing the key or response content.
  2. Accept provider-contract uncertainty
    Merge based on the mocked request/response coverage while accepting that the first authenticated provider execution may reveal an upstream contract mismatch.
  3. Pause the provider addition
    Do not merge if maintainers do not want this cloud provider and its settings surface in core.

Technical review

Best possible solution:

Keep MiniMax behind the established provider and fallback boundary, correct the Windows-node capability documentation, and land only after a maintainer accepts the provider direction with a redacted end-to-end provider smoke.

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

Not applicable as a bug report. The unverified merge-relevant path is reproducible with an isolated tray profile, a disposable MiniMax credential, and a short text-to-speech invocation.

Is this the best way to solve the issue?

Unclear. The code uses the existing TTS-provider architecture, but maintainers must decide whether MiniMax belongs in core and should request real-service proof before accepting that direction.

Full review comments:

  • [P3] Document MiniMax in the advertised capabilities — docs/WINDOWS_NODE_TESTING.md:120
    This guide still tells Windows-node users that TTS supports only Windows synthesis or ElevenLabs. Adding MiniMax leaves the testing and discovery documentation contradictory; update the capability description to include MiniMax or make it provider-neutral.
    Confidence: 0.98

Overall correctness: patch is correct
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1e18866d9b42.

Labels

Label changes:

  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is terminal.

Label justifications:

  • P2: This is a bounded user-facing TTS provider addition rather than an urgent regression.
  • merge-risk: 🚨 other: Real MiniMax service compatibility and playback have not been observed despite strong mocked contract coverage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a collaborator, so the external-contributor proof gate does not apply; the PR body nevertheless shows current-head UI and MCP readiness proof, but not authenticated MiniMax synthesis and playback.

Evidence

What I checked:

Likely related people:

  • Scott Hanselman: Current-main blame attributes the existing provider dispatch and ElevenLabs client to the v2026.7.1 TTS implementation. (role: introduced existing TTS service; confidence: high; commits: 4206611f2b2e; files: src/OpenClaw.Tray.WinUI/Services/TextToSpeech/TextToSpeechService.cs, src/OpenClaw.Tray.WinUI/Services/TextToSpeech/ElevenLabsTextToSpeechClient.cs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Correct the Windows-node capability documentation.
  • Capture a redacted isolated run that shows successful MiniMax synthesis, decoding, and local playback.

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 (1 earlier review cycle)
  • reviewed 2026-08-26T18:04:40.691Z sha 8a7b6db :: needs maintainer review before merge. :: none

@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 26, 2026
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 26, 2026
@karkarl
karkarl merged commit ff3fb35 into main Aug 26, 2026
30 checks passed
@karkarl
karkarl deleted the octo/20260801-tts-tool-recvqe6RycKVmW branch August 26, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

2 participants