diff --git a/shortcuts/apps/apps_create.go b/shortcuts/apps/apps_create.go index 69c601b0a..9e2b40352 100644 --- a/shortcuts/apps/apps_create.go +++ b/shortcuts/apps/apps_create.go @@ -62,14 +62,10 @@ func buildAppsCreateBody(rctx *common.RuntimeContext) map[string]interface{} { // --app-type is constrained to the lowercase enum (html / full_stack) by the // flag's Enum, so send it through verbatim. Legacy uppercase compatibility is // a server concern and is intentionally not surfaced by the CLI. - appType := rctx.Str("app-type") agent := envvars.AgentName() - if appType == "html" && strings.HasPrefix(agent, "doubao") { - appType = "modern_html" - } body := map[string]interface{}{ "name": strings.TrimSpace(rctx.Str("name")), - "app_type": appType, + "app_type": rctx.Str("app-type"), } if desc := strings.TrimSpace(rctx.Str("description")); desc != "" { body["description"] = desc