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

推荐订阅源

MyScale Blog
MyScale Blog
J
Java Code Geeks
Vercel News
Vercel News
A
About on SuperTechFans
G
Google Developers Blog
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
博客园 - 司徒正美
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园_首页
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
量子位
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
博客园 - 三生石上(FineUI控件)
H
Help Net Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗

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
refactor(ui): remove unused utility helpers · openclaw/op...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -533,22 +533,3 @@ export type IconName = keyof typeof icons;

533533

export function icon(name: IconName): TemplateResult {

534534

return icons[name];

535535

}

536-
537-

export function renderIcon(name: IconName, className = "nav-item__icon"): TemplateResult {

538-

return html`<span class=${className} aria-hidden="true">${icons[name]}</span>`;

539-

}

540-
541-

// Legacy function for compatibility

542-

export function renderEmojiIcon(

543-

iconContent: string | TemplateResult,

544-

className: string,

545-

): TemplateResult {

546-

return html`<span class=${className} aria-hidden="true">${iconContent}</span>`;

547-

}

548-
549-

export function setEmojiIcon(target: HTMLElement | null, iconLocal: string): void {

550-

if (!target) {

551-

return;

552-

}

553-

target.textContent = iconLocal;

554-

}

Original file line numberDiff line numberDiff line change

@@ -10,14 +10,6 @@ import {

1010

} from "./format.ts";

1111

import type { CronJob, GatewaySessionRow, PresenceEntry } from "./types.ts";

1212
13-

export function formatPresenceSummary(entry: PresenceEntry): string {

14-

const host = entry.host ?? "unknown";

15-

const ip = entry.ip ? `(${entry.ip})` : "";

16-

const mode = entry.mode ?? "";

17-

const version = entry.version ?? "";

18-

return `${host} ${ip} ${mode} ${version}`.trim();

19-

}

20-
2113

export function formatPresenceAge(entry: PresenceEntry): string {

2214

const ts = entry.ts ?? null;

2315

return ts ? formatRelativeTimestamp(ts) : t("common.na");

Original file line numberDiff line numberDiff line change

@@ -279,53 +279,6 @@ export function resolveAssistantTextAvatar(value: string | null | undefined): st

279279

return trimmed;

280280

}

281281
282-

function isLikelyEmoji(value: string) {

283-

const trimmed = value.trim();

284-

if (!trimmed) {

285-

return false;

286-

}

287-

if (trimmed.length > 16) {

288-

return false;

289-

}

290-

let hasNonAscii = false;

291-

for (let i = 0; i < trimmed.length; i += 1) {

292-

if (trimmed.charCodeAt(i) > 127) {

293-

hasNonAscii = true;

294-

break;

295-

}

296-

}

297-

if (!hasNonAscii) {

298-

return false;

299-

}

300-

if (trimmed.includes("://") || trimmed.includes("/") || trimmed.includes(".")) {

301-

return false;

302-

}

303-

return true;

304-

}

305-
306-

export function resolveAgentEmoji(

307-

agent: { identity?: { emoji?: string; avatar?: string } },

308-

agentIdentity?: AgentIdentityResult | null,

309-

) {

310-

const identityEmoji = normalizeOptionalString(agentIdentity?.emoji);

311-

if (identityEmoji && isLikelyEmoji(identityEmoji)) {

312-

return identityEmoji;

313-

}

314-

const agentEmoji = normalizeOptionalString(agent.identity?.emoji);

315-

if (agentEmoji && isLikelyEmoji(agentEmoji)) {

316-

return agentEmoji;

317-

}

318-

const identityAvatar = normalizeOptionalString(agentIdentity?.avatar);

319-

if (identityAvatar && isLikelyEmoji(identityAvatar)) {

320-

return identityAvatar;

321-

}

322-

const avatar = normalizeOptionalString(agent.identity?.avatar);

323-

if (avatar && isLikelyEmoji(avatar)) {

324-

return avatar;

325-

}

326-

return "";

327-

}

328-
329282

function resolveAgentTextAvatar(

330283

agent: { identity?: { emoji?: string; avatar?: string } },

331284

agentIdentity?: AgentIdentityResult | null,

@@ -349,14 +302,6 @@ export function agentBadgeText(agentId: string, defaultId: string | null) {

349302

return defaultId && agentId === defaultId ? "default" : null;

350303

}

351304
352-

export function agentAvatarHue(id: string): number {

353-

let hash = 0;

354-

for (let i = 0; i < id.length; i += 1) {

355-

hash = (hash * 31 + id.charCodeAt(i)) | 0;

356-

}

357-

return ((hash % 360) + 360) % 360;

358-

}

359-
360305

export function formatBytes(bytes?: number) {

361306

if (bytes == null || !Number.isFinite(bytes)) {

362307

return "-";