This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new f846cf8f7 feat(ai): gateway-sourced home model list, chat-only, 
newest-first (#7422)
f846cf8f7 is described below

commit f846cf8f7cb6592ecfc504ad6a6a49820059000f
Author: lizhimins <[email protected]>
AuthorDate: Mon Nov 30 13:55:23 2026 +0800

    feat(ai): gateway-sourced home model list, chat-only, newest-first (#7422)
    
    * feat(ai): gateway-sourced home model list, chat-only, newest-first
    
    - Home composer fetches /llm/models like the AI page; the curated list
      remains only as mock-mode and failed/empty-fetch fallback, and selection
      falls back to the configured or first model when qwen4-max is absent.
    - Provider listings drop image/video/audio modalities by id keywords (the
      OpenAI-compatible payload has no capability field) and sort by created
      descending, stable on ties.
    - Default model qwen4-max end to end; anthropic-compatible gateways list
      remote models with builtin fallback.
    - AI settings: extended catalog, custom model ids, full-width engine banner.
    - UI polish: Phosphor logo/breadcrumb icons (welcome emoji kept), adaptive
      K/M message units, right-aligned numeric columns, K8s ID casing.
    - Actionable no-broker write errors; interceptor-notified toasts deduped.
    
    * fix(ci): regenerate rmqctl tool catalog after the batch merge
    
    The 2026-11-27 batch merge touched server-side tool YAML without
    regenerating internal/catalog/catalog_gen.go, leaving the rmqctl
    catalog-verify CI step red on master. Regenerate with make
    catalog-generate; fmt/test-race/vet/build all pass.
---
 rmqctl/internal/catalog/catalog_gen.go             |   4 +-
 .../studio/cluster/broker/MqAdminExtFactory.java   |   6 +-
 .../rocketmq/studio/ops/ai/LlmConfigService.java   |   6 +
 .../studio/ops/ai/OpenAiCompatibleLlmClient.java   |  77 +++++++++++--
 .../persistence/MybatisPlusSettingsRepository.java |   2 +-
 .../provider/apache/ApacheWriteTargetResolver.java |   2 +-
 .../ops/ai/OpenAiCompatibleLlmClientTest.java      |  21 ++++
 web/src/api/client.ts                              |   4 +-
 web/src/i18n/translations.ts                       |  11 +-
 web/src/layouts/MainLayout.tsx                     |   2 +-
 web/src/pages/ai/__tests__/AiPage.test.tsx         |  16 ++-
 web/src/pages/ai/components/Composer.tsx           |  17 ++-
 .../pages/cluster/__tests__/K8sCertsPage.test.tsx  |   2 +-
 web/src/pages/cluster/clients.tsx                  |   6 +
 web/src/pages/cluster/index.tsx                    |   2 +-
 web/src/pages/home/__tests__/HomePage.test.tsx     | 126 ++++++++++++++++++---
 web/src/pages/home/dashboard.tsx                   |  15 ++-
 web/src/pages/home/index.tsx                       |  27 +++--
 .../pages/instance/__tests__/ConsumerPage.test.tsx |   2 +-
 web/src/pages/instance/consumer.tsx                |   9 +-
 web/src/pages/instance/topic.tsx                   |   9 +-
 web/src/pages/settings/AiAssistantTab.tsx          |   8 +-
 web/src/pages/studio/__tests__/LlmSettings.test.ts |   2 +
 web/src/pages/studio/llmModelOptions.ts            |   2 +
 24 files changed, 313 insertions(+), 65 deletions(-)

diff --git a/rmqctl/internal/catalog/catalog_gen.go 
b/rmqctl/internal/catalog/catalog_gen.go
index 39960494c..77c3df748 100644
--- a/rmqctl/internal/catalog/catalog_gen.go
+++ b/rmqctl/internal/catalog/catalog_gen.go
@@ -21,7 +21,7 @@ package catalog
 var defaultDocument = Document{
        Version:              "2.0.0",
        MinimumClientVersion: "2.0.0",
-       Digest:               
"3b4db152a6ca5e7dd92de7d4394d434b4b8448d14844198eb2fc2bc235e3d0c5",
+       Digest:               
"a271358fe9ec12811181573e005a7bcdc72961ce95b581a7674e0d1046ed272f",
        Tools: []Tool{
                {
                        Name:                 "rmq.acl.list",
@@ -250,6 +250,7 @@ var defaultDocument = Document{
                        InputSchema: InputSchema{
                                Fields: []Field{
                                        {Name: "instanceId", Flag: 
"instance-id", Description: "Studio Instance identifier.", Kind: StringField, 
Required: true, MinLength: 1},
+                                       {Name: "clusterId", Flag: "cluster-id", 
Description: "Optional physical RocketMQ cluster identifier within the Studio 
Instance.", Kind: StringField, MinLength: 1},
                                        {Name: "groupName", Flag: "group-name", 
Description: "Fuzzy consumer group name filter.", Kind: StringField, MinLength: 
1},
                                },
                        },
@@ -679,6 +680,7 @@ var defaultDocument = Document{
                        InputSchema: InputSchema{
                                Fields: []Field{
                                        {Name: "instanceId", Flag: 
"instance-id", Description: "Studio Instance identifier.", Kind: StringField, 
Required: true, MinLength: 1},
+                                       {Name: "clusterId", Flag: "cluster-id", 
Description: "Optional physical RocketMQ cluster identifier within the Studio 
Instance.", Kind: StringField, MinLength: 1},
                                        {Name: "topicName", Flag: "topic-name", 
Description: "Fuzzy topic name filter.", Kind: StringField, MinLength: 1},
                                        {Name: "type", Flag: "type", Kind: 
StringField, Enum: []string{"NORMAL", "FIFO", "DELAY", "TRANSACTION", "LITE"}},
                                },
diff --git 
a/server/src/main/java/org/apache/rocketmq/studio/cluster/broker/MqAdminExtFactory.java
 
b/server/src/main/java/org/apache/rocketmq/studio/cluster/broker/MqAdminExtFactory.java
index 72b81eafa..8d154a8a2 100644
--- 
a/server/src/main/java/org/apache/rocketmq/studio/cluster/broker/MqAdminExtFactory.java
+++ 
b/server/src/main/java/org/apache/rocketmq/studio/cluster/broker/MqAdminExtFactory.java
@@ -135,7 +135,11 @@ public class MqAdminExtFactory {
                 Thread.currentThread().interrupt();
             }
             log.warn("Admin action failed against namesrv {}: {}", 
namesrvAddr, ex.getMessage());
-            throw new BusinessException(502, "RocketMQ admin call failed: " + 
rootMessage(ex));
+            String root = rootMessage(ex);
+            String hint = root.contains("connect to")
+                    ? "Cannot reach the NameServer or broker endpoint; check 
the instance endpoint and network connectivity. "
+                    : "";
+            throw new BusinessException(502, hint + "RocketMQ admin call 
failed: " + root);
         } finally {
             lease.release();
         }
diff --git 
a/server/src/main/java/org/apache/rocketmq/studio/ops/ai/LlmConfigService.java 
b/server/src/main/java/org/apache/rocketmq/studio/ops/ai/LlmConfigService.java
index cf4ee1867..cc0a07170 100644
--- 
a/server/src/main/java/org/apache/rocketmq/studio/ops/ai/LlmConfigService.java
+++ 
b/server/src/main/java/org/apache/rocketmq/studio/ops/ai/LlmConfigService.java
@@ -67,6 +67,8 @@ public class LlmConfigService {
                     new LlmModelItemVO("gpt-5.6-terra", "GPT-5.6 Terra"),
                     new LlmModelItemVO("gpt-5.6-luna", "GPT-5.6 Luna")),
             ANTHROPIC, List.of(
+                    new LlmModelItemVO("qwen4-max", "qwen4-max"),
+                    new LlmModelItemVO("qwen3.8-max", "qwen3.8-max"),
                     new LlmModelItemVO("claude-fable-5", "Claude Fable 5"),
                     new LlmModelItemVO("claude-opus-5", "Claude Opus 5"),
                     new LlmModelItemVO("claude-opus-4-8", "Claude Opus 4.8"),
@@ -75,9 +77,13 @@ public class LlmConfigService {
                     new LlmModelItemVO("claude-sonnet-4-6", "Claude Sonnet 
4.6"),
                     new LlmModelItemVO("claude-haiku-4-5", "Claude Haiku 
4.5")),
             "deepseek", List.of(
+                    new LlmModelItemVO("deepseek-v4-pro", "deepseek-v4-pro"),
+                    new LlmModelItemVO("deepseek-v4-flash", 
"deepseek-v4-flash"),
                     new LlmModelItemVO("deepseek-chat", "DeepSeek Chat"),
                     new LlmModelItemVO("deepseek-reasoner", "DeepSeek 
Reasoner")),
             "tongyi", List.of(
+                    new LlmModelItemVO("qwen4-max", "qwen4-max"),
+                    new LlmModelItemVO("qwen4-plus", "qwen4-plus"),
                     new LlmModelItemVO("qwen3.8-max", "qwen3.8-max"),
                     new LlmModelItemVO("qwen3.7-max", "qwen3.7-max"),
                     new LlmModelItemVO("qwen3.7-plus", "qwen3.7-plus"),
diff --git 
a/server/src/main/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClient.java
 
b/server/src/main/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClient.java
index f6f2af326..4683c67cc 100644
--- 
a/server/src/main/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClient.java
+++ 
b/server/src/main/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClient.java
@@ -40,6 +40,7 @@ import java.nio.ByteBuffer;
 import java.nio.charset.StandardCharsets;
 import java.time.Duration;
 import java.util.ArrayList;
+import java.util.Comparator;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Locale;
@@ -53,6 +54,7 @@ import java.util.concurrent.FutureTask;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
 
 @Component
 public class OpenAiCompatibleLlmClient {
@@ -65,7 +67,7 @@ public class OpenAiCompatibleLlmClient {
     private static final String MODELS_PATH = "/models";
     private static final int MAX_RESPONSE_BODY_BYTES = 5 * 1024 * 1024;
     private static final Duration DEFAULT_REQUEST_TIMEOUT = 
Duration.ofMinutes(2);
-    private static final Set<String> SUPPORTED_PROVIDERS = Set.of("openai", 
"deepseek", "tongyi", "ollama");
+    private static final Set<String> SUPPORTED_PROVIDERS = Set.of("openai", 
"deepseek", "tongyi", "ollama", "anthropic");
 
     private final ObjectMapper objectMapper;
     private final HttpClient httpClient;
@@ -118,7 +120,52 @@ public class OpenAiCompatibleLlmClient {
 
     public List<LlmModelItemVO> listModels(LlmConfigVO config) {
         validateModelListing(config);
-        HttpRequest request = getRequest(config, modelsUri(config));
+        LlmGatewayException last = null;
+        for (HttpRequest request : modelListingRequests(config)) {
+            try {
+                return fetchModels(request);
+            } catch (LlmGatewayException exception) {
+                last = exception;
+            }
+        }
+        throw last;
+    }
+
+    /**
+     * Anthropic-compatible gateways expose the model list at different paths: 
the native
+     * {@code /v1/models} under the configured base, or an OpenAI-compatible 
route at the
+     * origin ({@code /compatible-mode/v1/models} or {@code /v1/models}). 
Probe them in order
+     * and accept the first that answers; other providers use their single 
conventional path.
+     */
+    private List<HttpRequest> modelListingRequests(LlmConfigVO config) {
+        if (!"anthropic".equals(normalize(config.getProvider()))) {
+            return List.of(getRequest(config, modelsUri(config)));
+        }
+        URI base = URI.create(config.getApiBase().trim());
+        String origin = base.getScheme() + "://" + base.getRawAuthority();
+        List<URI> candidates = List.of(
+                LlmApiBase.endpoint(config.getApiBase(), "/v1/models"),
+                URI.create(origin + "/compatible-mode/v1/models"),
+                URI.create(origin + "/v1/models"));
+        List<HttpRequest> requests = new ArrayList<>();
+        for (URI uri : candidates) {
+            HttpRequest.Builder builder = HttpRequest.newBuilder()
+                    .uri(uri)
+                    .timeout(requestTimeout)
+                    .header("Accept", "application/json")
+                    .header("anthropic-version", "2023-06-01")
+                    .GET();
+            if (StringUtils.hasText(config.getApiKey())) {
+                String key = config.getApiKey().trim();
+                builder.header("Authorization", "Bearer " + key);
+                builder.header("x-api-key", key);
+            }
+            requests.add(builder.build());
+        }
+        return requests;
+    }
+
+    private List<LlmModelItemVO> fetchModels(HttpRequest request) {
         try {
             HttpResponse<LimitedBody> response = httpClient.send(request, 
limitedBodyHandler());
             String responseBody = checkedBody(response.body());
@@ -397,7 +444,7 @@ public class OpenAiCompatibleLlmClient {
         if (!supports(config)) {
             throw new LlmGatewayException(400, 
"llm.config.unsupported_provider",
                     "LLM provider is not supported by the OpenAI-compatible 
gateway",
-                    "Use one of: openai, deepseek, tongyi, ollama.");
+                    "Use one of: openai, deepseek, tongyi, ollama, 
anthropic.");
         }
         if (!StringUtils.hasText(config.getApiBase())) {
             throw new LlmGatewayException(400, "llm.config.missing_api_base",
@@ -439,11 +486,13 @@ public class OpenAiCompatibleLlmClient {
                         "LLM provider returned a malformed model response",
                         "Check whether the provider endpoint is compatible 
with OpenAI model listing.");
             }
-            List<LlmModelItemVO> models = new ArrayList<>();
+            record ListedModel(String id, String name, long created) { }
+            List<ListedModel> models = new ArrayList<>();
             data.forEach(item -> {
                 String id = item.isTextual() ? item.asText() : 
item.path("id").asText();
-                if (StringUtils.hasText(id)) {
-                    models.add(new LlmModelItemVO(id, 
item.path("name").asText(id)));
+                if (StringUtils.hasText(id) && isChatModel(id)) {
+                    models.add(new ListedModel(id, 
item.path("name").asText(id),
+                            item.path("created").asLong(0)));
                 }
             });
             if (models.isEmpty()) {
@@ -451,7 +500,12 @@ public class OpenAiCompatibleLlmClient {
                         "LLM provider returned no models",
                         "Check whether the configured account can access any 
models.");
             }
-            return models;
+            // Newest first; List.sort is stable, so models sharing a created 
timestamp keep
+            // the gateway's order.
+            
models.sort(Comparator.comparingLong(ListedModel::created).reversed());
+            return models.stream()
+                    .map(model -> new LlmModelItemVO(model.id(), model.name()))
+                    .collect(Collectors.toList());
         } catch (JsonProcessingException exception) {
             throw new LlmGatewayException(502, 
"llm.provider.malformed_response",
                     "LLM provider returned a non-JSON model response",
@@ -459,6 +513,15 @@ public class OpenAiCompatibleLlmClient {
         }
     }
 
+    // OpenAI-compatible listings carry no capability field, so non-chat 
modalities are
+    // recognized by id keywords only.
+    private static boolean isChatModel(String id) {
+        String lower = id.toLowerCase(Locale.ROOT);
+        return !(lower.contains("image") || lower.contains("video") || 
lower.contains("audio")
+                || lower.contains("tts") || lower.contains("asr") || 
lower.contains("whisper")
+                || lower.contains("dall-e"));
+    }
+
     private String parseCompletion(String body) {
         if (!StringUtils.hasText(body)) {
             throw new LlmGatewayException(502, "llm.provider.empty_response",
diff --git 
a/server/src/main/java/org/apache/rocketmq/studio/persistence/MybatisPlusSettingsRepository.java
 
b/server/src/main/java/org/apache/rocketmq/studio/persistence/MybatisPlusSettingsRepository.java
index 3265cd289..34e4e2e08 100644
--- 
a/server/src/main/java/org/apache/rocketmq/studio/persistence/MybatisPlusSettingsRepository.java
+++ 
b/server/src/main/java/org/apache/rocketmq/studio/persistence/MybatisPlusSettingsRepository.java
@@ -76,7 +76,7 @@ public class MybatisPlusSettingsRepository implements 
SettingsRepository {
                     .requireLogin(false)
                     .llmProvider("tongyi")
                     .apiKey("")
-                    .model("qwen3.8-max")
+                    .model("qwen4-max")
                     .baseUrl("")
                     .build();
         }
diff --git 
a/server/src/main/java/org/apache/rocketmq/studio/provider/apache/ApacheWriteTargetResolver.java
 
b/server/src/main/java/org/apache/rocketmq/studio/provider/apache/ApacheWriteTargetResolver.java
index d20f14a5f..33f4c9b6d 100644
--- 
a/server/src/main/java/org/apache/rocketmq/studio/provider/apache/ApacheWriteTargetResolver.java
+++ 
b/server/src/main/java/org/apache/rocketmq/studio/provider/apache/ApacheWriteTargetResolver.java
@@ -37,7 +37,7 @@ public final class ApacheWriteTargetResolver {
         ClusterInfo info = admin.examineBrokerClusterInfo();
         if (info == null || info.getClusterAddrTable() == null || 
info.getBrokerAddrTable() == null
                 || info.getClusterAddrTable().isEmpty()) {
-            throw new BusinessException(409, "Incomplete cluster topology; 
write rejected");
+            throw new BusinessException(409, "No broker cluster is registered 
under the NameServer of this instance; deploy brokers or check the cluster 
registration before creating or modifying resources");
         }
         String cluster = ownedCluster;
         if (instance.getId() == null) {
diff --git 
a/server/src/test/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClientTest.java
 
b/server/src/test/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClientTest.java
index 317c659f1..454dfca70 100644
--- 
a/server/src/test/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClientTest.java
+++ 
b/server/src/test/java/org/apache/rocketmq/studio/ops/ai/OpenAiCompatibleLlmClientTest.java
@@ -406,6 +406,27 @@ class OpenAiCompatibleLlmClientTest {
         assertThat(models).extracting("name").containsExactly("gpt-4o", 
"GPT-4o Mini");
     }
 
+    @Test
+    void listModelsShouldDropNonChatModalitiesAndSortNewestFirst() {
+        server.createContext("/v1/models", exchange -> respond(exchange, 200, 
"""
+                {"object":"list","data":[
+                  {"id":"qwen3.6-plus","created":1779173747},
+                  {"id":"qwen-image-2.0","created":1779173747},
+                  {"id":"wan3.0-video","created":1791856789},
+                  {"id":"qwen-audio-3.0-tts-plus","created":1785248243},
+                  {"id":"qwen-audio-3.0-asr-flash","created":1792656638},
+                  {"id":"qwen4-max","created":1794794362},
+                  {"id":"glm-5.2","created":1781664051},
+                  {"id":"kimi-k2.5","created":1779173747}
+                ]}
+                """, "application/json"));
+
+        List<LlmModelItemVO> models = client.listModels(config("openai", 
"sk-test"));
+
+        assertThat(models).extracting("id")
+                .containsExactly("qwen4-max", "glm-5.2", "qwen3.6-plus", 
"kimi-k2.5");
+    }
+
     @Test
     void listModelsShouldRejectMalformedProviderResponse() {
         server.createContext("/v1/models", exchange -> respond(exchange, 200, 
"""
diff --git a/web/src/api/client.ts b/web/src/api/client.ts
index 80e67278c..5f3f3952a 100644
--- a/web/src/api/client.ts
+++ b/web/src/api/client.ts
@@ -129,7 +129,9 @@ client.interceptors.response.use(
     const errorMessage = getBusinessError(response.data);
     if (errorMessage) {
       message.error(errorMessage);
-      return Promise.reject(new Error(errorMessage));
+      const notified = new Error(errorMessage) as Error & { notified?: boolean 
};
+      notified.notified = true;
+      return Promise.reject(notified);
     }
     return response;
   },
diff --git a/web/src/i18n/translations.ts b/web/src/i18n/translations.ts
index 1b0783674..e2ae7714b 100644
--- a/web/src/i18n/translations.ts
+++ b/web/src/i18n/translations.ts
@@ -134,6 +134,8 @@ const translations: Record<string, Record<Lang, string>> = {
   'dashboard.group': { zh: 'Group', en: 'Group' },
   'dashboard.trend': { zh: '趋势', en: 'Trend' },
   'dashboard.millionMessages': { zh: '约 {n}M 条消息', en: '~{n}M messages' },
+  'dashboard.thousandMessages': { zh: '约 {n}K 条消息', en: '~{n}K messages' },
+  'dashboard.exactMessages': { zh: '{n} 条消息', en: '{n} messages' },
   'dashboard.tpsTrend': { zh: 'TPS 趋势', en: 'TPS Trend' },
   'dashboard.tpsInLabel': { zh: 'TPS In', en: 'TPS In' },
   'dashboard.tpsOutLabel': { zh: 'TPS Out', en: 'TPS Out' },
@@ -210,6 +212,7 @@ const translations: Record<string, Record<Lang, string>> = {
   'cluster.proxy': { zh: 'Proxy 管理', en: 'Proxy' },
   'cluster.k8sName': { zh: 'K8s 集群名称', en: 'K8s Cluster' },
   'cluster.brokerClusterName': { zh: 'Broker 集群名称', en: 'Broker Cluster Name' 
},
+  'cluster.proxyClusterName': { zh: 'Proxy 集群名称', en: 'Proxy Cluster Name' },
   'cluster.brokerName': { zh: 'Broker 名称', en: 'Broker Name' },
   'cluster.diskUsage': { zh: '磁盘使用', en: 'Disk Usage' },
   'cluster.proxyAddr': { zh: 'Proxy 地址', en: 'Proxy Address' },
@@ -231,7 +234,7 @@ const translations: Record<string, Record<Lang, string>> = {
     en: 'Studio connects to this address directly from the server, so it must 
be reachable from the Studio server. Supported forms include an SLB/VIP, a 
headless Service DNS name (for example namesrv.mq.svc.cluster.local:9876), and 
a comma-separated NameServer list (for example ns1:9876,ns2:9876).',
   },
   'cluster.k8sNamespace': { zh: 'K8s Namespace', en: 'K8s Namespace' },
-  'cluster.k8sId': { zh: 'k8s ID', en: 'k8s ID' },
+  'cluster.k8sId': { zh: 'K8s ID', en: 'K8s ID' },
   'clients.partialScan': {
     zh: '客户端连接列表不完整:部分查询失败。',
     en: 'Client connections are incomplete: some queries failed.',
@@ -2966,7 +2969,7 @@ const translations: Record<string, Record<Lang, string>> 
= {
   // ─── Certs ───
   'cert.pageTitle': { zh: 'K8s 证书配置', en: 'K8s Certificate Config' },
   'cert.clusterName': { zh: 'K8s 集群名称', en: 'K8s Cluster Name' },
-  'cert.k8sId': { zh: 'k8s ID', en: 'k8s ID' },
+  'cert.k8sId': { zh: 'K8s ID', en: 'K8s ID' },
   'cert.typeLabel': { zh: '类型', en: 'Type' },
   'cert.issuer': { zh: '签发者', en: 'Issuer' },
   'cert.expiryTime': { zh: '到期时间', en: 'Expiry Time' },
@@ -2988,7 +2991,7 @@ const translations: Record<string, Record<Lang, string>> 
= {
   'cert.delete': { zh: '删除', en: 'Delete' },
   'cert.cancel': { zh: '取消', en: 'Cancel' },
   'cert.all': { zh: '全部', en: 'All' },
-  'cert.searchPlaceholder': { zh: '搜索 k8s ID 或集群', en: 'Search k8s ID or 
cluster' },
+  'cert.searchPlaceholder': { zh: '搜索 K8s ID 或集群', en: 'Search K8s ID or 
cluster' },
   'cert.editCert': { zh: '编辑证书 — {name}', en: 'Edit Certificate — {name}' },
   'cert.certUpdated': { zh: '证书「{name}」已更新', en: 'Certificate "{name}" 
updated' },
   'cert.namespace': { zh: '命名空间', en: 'Namespace' },
@@ -3005,7 +3008,7 @@ const translations: Record<string, Record<Lang, string>> 
= {
     en: 'These operations do not connect to the Kubernetes cluster or modify 
certificate resources in it. Manage the real certificates on the cluster side.',
   },
   'cert.requestFailed': { zh: '请求失败,请稍后重试', en: 'Request failed, please retry 
later' },
-  'cert.k8sIdRequired': { zh: '请输入 k8s ID', en: 'Please enter the k8s ID' },
+  'cert.k8sIdRequired': { zh: '请输入 K8s ID', en: 'Please enter the K8s ID' },
   'cert.k8sIdPlaceholder': { zh: '例如:kubernetes-daily', en: 'e.g. 
kubernetes-daily' },
   'cert.clusterNameRequired': { zh: '请输入集群名称', en: 'Please enter the cluster 
name' },
   'cert.clusterNamePlaceholder': {
diff --git a/web/src/layouts/MainLayout.tsx b/web/src/layouts/MainLayout.tsx
index e7cada05a..085d901cf 100644
--- a/web/src/layouts/MainLayout.tsx
+++ b/web/src/layouts/MainLayout.tsx
@@ -303,7 +303,7 @@ const MainLayout = () => {
               font: 'inherit',
             }}
           >
-            🏠
+            <House size={14} weight="duotone" aria-hidden />
           </button>
         ),
         key: 'home',
diff --git a/web/src/pages/ai/__tests__/AiPage.test.tsx 
b/web/src/pages/ai/__tests__/AiPage.test.tsx
index 605ecf754..545209c23 100644
--- a/web/src/pages/ai/__tests__/AiPage.test.tsx
+++ b/web/src/pages/ai/__tests__/AiPage.test.tsx
@@ -581,11 +581,15 @@ describe('AiPage', () => {
       ready: true,
     });
     let resolveModels!: (models: Awaited<ReturnType<typeof getLlmModels>>) => 
void;
-    vi.mocked(getLlmModels).mockReturnValue(
-      new Promise((resolve) => {
-        resolveModels = resolve;
-      }),
-    );
+    // Home fetches its catalog too: answer the first call so the home list 
renders,
+    // then hold the AI page's call open until the handoff model must survive 
it.
+    vi.mocked(getLlmModels)
+      .mockResolvedValueOnce({ status: 0, source: 'provider', data: [{ id: 
'qwen4-max' }] })
+      .mockReturnValue(
+        new Promise((resolve) => {
+          resolveModels = resolve;
+        }),
+      );
     vi.mocked(openRunStream).mockResolvedValue(undefined);
     useEngineStore.setState({ engine: 'http' });
     const user = userEvent.setup();
@@ -604,7 +608,7 @@ describe('AiPage', () => {
       </App>,
     );
 
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
     const homeSelector = screen.getByRole('combobox', { name: '模型名称' });
     await user.click(homeSelector);
     // Home appends the configured model after its fixed list; use the real
diff --git a/web/src/pages/ai/components/Composer.tsx 
b/web/src/pages/ai/components/Composer.tsx
index 09c60ff39..eab96a957 100644
--- a/web/src/pages/ai/components/Composer.tsx
+++ b/web/src/pages/ai/components/Composer.tsx
@@ -19,6 +19,7 @@ import {
   useCallback,
   useEffect,
   useMemo,
+  useState,
   useRef,
   type CSSProperties,
   type KeyboardEvent as ReactKeyboardEvent,
@@ -262,6 +263,13 @@ const Composer = ({
   const innerRef = useRef<HTMLTextAreaElement>(null);
   const textarea = textareaRef ?? innerRef;
 
+  const [modelSearch, setModelSearch] = useState('');
+  const composerModelOptions = useMemo(() => {
+    const q = modelSearch.trim();
+    if (!q || modelOptions.some((o) => o.value === q)) return modelOptions;
+    return [...modelOptions, { value: q, label: q }];
+  }, [modelOptions, modelSearch]);
+
   const chatModeOptions = useMemo<Array<{ value: ChatMode; label: string }>>(
     () => [
       { value: 'chat', label: t('ai.mode.chat') },
@@ -396,7 +404,14 @@ const Composer = ({
                 aria-label={t('llm.model')}
                 value={model || undefined}
                 onChange={(value: string) => onModelChange(value)}
-                options={modelOptions}
+                options={composerModelOptions}
+                showSearch
+                filterOption={(input, option) =>
+                  String(option?.value ?? '')
+                    .toLowerCase()
+                    .includes(input.toLowerCase())
+                }
+                onSearch={setModelSearch}
                 loading={modelsLoading}
                 disabled={disabled || !canSelectModel}
                 variant="borderless"
diff --git a/web/src/pages/cluster/__tests__/K8sCertsPage.test.tsx 
b/web/src/pages/cluster/__tests__/K8sCertsPage.test.tsx
index 54954b202..6ae3ffd0d 100644
--- a/web/src/pages/cluster/__tests__/K8sCertsPage.test.tsx
+++ b/web/src/pages/cluster/__tests__/K8sCertsPage.test.tsx
@@ -207,7 +207,7 @@ describe('K8sCertsPage', () => {
     renderPage();
 
     await screen.findByText('rocketmq-prod-tls');
-    await user.type(screen.getByPlaceholderText('搜索 k8s ID 或集群'), 
`${query}{enter}`);
+    await user.type(screen.getByPlaceholderText('搜索 K8s ID 或集群'), 
`${query}{enter}`);
 
     expect(screen.getByText(expected)).toBeInTheDocument();
     expect(screen.queryByText(hidden)).not.toBeInTheDocument();
diff --git a/web/src/pages/cluster/clients.tsx 
b/web/src/pages/cluster/clients.tsx
index e72b3a1e1..241500c8d 100644
--- a/web/src/pages/cluster/clients.tsx
+++ b/web/src/pages/cluster/clients.tsx
@@ -430,6 +430,7 @@ const ClientsPage = () => {
       title: t('common.type'),
       dataIndex: 'type',
       key: 'type',
+      align: 'center' as const,
       width: 100,
       filters: [
         { text: 'Producer', value: 'Producer' },
@@ -458,6 +459,7 @@ const ClientsPage = () => {
       title: t('clients.protocol'),
       dataIndex: 'protocol',
       key: 'protocol',
+      align: 'center' as const,
       width: 110,
       filters: [
         { text: 'gRPC', value: 'gRPC' },
@@ -488,6 +490,7 @@ const ClientsPage = () => {
       title: t('clients.language'),
       dataIndex: 'language',
       key: 'language',
+      align: 'center' as const,
       width: 100,
       filters: [
         ...Object.entries(languageConfig).map(([value, config]) => ({
@@ -508,6 +511,7 @@ const ClientsPage = () => {
       title: t('common.version'),
       dataIndex: 'version',
       key: 'version',
+      align: 'center' as const,
       width: 90,
       render: displayMetadata,
     },
@@ -534,6 +538,7 @@ const ClientsPage = () => {
       title: t('common.status'),
       dataIndex: 'status',
       key: 'status',
+      align: 'center' as const,
       width: 90,
       render: (status: ClientResourceSummary['status']) => (
         <Tag 
color={healthStatusColor[status]}>{t(healthStatusTextKey[status])}</Tag>
@@ -569,6 +574,7 @@ const ClientsPage = () => {
       title: t('common.type'),
       dataIndex: 'type',
       key: 'resourceType',
+      align: 'center' as const,
       width: 100,
       render: (type: string) => (
         <Text style={{ fontSize: 14 }}>{(typeConfig[type] ?? { label: type 
}).label}</Text>
diff --git a/web/src/pages/cluster/index.tsx b/web/src/pages/cluster/index.tsx
index f26e5d93f..0e0698c76 100644
--- a/web/src/pages/cluster/index.tsx
+++ b/web/src/pages/cluster/index.tsx
@@ -1817,7 +1817,7 @@ const ClusterPage = () => {
 
     const proxyColumns: ColumnsType<ProxyRow> = [
       {
-        title: t('cluster.brokerClusterName'),
+        title: t('cluster.proxyClusterName'),
         dataIndex: 'nsClusterName',
         key: 'nsClusterName',
         minWidth: 160,
diff --git a/web/src/pages/home/__tests__/HomePage.test.tsx 
b/web/src/pages/home/__tests__/HomePage.test.tsx
index 9b8ca9e98..80eaef55b 100644
--- a/web/src/pages/home/__tests__/HomePage.test.tsx
+++ b/web/src/pages/home/__tests__/HomePage.test.tsx
@@ -25,6 +25,7 @@ import HomePage from '../index';
 const navigateMock = vi.hoisted(() => vi.fn());
 const llmApiMocks = vi.hoisted(() => ({
   getLlmConfig: vi.fn(),
+  getLlmModels: vi.fn(),
 }));
 
 vi.mock('react-router-dom', () => ({
@@ -49,17 +50,38 @@ beforeAll(() => {
   });
 });
 
+const FETCHED_MODELS = [
+  'qwen4-max',
+  'qwen3.8-max',
+  'qwen3.7-max',
+  'qwen3.7-plus',
+  'gpt-5',
+  'gpt-5.1',
+  'claude-fable-5',
+  'claude-opus-5',
+  'claude-sonnet-5',
+  'deepseek-v4-pro',
+  'deepseek-v4-flash',
+  'MiniMax-M2.5',
+  'glm-5.2',
+];
+
 beforeEach(() => {
   vi.clearAllMocks();
   llmApiMocks.getLlmConfig.mockResolvedValue({
     provider: 'tongyi',
     apiBase: 
'https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1',
-    model: 'qwen3.8-max',
+    model: 'qwen4-max',
     maxTokens: 4096,
     temperature: 0.7,
     enabled: true,
     ready: true,
   });
+  llmApiMocks.getLlmModels.mockResolvedValue({
+    status: 0,
+    source: 'provider',
+    data: FETCHED_MODELS.map((id) => ({ id })),
+  });
 });
 
 const renderHome = () =>
@@ -72,10 +94,85 @@ const renderHome = () =>
   );
 
 describe('HomePage LLM models', () => {
-  it('shows the fixed home model list with qwen3.8-max selected', async () => {
+  const openModelSelector = async (
+    container: HTMLElement,
+    user: ReturnType<typeof userEvent.setup>,
+  ) => {
+    const selector = container.querySelector('.model-selector 
.ant-select-selector');
+    expect(selector).not.toBeNull();
+    await user.click(selector as Element);
+  };
+
+  const optionTexts = () =>
+    Array.from(document.querySelectorAll('.ant-select-item-option')).map(
+      (el) => el.textContent ?? '',
+    );
+
+  it('shows the fetched model list with qwen4-max selected', async () => {
+    renderHome();
+
+    expect(await screen.findByText('qwen4-max')).toBeInTheDocument();
+    expect(llmApiMocks.getLlmModels).toHaveBeenCalled();
+  });
+
+  it('prefers the fetched catalog over the built-in home list', async () => {
+    llmApiMocks.getLlmModels.mockResolvedValue({
+      status: 0,
+      source: 'provider',
+      data: [{ id: 'qwen4-max' }, { id: 'gateway-only-model' }],
+    });
+    const user = userEvent.setup();
+    const { container } = renderHome();
+    await screen.findByText('qwen4-max');
+
+    await openModelSelector(container, user);
+
+    await waitFor(() =>
+      expect(optionTexts().some((text) => 
text.includes('gateway-only-model'))).toBe(true),
+    );
+    expect(optionTexts().some((text) => text.includes('glm-5.2'))).toBe(false);
+  });
+
+  it('falls back to the home list when the model fetch fails', async () => {
+    llmApiMocks.getLlmModels.mockRejectedValue(new Error('gateway down'));
+    const user = userEvent.setup();
+    const { container } = renderHome();
+    await screen.findByText('qwen4-max');
+
+    await openModelSelector(container, user);
+
+    await waitFor(() => expect(optionTexts().some((text) => 
text.includes('glm-5.2'))).toBe(true));
+  });
+
+  it('selects the configured model when the recommended one is absent from the 
catalog', async () => {
+    llmApiMocks.getLlmConfig.mockResolvedValue({
+      provider: 'deepseek',
+      apiBase: 'https://api.deepseek.com/v1',
+      model: 'deepseek-v4-flash',
+      maxTokens: 4096,
+      temperature: 0.7,
+      enabled: true,
+      ready: true,
+    });
+    llmApiMocks.getLlmModels.mockResolvedValue({
+      status: 0,
+      source: 'provider',
+      data: [{ id: 'deepseek-v4-pro' }, { id: 'deepseek-v4-flash' }],
+    });
+    const user = userEvent.setup();
     renderHome();
+    await screen.findByText('deepseek-v4-flash');
 
-    expect(await screen.findByText('qwen3.8-max')).toBeInTheDocument();
+    await user.type(
+      screen.getByPlaceholderText('向 RocketMQ Bot 提问,全程加密、安全、可信'),
+      '查看集群状态{enter}',
+    );
+
+    await waitFor(() => {
+      expect(navigateMock).toHaveBeenCalledWith('/ai', {
+        state: expect.objectContaining({ model: 'deepseek-v4-flash' }),
+      });
+    });
   });
 
   it('defaults to the recommended model even when another model is saved', 
async () => {
@@ -90,7 +187,7 @@ describe('HomePage LLM models', () => {
     });
     const user = userEvent.setup();
     renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
 
     await user.type(
       screen.getByPlaceholderText('向 RocketMQ Bot 提问,全程加密、安全、可信'),
@@ -99,12 +196,12 @@ describe('HomePage LLM models', () => {
 
     await waitFor(() => {
       expect(navigateMock).toHaveBeenCalledWith('/ai', {
-        state: expect.objectContaining({ model: 'qwen3.8-max' }),
+        state: expect.objectContaining({ model: 'qwen4-max' }),
       });
     });
   });
 
-  it('keeps the recommended badge on qwen3.8-max when another model is saved', 
async () => {
+  it('keeps the recommended badge on qwen4-max when another model is saved', 
async () => {
     llmApiMocks.getLlmConfig.mockResolvedValue({
       provider: 'tongyi',
       apiBase: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
@@ -116,7 +213,7 @@ describe('HomePage LLM models', () => {
     });
     const user = userEvent.setup();
     const { container } = renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
 
     const selector = container.querySelector('.model-selector 
.ant-select-selector');
     expect(selector).not.toBeNull();
@@ -128,7 +225,7 @@ describe('HomePage LLM models', () => {
         .find((text) => text.includes(model));
 
     await waitFor(() => expect(optionText('qwen3.7-max')).toBeDefined());
-    expect(optionText('qwen3.8-max')).toContain('推荐');
+    expect(optionText('qwen4-max')).toContain('推荐');
     expect(optionText('qwen3.7-max')).not.toContain('推荐');
   });
 
@@ -139,7 +236,8 @@ describe('HomePage LLM models', () => {
     renderHome();
 
     expect(llmApiMocks.getLlmConfig).not.toHaveBeenCalled();
-    expect(await screen.findByText('qwen3.8-max')).toBeInTheDocument();
+    expect(llmApiMocks.getLlmModels).not.toHaveBeenCalled();
+    expect(await screen.findByText('qwen4-max')).toBeInTheDocument();
 
     useDataModeStore.getState().toggle();
   });
@@ -147,7 +245,7 @@ describe('HomePage LLM models', () => {
   it('submits the selected model and engine to the AI page', async () => {
     const user = userEvent.setup();
     renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
 
     await user.type(
       screen.getByPlaceholderText('向 RocketMQ Bot 提问,全程加密、安全、可信'),
@@ -158,7 +256,7 @@ describe('HomePage LLM models', () => {
       expect(navigateMock).toHaveBeenCalledWith('/ai', {
         state: {
           prompt: '查看集群状态',
-          model: 'qwen3.8-max',
+          model: 'qwen4-max',
           engine: 'claude-code',
           mode: 'chat',
         },
@@ -168,7 +266,7 @@ describe('HomePage LLM models', () => {
 
   it('does not submit while an input method composition is being confirmed', 
async () => {
     renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
     const input = screen.getByPlaceholderText('向 RocketMQ Bot 提问,全程加密、安全、可信');
 
     fireEvent.change(input, { target: { value: '查看集群状态' } });
@@ -180,7 +278,7 @@ describe('HomePage LLM models', () => {
   it('opens the AI page with history intent from the accessible history 
action', async () => {
     const user = userEvent.setup();
     renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
 
     const historyButton = screen.getByRole('button', { name: 'AI 对话历史' });
     expect(historyButton).toHaveAttribute('type', 'button');
@@ -196,7 +294,7 @@ describe('HomePage LLM models', () => {
   it('supports keyboard activation for the history action', async () => {
     const user = userEvent.setup();
     renderHome();
-    await screen.findByText('qwen3.8-max');
+    await screen.findByText('qwen4-max');
 
     screen.getByRole('button', { name: 'AI 对话历史' }).focus();
     await user.keyboard('{Enter}');
diff --git a/web/src/pages/home/dashboard.tsx b/web/src/pages/home/dashboard.tsx
index 75d0fce0e..59f568045 100644
--- a/web/src/pages/home/dashboard.tsx
+++ b/web/src/pages/home/dashboard.tsx
@@ -239,9 +239,12 @@ const DashboardPage = () => {
       icon: <ThunderboltOutlined style={{ fontSize: 22, color: '#722ed1' }} />,
       color: '#722ed1',
       suffix: '',
-      detail: t('dashboard.millionMessages', {
-        n: (stats.totalMessagesToday / 1_000_000).toFixed(1),
-      }),
+      detail:
+        stats.totalMessagesToday >= 1_000_000
+          ? t('dashboard.millionMessages', { n: (stats.totalMessagesToday / 
1_000_000).toFixed(1) })
+          : stats.totalMessagesToday >= 1_000
+            ? t('dashboard.thousandMessages', { n: (stats.totalMessagesToday / 
1_000).toFixed(1) })
+            : t('dashboard.exactMessages', { n: 
stats.totalMessagesToday.toLocaleString() }),
     },
   ];
 
@@ -288,7 +291,7 @@ const DashboardPage = () => {
       dataIndex: 'brokers',
       key: 'brokers',
       width: 90,
-      align: 'center' as const,
+      align: 'right' as const,
       render: renderTopologyCount,
     },
     {
@@ -304,14 +307,14 @@ const DashboardPage = () => {
       dataIndex: 'topics',
       key: 'topics',
       width: 90,
-      align: 'center' as const,
+      align: 'right' as const,
     },
     {
       title: t('dashboard.group'),
       dataIndex: 'groups',
       key: 'groups',
       width: 90,
-      align: 'center' as const,
+      align: 'right' as const,
     },
   ];
 
diff --git a/web/src/pages/home/index.tsx b/web/src/pages/home/index.tsx
index e1ad9c93b..7522f5389 100644
--- a/web/src/pages/home/index.tsx
+++ b/web/src/pages/home/index.tsx
@@ -26,7 +26,7 @@ import {
   MegaphoneSimple,
   Database,
 } from '@phosphor-icons/react';
-import { getLlmConfig, type LlmConfig } from '../../api/llm';
+import { getLlmConfig, getLlmModels, type LlmConfig } from '../../api/llm';
 import { useEngineStore } from '../../stores/engineStore';
 import { useDataModeStore } from '../../stores/dataModeStore';
 import { useLang } from '../../i18n/LangContext';
@@ -59,8 +59,10 @@ interface ModelOption {
 const ROCKETMQ_DOCS_URL = 'https://rocketmq.apache.org/docs/';
 const ROCKETMQ_COMMUNITY_URL = 'https://rocketmq.apache.org/';
 
-// 首页只暴露这些模型(token-plan 网关实际可对话的模型集),qwen3.8-max 为推荐项。
+// Fallback catalog for Mock mode and for a failed/empty /llm/models fetch; 
the live list comes
+// from the provider gateway, same as the AI page. qwen4-max stays the 
recommended pick.
 const HOME_MODELS = [
+  'qwen4-max',
   'qwen3.8-max',
   'qwen3.7-max',
   'qwen3.7-plus',
@@ -74,7 +76,7 @@ const HOME_MODELS = [
   'MiniMax-M2.5',
   'glm-5.2',
 ];
-const RECOMMENDED_MODEL = 'qwen3.8-max';
+const RECOMMENDED_MODEL = 'qwen4-max';
 
 /* ═══════════════════════════════════════════════════════
    HomePage Component
@@ -130,11 +132,18 @@ const HomePage = () => {
       setLlmConfig(config);
       setLlmConfigLoadFailed(loadFailed);
 
+      const result = await getLlmModels().catch(() => null);
+      if (cancelled) return;
+      const fetched = (result?.status === 0 ? (result.data ?? []) : [])
+        .map((item) => item.id || item.name || '')
+        .filter(Boolean);
+      const catalog = fetched.length > 0 ? fetched : HOME_MODELS;
+
       const configuredModel = config?.model?.trim() ?? '';
       const values = Array.from(
         new Set([
-          ...HOME_MODELS,
-          ...(configuredModel && !HOME_MODELS.includes(configuredModel) ? 
[configuredModel] : []),
+          ...catalog,
+          ...(configuredModel && !catalog.includes(configuredModel) ? 
[configuredModel] : []),
         ]),
       );
 
@@ -144,9 +153,11 @@ const HomePage = () => {
           recommended: value === RECOMMENDED_MODEL,
         })),
       );
-      setSelectedModel((current) =>
-        current && values.includes(current) ? current : RECOMMENDED_MODEL,
-      );
+      setSelectedModel((current) => {
+        if (current && values.includes(current)) return current;
+        if (values.includes(RECOMMENDED_MODEL)) return RECOMMENDED_MODEL;
+        return configuredModel || values[0] || '';
+      });
     };
 
     void loadModels();
diff --git a/web/src/pages/instance/__tests__/ConsumerPage.test.tsx 
b/web/src/pages/instance/__tests__/ConsumerPage.test.tsx
index 55648ed3c..658002c43 100644
--- a/web/src/pages/instance/__tests__/ConsumerPage.test.tsx
+++ b/web/src/pages/instance/__tests__/ConsumerPage.test.tsx
@@ -2698,7 +2698,7 @@ describe('Consumer page', () => {
     await user.click(within(dialog).getByRole('switch', { name: '启用消费' }));
     await user.click(within(dialog).getByRole('button', { name: /保\s*存/ }));
     await user.click(await screen.findByRole('button', { name: '确认修改' }));
-    await screen.findByText('保存消费组配置失败,请稍后重试');
+    await screen.findByText('offline');
     await user.click(within(dialog).getByRole('button', { name: /保\s*存/ }));
     await waitFor(() => expect(confirm).toHaveBeenCalledTimes(2));
     
expect(consumerService.updateConsumerGroupSettings).toHaveBeenCalledTimes(1);
diff --git a/web/src/pages/instance/consumer.tsx 
b/web/src/pages/instance/consumer.tsx
index d5d6c832c..4458de055 100644
--- a/web/src/pages/instance/consumer.tsx
+++ b/web/src/pages/instance/consumer.tsx
@@ -689,9 +689,12 @@ const ConsumerPageContent = ({
           : current,
       );
       message.success('消费组配置已保存');
-    } catch {
-      if (requestId === settingsRequestIdRef.current) {
-        message.error('保存消费组配置失败,请稍后重试');
+    } catch (error) {
+      // 拦截器已弹过的业务错误不重复弹;mock 等未经拦截器的路径显示具体消息
+      const notified = (error as { notified?: boolean } | null)?.notified;
+      if (requestId === settingsRequestIdRef.current && !notified) {
+        const detail = error instanceof Error && error.message ? error.message 
: '';
+        message.error(detail || '保存消费组配置失败,请稍后重试');
       }
     } finally {
       if (requestId === settingsRequestIdRef.current) 
setSettingsSubmitting(false);
diff --git a/web/src/pages/instance/topic.tsx b/web/src/pages/instance/topic.tsx
index 940a1ef25..37349b09d 100644
--- a/web/src/pages/instance/topic.tsx
+++ b/web/src/pages/instance/topic.tsx
@@ -1141,8 +1141,13 @@ const TopicPageContent = ({
       setEditingTopic(null);
       form.resetFields();
     } catch (error) {
-      if (!(error && typeof error === 'object' && 'errorFields' in error)) {
-        message.error(editingTopic ? '更新 Topic 失败,请稍后重试' : '创建 Topic 
失败,请稍后重试');
+      // 拦截器已弹过的业务错误不重复弹;mock 等未经拦截器的路径显示具体消息
+      const notified = (error as { notified?: boolean } | null)?.notified;
+      if (!(error && typeof error === 'object' && 'errorFields' in error) && 
!notified) {
+        const detail = error instanceof Error && error.message ? error.message 
: '';
+        message.error(
+          detail || (editingTopic ? '更新 Topic 失败,请稍后重试' : '创建 Topic 失败,请稍后重试'),
+        );
       }
     } finally {
       createInFlightRef.current = false;
diff --git a/web/src/pages/settings/AiAssistantTab.tsx 
b/web/src/pages/settings/AiAssistantTab.tsx
index abb524862..063ea6811 100644
--- a/web/src/pages/settings/AiAssistantTab.tsx
+++ b/web/src/pages/settings/AiAssistantTab.tsx
@@ -34,6 +34,7 @@ import {
   Space,
   Tag,
 } from 'antd';
+import InfoBanner from '../../components/InfoBanner';
 import { useLang } from '../../i18n/LangContext';
 import {
   getLlmConfig,
@@ -384,11 +385,7 @@ export const AiAssistantTab = () => {
           >
             <Row gutter={16}>
               <Col span={12}>
-                <Form.Item
-                  label={t('settings.aiEngine')}
-                  name="engine"
-                  extra={t('settings.aiEngineHelp')}
-                >
+                <Form.Item label={t('settings.aiEngine')} name="engine">
                   <Select options={engineOptions(t)} />
                 </Form.Item>
               </Col>
@@ -402,6 +399,7 @@ export const AiAssistantTab = () => {
                 </Form.Item>
               </Col>
             </Row>
+            <InfoBanner description={t('settings.aiEngineHelp')} />
             <Form.Item
               label={t('settings.model')}
               name="model"
diff --git a/web/src/pages/studio/__tests__/LlmSettings.test.ts 
b/web/src/pages/studio/__tests__/LlmSettings.test.ts
index 490d0b660..1dc31fa99 100644
--- a/web/src/pages/studio/__tests__/LlmSettings.test.ts
+++ b/web/src/pages/studio/__tests__/LlmSettings.test.ts
@@ -61,6 +61,8 @@ describe('LlmSettingsPage', () => {
     // picker). The fallback is what the settings dialog shows when that 
endpoint fails or the
     // provider is re-selected, so a shorter list hides models the gateway 
serves.
     expect(fallbackModelOptions('tongyi').map((option) => 
option.value)).toEqual([
+      'qwen4-max',
+      'qwen4-plus',
       'qwen3.8-max',
       'qwen3.7-max',
       'qwen3.7-plus',
diff --git a/web/src/pages/studio/llmModelOptions.ts 
b/web/src/pages/studio/llmModelOptions.ts
index b81c8d428..adc425d38 100644
--- a/web/src/pages/studio/llmModelOptions.ts
+++ b/web/src/pages/studio/llmModelOptions.ts
@@ -34,6 +34,8 @@ export const FALLBACK_MODELS: Record<string, string[]> = {
    * re-selected, so a shorter copy hid five of the twelve models the gateway 
serves.
    */
   tongyi: [
+    'qwen4-max',
+    'qwen4-plus',
     'qwen3.8-max',
     'qwen3.7-max',
     'qwen3.7-plus',

Reply via email to