Skip to content

fix: onchainos payment pay + OKX wallet UX; reconcile README to v0.12.190#10

Merged
KillerQueen-Z merged 2 commits into
mainfrom
fix/onchainos-pay-and-readme
Jun 11, 2026
Merged

fix: onchainos payment pay + OKX wallet UX; reconcile README to v0.12.190#10
KillerQueen-Z merged 2 commits into
mainfrom
fix/onchainos-pay-and-readme

Conversation

@KillerQueen-Z

Copy link
Copy Markdown
Collaborator

Rebuilt cleanly on top of current main (v0.12.190). Supersedes #9 (which was based on the stale v0.12.183 catalog).

Code fixes

  • onchainos payment x402-paypayment pay — onchainos v3.3+ renamed the subcommand; OKX-wallet paid-model calls were returning HTTP 500 (unrecognized subcommand 'x402-pay'). This is the critical one — paid models are 100% broken on main without it.
  • OKX → Base auto-switch — OKX wallets are EVM-only; auto-correct a stale Solana payment chain to Base unless the user pinned one via XCLAWROUTER_PAYMENT_CHAIN.
  • Non-TTY stdout flush — force blocking stdout so the Agentic Wallet status block / funding hints aren't swallowed under systemd/Docker/PM2/pipes.
  • OKX funding box — framed "Send USDC on Base" guidance at $0 balance.
  • Extracted these into src/cli-startup.ts with unit tests (12 new).

Docs (reconciled against the v0.12.190 catalog)

  • xai/grok-4-0709 $0.20/$1.50 → $3.00/$15.00 (15× error; moved to Premium).
  • Free-model prefix nvidia/free/; free-tier count corrected 10 → 7 (v0.12.187–190 sweep), added missing free/glm-4.7, dropped delisted free examples.
  • Documented 8 catalog models missing from the price tables.
  • Advertised model count unified to 60+ across README / CLI / CLAUDE.md / plugin manifest.

Automated price cross-check: 64 rows match catalog, 0 mismatches. typecheck/lint/prettier/build clean; full suite 506 passed.

Note: fix/plugin-id-and-contracts is obsolete — its id/contracts/funding-hint changes are already in main; it should be closed, not merged.

- onchainos-adapter: `payment x402-pay` → `payment pay`. onchainos v3.3+
  renamed the subcommand; OKX-wallet paid-model calls returned HTTP 500
  ("unrecognized subcommand 'x402-pay'") otherwise.
- cli: auto-switch the persisted payment chain to Base for OKX (EVM-only)
  wallets, unless the user pinned a chain via XCLAWROUTER_PAYMENT_CHAIN.
- cli: force blocking stdout in non-TTY contexts so the Agentic Wallet status
  block and funding hints flush under systemd / Docker / PM2 / pipes.
- cli: framed "Send USDC on Base" funding guidance for OKX wallets at $0 balance.
- extract the three startup behaviours into src/cli-startup.ts with unit tests.
- correct xai/grok-4-0709 pricing $0.20/$1.50 → $3.00/$15.00 (move to Premium).
- free-model prefix nvidia/ → free/ (canonical catalog id) and fix the free-tier
  count to 7 everywhere (the v0.12.187–190 sweeps shrank it from 10; add the
  missing free/glm-4.7 row, drop the delisted mistral-small / qwen-thinking /
  deepseek-v4-pro free examples).
- document 8 catalog models missing from the tables (gpt-5.4-nano/mini,
  gemini-3.1-flash-lite, grok-4(.1)-fast-non-reasoning, grok-4.20-*), features
  matched to v0.12.190 flags.
- unify advertised model count to "60+" across README, CLI, CLAUDE.md and
  openclaw.plugin.json (67 real models; /v1/models lists more by design — aliases).
@KillerQueen-Z KillerQueen-Z merged commit 4063218 into main Jun 11, 2026
3 checks passed
@KillerQueen-Z KillerQueen-Z deleted the fix/onchainos-pay-and-readme branch June 11, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant