惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Recent Announcements
Recent Announcements
Jina AI
Jina AI
G
Google Developers Blog
腾讯CDC
博客园_首页
博客园 - 【当耐特】

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: hide decorative emoji on unsupported terminals (#825...
steipete · 2026-05-16 · via Recent Commits to openclaw:main

@@ -1,5 +1,6 @@

11

import type { SkillStatusEntry, SkillStatusReport } from "../agents/skills-status.js";

22

import { sanitizeForLog, stripAnsi } from "../terminal/ansi.js";

3+

import { decorativeEmoji, decorativePrefix } from "../terminal/decorative-emoji.js";

34

import { getTerminalTableWidth, renderTable } from "../terminal/table.js";

45

import { theme } from "../terminal/theme.js";

56

import { shortenHomePath } from "../utils.js";

@@ -29,13 +30,13 @@ function appendClawHubHint(output: string, json?: boolean): string {

29303031

function formatSkillStatus(skill: SkillStatusEntry): string {

3132

if (skill.disabled) {

32-

return theme.warn("⏸ disabled");

33+

return theme.warn(decorativePrefix("⏸", "disabled"));

3334

}

3435

if (skill.blockedByAllowlist) {

35-

return theme.warn("🚫 blocked");

36+

return theme.warn(decorativePrefix("🚫", "blocked"));

3637

}

3738

if (skill.blockedByAgentFilter) {

38-

return theme.warn("🚫 excluded");

39+

return theme.warn(decorativePrefix("🚫", "excluded"));

3940

}

4041

if (skill.eligible) {

4142

return theme.success("✓ ready");

@@ -44,7 +45,10 @@ function formatSkillStatus(skill: SkillStatusEntry): string {

4445

}

45464647

function normalizeSkillEmoji(emoji?: string): string {

47-

return (emoji ?? "📦").replaceAll("\uFE0E", "\uFE0F");

48+

if (emoji) {

49+

return emoji.replaceAll("\uFE0E", "\uFE0F");

50+

}

51+

return decorativeEmoji("📦");

4852

}

49535054

const REMAINING_ESC_SEQUENCE_REGEX = new RegExp(

@@ -75,7 +79,8 @@ function sanitizeJsonValue(value: unknown): unknown {

7579

}

7680

function formatSkillName(skill: SkillStatusEntry): string {

7781

const emoji = normalizeSkillEmoji(skill.emoji);

78-

return `${emoji} ${theme.command(sanitizeForLog(skill.name))}`;

82+

const name = theme.command(sanitizeForLog(skill.name));

83+

return emoji ? `${emoji} ${name}` : name;

7984

}

80858186

function formatSkillMissingSummary(skill: SkillStatusEntry): string {

@@ -197,11 +202,11 @@ export function formatSkillInfo(

197202

const lines: string[] = [];

198203

const emoji = normalizeSkillEmoji(skill.emoji);

199204

const status = skill.disabled

200-

? theme.warn("⏸ Disabled")

205+

? theme.warn(decorativePrefix("⏸", "Disabled"))

201206

: skill.blockedByAllowlist

202-

? theme.warn("🚫 Blocked by allowlist")

207+

? theme.warn(decorativePrefix("🚫", "Blocked by allowlist"))

203208

: skill.blockedByAgentFilter

204-

? theme.warn("🚫 Excluded by agent allowlist")

209+

? theme.warn(decorativePrefix("🚫", "Excluded by agent allowlist"))

205210

: skill.eligible

206211

? theme.success("✓ Ready")

207212

: theme.warn("△ Needs setup");

@@ -210,7 +215,7 @@ export function formatSkillInfo(

210215

const safeHomepage = skill.homepage ? sanitizeForLog(skill.homepage) : undefined;

211216

const safeSkillKey = sanitizeForLog(skill.skillKey);

212217213-

lines.push(`${emoji} ${theme.heading(safeName)} ${status}`);

218+

lines.push(`${emoji ? `${emoji} ` : ""}${theme.heading(safeName)} ${status}`);

214219

lines.push("");

215220

lines.push(sanitizeForLog(skill.description));

216221

lines.push("");

@@ -376,11 +381,15 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp

376381

lines.push(

377382

`${theme.success("✓")} ${theme.muted("Available as command:")} ${commandVisible.length}`,

378383

);

379-

lines.push(`${theme.warn("⏸")} ${theme.muted("Disabled:")} ${disabled.length}`);

380-

lines.push(`${theme.warn("🚫")} ${theme.muted("Blocked by allowlist:")} ${blocked.length}`);

384+

lines.push(

385+

`${theme.warn(decorativePrefix("⏸", "Disabled:"))} ${theme.muted(String(disabled.length))}`,

386+

);

387+

lines.push(

388+

`${theme.warn(decorativePrefix("🚫", "Blocked by allowlist:"))} ${theme.muted(String(blocked.length))}`,

389+

);

381390

if (agentId || agentFiltered.length > 0) {

382391

lines.push(

383-

`${theme.warn("🚫")} ${theme.muted("Excluded by agent allowlist:")} ${agentFiltered.length}`,

392+

`${theme.warn(decorativePrefix("🚫", "Excluded by agent allowlist:"))} ${theme.muted(String(agentFiltered.length))}`,

384393

);

385394

}

386395

if (promptHidden.length > 0) {

@@ -418,7 +427,7 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp

418427

lines.push(theme.heading("Ready and visible to model:"));

419428

for (const skill of modelVisible) {

420429

const emoji = normalizeSkillEmoji(skill.emoji);

421-

lines.push(` ${emoji} ${sanitizeForLog(skill.name)}`);

430+

lines.push(` ${emoji ? `${emoji} ` : ""}${sanitizeForLog(skill.name)}`);

422431

}

423432

}

424433

@@ -430,7 +439,9 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp

430439

const reason = skill.commandVisible

431440

? "skill hides its instructions from the model; commands/cron may still use it"

432441

: "skill hides its instructions from the model and is not exposed as a command";

433-

lines.push(` ${emoji} ${sanitizeForLog(skill.name)} ${theme.muted(`(${reason})`)}`);

442+

lines.push(

443+

` ${emoji ? `${emoji} ` : ""}${sanitizeForLog(skill.name)} ${theme.muted(`(${reason})`)}`,

444+

);

434445

}

435446

}

436447

@@ -440,7 +451,7 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp

440451

for (const skill of agentFiltered) {

441452

const emoji = normalizeSkillEmoji(skill.emoji);

442453

lines.push(

443-

` ${emoji} ${sanitizeForLog(skill.name)} ${theme.muted("(loaded, but this agent is not allowed to see/use it)")}`,

454+

` ${emoji ? `${emoji} ` : ""}${sanitizeForLog(skill.name)} ${theme.muted("(loaded, but this agent is not allowed to see/use it)")}`,

444455

);

445456

}

446457

}

@@ -451,7 +462,9 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp

451462

for (const skill of missingReqs) {

452463

const emoji = normalizeSkillEmoji(skill.emoji);

453464

const missing = formatSkillMissingSummary(skill);

454-

lines.push(` ${emoji} ${sanitizeForLog(skill.name)} ${theme.muted(`(${missing})`)}`);

465+

lines.push(

466+

` ${emoji ? `${emoji} ` : ""}${sanitizeForLog(skill.name)} ${theme.muted(`(${missing})`)}`,

467+

);

455468

}

456469

}

457470