Skip to content

fix(gpu): engine-run route double-prefix + forge control-plane default#631

Merged
jqueguiner merged 1 commit into
mainfrom
fix/engine-executor-route-apiurl
Jul 23, 2026
Merged

fix(gpu): engine-run route double-prefix + forge control-plane default#631
jqueguiner merged 1 commit into
mainfrom
fix/engine-executor-route-apiurl

Conversation

@jqueguiner

Copy link
Copy Markdown
Owner

Two fixes to #630, caught in the live smoke:

  1. @router.post("/gpu/engine/run") on a prefix="/gpu" router → registered at /gpu/gpu/engine/run (404). Now /engine/run/api/v1/gpu/engine/run (matches the SDK).
  2. Executor didn't default FORGE_API_URL; a bare token → forge client hit localhost:8080 (refused). Now defaults to https://forge.shadow-paas.com.

Verified live end-to-end: server-side forge run via /gpu/engine/runpi~3.14160, 154x, exit 0. Token never left the API/executor. Already hot-patched in prod (bind-mount); this syncs the repo. No SDK change.

Note: #629's OVH endpoints have the same double-prefix (/gpu/ai-training/*) — I'll fix on that branch before it deploys.

🤖 Generated with Claude Code

Two fixes to the server-side engine launch (#630), found in the live smoke:
- the route was `@router.post("/gpu/engine/run")` on a router already prefixed
  `/gpu` → it registered at /gpu/gpu/engine/run (404). Correct to `/engine/run`
  (full path /api/v1/gpu/engine/run, matching the SDK).
- the executor only set FORGE_API_URL when the credential carried one; a bare
  fg_ token has none, so the forge client fell back to localhost:8080
  ("connection refused"). Default to https://forge.shadow-paas.com.

Verified live: `gpu engine/run` forge → pi~3.14160, 154x, exit 0. Token never
left the server.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jqueguiner
jqueguiner merged commit 142128f into main Jul 23, 2026
10 checks passed
@jqueguiner
jqueguiner deleted the fix/engine-executor-route-apiurl branch July 23, 2026 18:38
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