From 39e1314f3751b698c9ccecd023c8f8de429c8aa2 Mon Sep 17 00:00:00 2001 From: anguohui Date: Fri, 10 Jul 2026 18:51:11 +0800 Subject: [PATCH] refactor(apps): remove doubao app_type conversion in +create, let server decide via source_agent --- shortcuts/apps/apps_create.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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