Skip to content

Commit 772f109

Browse files
hiwepycursoragent
andcommitted
docs(wecom): use puzzle emoji for toolStatusText
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 800dac6 commit 772f109

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

extensions/wecom/README.en.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Keep copy short and lightweight (e.g. `🤔 正在思考…`). On WS, pushed via
471471
|------------|--------------|--------------|-------------|
472472
| `thinkingText` | thinking | 🤔 正在思考… | Agent started reasoning |
473473
| `receivedText` | received | 📩 已收到… | WS: after policy pass, before Agent starts |
474-
| `toolStatusText` | tool | 🔧 Running {toolName}… | Tool call in progress (`{toolName}` optional) |
474+
| `toolStatusText` | tool | 🧩 正在调用 {toolName}… | Tool call in progress (`{toolName}` optional) |
475475
| `readingText` | reading | 📎 正在阅读附件… | Reading inbound attachment |
476476
| `generatingText` | generating | ✍️ 正在输入… | Answer block streaming |
477477
| `compactionText` | compaction | 📦 正在压缩… | Context compaction |
@@ -532,7 +532,7 @@ JSON does not allow comments. Keys are ordered by role: **welcome & stream proto
532532
"streamPlaceholderText": "1",
533533
"thinkingText": "🤔 Thinking…",
534534
"receivedText": "📩 Got it…",
535-
"toolStatusText": "🔧 Running {toolName}…",
535+
"toolStatusText": "🧩 正在调用 {toolName}…",
536536
"readingText": "📎 Reading attachment…",
537537
"generatingText": "✍️ Writing reply…",
538538
"compactionText": "📦 Compacting…",
@@ -574,7 +574,7 @@ openclaw config set channels.wecom.streamPlaceholderText "1"
574574
# typing — status line during finish=false
575575
openclaw config set channels.wecom.thinkingText "🤔 正在思考…"
576576
openclaw config set channels.wecom.receivedText "📩 已收到…"
577-
openclaw config set channels.wecom.toolStatusText "🔧 正在调用 {toolName}…"
577+
openclaw config set channels.wecom.toolStatusText "🧩 正在调用 {toolName}…"
578578
openclaw config set channels.wecom.readingText "📎 正在阅读附件…"
579579
openclaw config set channels.wecom.generatingText "✍️ 正在输入…"
580580
openclaw config set channels.wecom.compactionText "📦 正在压缩…"
@@ -1022,7 +1022,7 @@ Dynamic Agents create isolated sessions by user or group. Use them when differen
10221022
openclaw config set channels.wecom.welcomeText "Hello, I am your WeCom assistant."
10231023
openclaw config set channels.wecom.agent.welcomeText "Welcome to the self-built app."
10241024
openclaw config set channels.wecom.thinkingText "Thinking…"
1025-
openclaw config set channels.wecom.toolStatusText "🔧 Running {toolName}…"
1025+
openclaw config set channels.wecom.toolStatusText "🧩 正在调用 {toolName}…"
10261026
openclaw config set channels.wecom.finishFooterText "⏱ {elapsed}s · Done"
10271027
openclaw gateway restart
10281028
```

extensions/wecom/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ openclaw gateway restart
475475
|--------|--------|----------|--------------|
476476
| `thinkingText` | thinking | 🤔 正在思考… | Agent 开始推理 |
477477
| `receivedText` | received | 📩 已收到… | WS:policy 通过后、Agent 开始前 |
478-
| `toolStatusText` | tool | 🔧 正在调用 {toolName}… | 工具调用中(可含 `{toolName}`|
478+
| `toolStatusText` | tool | 🧩 正在调用 {toolName}… | 工具调用中(可含 `{toolName}`|
479479
| `readingText` | reading | 📎 正在阅读附件… | 阅读入站附件 |
480480
| `generatingText` | generating | ✍️ 正在输入… | 生成答案 block |
481481
| `compactionText` | compaction | 📦 正在压缩… | 上下文压缩 |
@@ -536,7 +536,7 @@ JSON 不支持注释;下方按职责分组排列:**欢迎与流式协议**
536536
"streamPlaceholderText": "1",
537537
"thinkingText": "🤔 正在思考…",
538538
"receivedText": "📩 已收到…",
539-
"toolStatusText": "🔧 正在调用 {toolName}…",
539+
"toolStatusText": "🧩 正在调用 {toolName}…",
540540
"readingText": "📎 正在阅读附件…",
541541
"generatingText": "✍️ 正在输入…",
542542
"compactionText": "📦 正在压缩…",
@@ -578,7 +578,7 @@ openclaw config set channels.wecom.streamPlaceholderText "1"
578578
# typing(finish=false 期间的状态栏/占位)
579579
openclaw config set channels.wecom.thinkingText "🤔 正在思考…"
580580
openclaw config set channels.wecom.receivedText "📩 已收到…"
581-
openclaw config set channels.wecom.toolStatusText "🔧 正在调用 {toolName}…"
581+
openclaw config set channels.wecom.toolStatusText "🧩 正在调用 {toolName}…"
582582
openclaw config set channels.wecom.readingText "📎 正在阅读附件…"
583583
openclaw config set channels.wecom.generatingText "✍️ 正在输入…"
584584
openclaw config set channels.wecom.compactionText "📦 正在压缩…"
@@ -1027,7 +1027,7 @@ full 模式注册 Agent 工具 **`wecom_mcp`**(`mcp/tool.ts`):
10271027
openclaw config set channels.wecom.welcomeText "你好,我是企业微信助手,有什么可以帮您?"
10281028
openclaw config set channels.wecom.agent.welcomeText "欢迎使用自建应用,我会尽快回复您。"
10291029
openclaw config set channels.wecom.thinkingText "正在思考…"
1030-
openclaw config set channels.wecom.toolStatusText "🔧 正在调用 {toolName}…"
1030+
openclaw config set channels.wecom.toolStatusText "🧩 正在调用 {toolName}…"
10311031
openclaw config set channels.wecom.finishFooterText "⏱ {elapsed}s · 已完成"
10321032
openclaw gateway restart
10331033
```

extensions/wecom/src/config/templates.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ describe("formatWecomTemplate", () => {
5757
describe("resolveWecomToolStatusLine", () => {
5858
it("uses toolName when template includes placeholder", () => {
5959
const templates = resolveWecomTemplates({
60-
toolStatusText: "🔧 正在调用 {toolName}…",
60+
toolStatusText: "🧩 正在调用 {toolName}…",
6161
} as WeComConfig);
62-
expect(resolveWecomToolStatusLine(templates, "web_search")).toBe("🔧 正在调用 web_search…");
62+
expect(resolveWecomToolStatusLine(templates, "web_search")).toBe("🧩 正在调用 web_search…");
6363
});
6464

6565
it("falls back to static tool template without placeholder", () => {
@@ -70,7 +70,7 @@ describe("resolveWecomToolStatusLine", () => {
7070

7171
it("substitutes toolName in default tool template", () => {
7272
expect(resolveWecomToolStatusLine(WECOM_DEFAULT_TEMPLATES, "web_search")).toBe(
73-
"🔧 正在调用 web_search…",
73+
"🧩 正在调用 web_search…",
7474
);
7575
});
7676
});

extensions/wecom/src/config/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export type ResolvedWecomTemplates = {
6666
export const WECOM_DEFAULT_TEMPLATES: ResolvedWecomTemplates = {
6767
thinking: "🤔 正在思考…",
6868
received: "📩 已收到…",
69-
tool: "🔧 正在调用 {toolName}…",
69+
tool: "🧩 正在调用 {toolName}…",
7070
reading: "📎 正在阅读附件…",
7171
generating: "✍️ 正在输入…",
7272
compaction: "📦 正在压缩…",

extensions/wecom/src/onboarding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export const wecomSetupWizard: ChannelSetupWizard = {
374374
"用户可见文案(推荐平铺 *Text,openclaw config set):",
375375
' channels.wecom.welcomeText "你好,我是助手"',
376376
' channels.wecom.thinkingText "正在思考…"',
377-
' channels.wecom.toolStatusText "🔧 正在调用 {toolName}…"',
377+
' channels.wecom.toolStatusText "🧩 正在调用 {toolName}…"',
378378
' channels.wecom.streamPlaceholderText "1" # Bot 流式首帧占位(非欢迎语)',
379379
],
380380
shouldShow: ({ cfg, accountId }) => !isConfigured(cfg, accountId),

0 commit comments

Comments
 (0)