Repository navigation
Description
Client or integration
Direct HTTP/API client
Area
Proxy and routing
Summary
Adding a Child from the Home dashboard (#remote → Home → Add Child) finishes with the row showing Connected. On the Child, ocx connect status --json reports state: connected and transport: link, and config.json now has runtimeRole: "client".
The Child's running proxy is still the process that was running before the link: same PID and uptime, and /healthz has no role field. Requests to http://127.0.0.1:<port>/v1/... on the Child are served by the Child's own providers, so Codex on the Child uses (or fails on) local logins while every link surface says it is using the Home.
After ocx restart (Desktop-supervised macOS Child) or ocx service restart (Linux systemd Child), /healthz reports "role":"client", and the same request is relayed and appears in the Home's request log under the Child's link key.
Reproduction
- Child: standalone OpenCodex 2.83.0 on its configured port. Reproduced with the macOS Desktop app and with the Linux deb CLI running as a systemd user service.
- Home: dashboard
#remote→ switch on → Home → Add Child → Test connection → confirm fingerprint → Connect Child. The row shows Connected. - On the Child:
curl -s http://127.0.0.1:10100/healthz curl -s http://127.0.0.1:10100/v1/responses -H 'content-type: application/json' \ -d '{"model":"anthropic/claude-haiku-5-5","input":"Reply with: pong","max_output_tokens":16}'/healthzhas norole, PID/uptime are unchanged, and the request returnsNot logged in to anthropicalthough the Home is logged in. - On the Child run
ocx restart(orocx service restart)./healthznow has"role":"client"; the same request completes and is logged on the Home.
Expected: after a successful apply the Child relays to the Home, or the apply does not report success until it does.
Source on dev 9b6f4b2632: apply in src/server/management/link-routes.ts (around L350–L425) only runs ocx connect --link over SSH. runLinkConnect → connectClient (src/cli/connect.ts, src/client/connect.ts) commits runtimeRole: client and the client block without restarting the runtime. The relay (handleLinkIngress in src/client/link-ingress.ts) only exists in the client runtime started by startClientRuntime. The Child-initiated join schedules a restart (acceptSystemRestart, around L516); the Home-initiated path has no equivalent.
Version
Home 2.81.0 (OpenCodex Desktop); Children 2.83.0. The apply/connect code paths above are unchanged on dev 9b6f4b2632.
Operating system
Home macOS 27 arm64; Children macOS 27 arm64 and Ubuntu 24.04 x86_64
Provider and model
anthropic / claude-haiku-5-5 (any provider the Child is not logged in to shows it)
Logs or error output
# Child after apply, before restart
{"status":"ok","service":"opencodex","version":"2.83.0","uptime":404.5,"pid":27422,"port":10100,...}
{"error":{"message":"Not logged in to anthropic. Run: ocx login anthropic","type":"authentication_error","code":"invalid_api_key"}}
# Child after ocx restart
{"service":"opencodex","version":"2.83.0","role":"client","uptime":3.98,"pid":30147,"port":10100}
completed anthropic/claude-haiku-5-5 ['pong']
Screenshots and supporting files
No response
Redacted configuration
Child config.json after apply: runtimeRole: "client", client.transport: "link", client.link.tunnelPort set.
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
lidge-jun commentedon Oct 11, 2026
Fixed on dev by #6955 (squash 34bf006). Exact-head bfdfcb2: PR CI 38156344376 and Cross-platform CI lane=all 38156346377 succeeded (macos 1/2 needed one rerun after a 20-minute runner limit, with no failing test). Independent security/correctness review passed; no unresolved review threads.