Skip to content

openclaw sync: preflight-probe the AIMA proxy and warn loudly if unreachable#91

Open
rjckkkkk wants to merge 1 commit into
developfrom
feat/openclaw-sync-proxy-preflight
Open

openclaw sync: preflight-probe the AIMA proxy and warn loudly if unreachable#91
rjckkkkk wants to merge 1 commit into
developfrom
feat/openclaw-sync-proxy-preflight

Conversation

@rjckkkkk

Copy link
Copy Markdown
Collaborator

What

aima openclaw sync writes an OpenClaw provider that points the chat data plane at the aima serve proxy (default :6188). This adds a preflight that probes that address during sync and surfaces a loud, actionable warning when it is unreachable — instead of letting the failure show up inside OpenClaw as an opaque "connection error / timeout".

Why

Two real partner-integration failures both look identical from OpenClaw (Node) — an opaque connection error/timeout that resembles nothing in the config:

  1. Only the MCP control plane is wired. aima mcp --profile operator (what OpenClaw auto-launches) serves STDIO and does not open :6188. If aima serve isn't running separately, the provider has no listener to reach.
  2. An HTTP_PROXY/HTTPS_PROXY env intercepts loopback. OpenClaw runs on Node and routes 127.0.0.1 through the proxy, so it times out even though curl (which bypasses the proxy for localhost) works.

Every in-band proxy error is already fast and legible (wrong key → 401, wrong model → 404, dead backend → 502). A genuine timeout therefore means a connection-level failure to :6188 itself — exactly the two cases above.

How

probeProxyReachable runs two probes against <proxyAddr>/models:

  • direct (no proxy) — is aima serve listening at all?
  • env-proxy (http.ProxyFromEnvironment) — mirrors clients that honor HTTP_PROXY, so we can tell "serve down" from "proxy intercepting loopback".

The result is exposed both as a loud slog.Warn and as proxyReachable / proxyWarning on the sync result (so software embedding AIMA can render it in their own UI). The probe never blocks the config write — it only adds a diagnostic.

Test

  • TestProbeProxyReachable (server up / down / empty-addr) + go vet clean.
  • Verified on a live Windows AMD rig: serve upproxyReachable: true, no warning; serve downslog.Warn + proxyReachable: false + a warning pointing at aima serve (and noting aima mcp does not open the port).

🤖 Generated with Claude Code

…achable

`aima openclaw sync` writes an OpenClaw provider that points the chat data
plane at the `aima serve` proxy (default :6188). Two real-world integration
failures both surface inside OpenClaw as an opaque "connection error/timeout"
that looks nothing like a config problem:

  1. Only the MCP control plane (`aima mcp`) is wired, so nothing is serving
     :6188 — the provider has no listener to reach.
  2. An HTTP_PROXY/HTTPS_PROXY env intercepts loopback; OpenClaw runs on Node
     and routes 127.0.0.1 through the proxy, so it times out even though curl
     (which bypasses the proxy for localhost) works.

Probe the proxy address during sync with two requests — one direct, one
honoring the env proxy — so the warning names the actual failure mode and the
fix. Surface it both as a loud slog.Warn and as proxyReachable/proxyWarning on
the sync result (so software embedding AIMA can show it in their own UI). The
probe never blocks the config write; it only adds a diagnostic.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
rjckkkkk added a commit that referenced this pull request Jun 12, 2026
)

New version-stamped build aima-windows-amd64-v0.5-dev-amd-strix-halo-20260612.exe
(source commit fa35aa4) on top of the HIP-engine build. Adds, vs the 20260610 exe:

  #87 native deploy readiness uses the real runtime name (no false "not ready")
  #88 deploy launcher hidden (no cmd.exe console popup) via VBS launcher
  #89 Qwen2.5-VL-3B-Instruct catalog knowledge (vlm + aliases + verified perf)
  #90 zero-config vision: llama.cpp --mmproj auto-wired for VL gguf models
  #91 openclaw sync preflight-probes :6188 and warns loudly when unreachable

serve.bat now points at the 20260612 exe; older builds kept for rollback.
README build table + fixes list + OpenClaw data-plane guidance updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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