From 2e56d63ef7e0f2c48d0a979c775a3dae16b62054 Mon Sep 17 00:00:00 2001 From: rjckkkkk <59609580+rjckkkkk@users.noreply.github.com> Date: Thu, 11 Jun 2026 06:56:31 +0000 Subject: [PATCH] Return the runtime deployment name from deploy.apply so readiness is detected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy.apply registered the native deployment under req.Name (== modelName) but returned the sanitized pod name (model+engine) as "name". The run/onboarding readiness poller and the UI then queried deploy.status by that sanitized name, which the native runtime never registered → status was never found → the deploy appeared stuck and timed out "not ready within 1m" even though the engine was already serving. Return req.Name (the name the runtime actually keyed the deployment under), matching the reuse path and deploy.list/undeploy. Co-Authored-By: Claude Opus 4.8 (1M context) --- cmd/aima/tooldeps_deploy.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/aima/tooldeps_deploy.go b/cmd/aima/tooldeps_deploy.go index 8f0a955..32f4874 100644 --- a/cmd/aima/tooldeps_deploy.go +++ b/cmd/aima/tooldeps_deploy.go @@ -309,7 +309,13 @@ func buildDeployDeps(ac *appContext, deps *mcp.ToolDeps, return nil, err } result := map[string]any{ - "name": deployName, + // Return the name the runtime actually registered the deployment under + // (req.Name == modelName), NOT the sanitized pod name. The readiness + // poller (deployRunCore.waitForDeployment) and the UI look up status by + // this name; the native runtime keys deployments by req.Name, so the + // sanitized deployName never matched → status was never found → the deploy + // looked stuck "not ready" even though the engine was serving fine. + "name": req.Name, "model": modelName, "engine": resolved.Engine, "slot": resolved.Slot, "status": "deploying", "runtime": activeRt.Name(),