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

推荐订阅源

D
DataBreaches.Net
F
Fortinet All Blogs
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
罗磊的独立博客
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
G
Google Developers Blog
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
fix: separate Current time from Reference UTC (#42654) · ...
chencheng-li · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -642,6 +642,7 @@ Docs: https://docs.openclaw.ai

642642

- Gateway/nodes: preserve the live node registry session and invoke ownership when an older same-node WebSocket closes after reconnecting. (#78351) Thanks @samzong.

643643

- Browser/downloads: route explicit and managed browser download output directories through `fs-safe` validation before staging final files, so symlinked output roots are rejected before writes. (#78780) Thanks @jesse-merhi.

644644

- Agents/PI: skip the idle wait during aborted embedded-run cleanup, so stopped or timed-out runs clear pending tool state and release the session lock promptly. (#74919) Thanks @medns.

645+

- Agents/current-time: split UTC into a separate `Reference UTC:` prompt line so local `Current time:` stays anchored to the user's timezone. (#42654) Thanks @chencheng-li.

645646
646647

## 2026.5.3-1

647648
Original file line numberDiff line numberDiff line change

@@ -84,8 +84,9 @@ describe("buildMemoryFlushPlan", () => {

8484
8585

expect(plan?.prompt).toContain("memory/2026-02-16.md");

8686

expect(plan?.prompt).toContain(

87-

"Current time: Monday, February 16th, 2026 - 10:00 AM (America/New_York) / 2026-02-16 15:00 UTC",

87+

"Current time: Monday, February 16th, 2026 - 10:00 AM (America/New_York)",

8888

);

89+

expect(plan?.prompt).toContain("Reference UTC: 2026-02-16 15:00 UTC");

8990

expect(plan?.relativePath).toBe("memory/2026-02-16.md");

9091

});

9192
Original file line numberDiff line numberDiff line change

@@ -1943,7 +1943,8 @@ describe("short-term dreaming trigger", () => {

19431943

const result = await runShortTermDreamingPromotionIfTriggered({

19441944

cleanedBody: [

19451945

"[cron:e795558c-a273-4124-ba88-d4916688d977 Memory Dreaming Promotion] __openclaw_memory_core_short_term_promotion_dream__",

1946-

"Current time: Thursday, April 16th, 2026 - 3:10 PM (America/Los_Angeles) / 2026-04-16 22:10 UTC",

1946+

"Current time: Thursday, April 16th, 2026 - 3:10 PM (America/Los_Angeles)",

1947+

"Reference UTC: 2026-04-16 22:10 UTC",

19471948

].join("\n"),

19481949

trigger: "cron",

19491950

workspaceDir,

Original file line numberDiff line numberDiff line change

@@ -26,7 +26,7 @@ export function resolveCronStyleNow(cfg: TimeConfigLike, nowMs: number): CronSty

2626

const formattedTime =

2727

formatUserTime(new Date(nowMs), userTimezone, userTimeFormat) ?? new Date(nowMs).toISOString();

2828

const utcTime = new Date(nowMs).toISOString().replace("T", " ").slice(0, 16) + " UTC";

29-

const timeLine = `Current time: ${formattedTime} (${userTimezone}) / ${utcTime}`;

29+

const timeLine = `Current time: ${formattedTime} (${userTimezone})\nReference UTC: ${utcTime}`;

3030

return { userTimezone, formattedTime, timeLine };

3131

}

3232
Original file line numberDiff line numberDiff line change

@@ -262,9 +262,8 @@ Never modify memory/YYYY-MM-DD.md destructively.

262262

expect(result).not.toBeNull();

263263

expect(result).toContain("memory/2026-03-03.md");

264264

expect(result).not.toContain("memory/YYYY-MM-DD.md");

265-

expect(result).toContain(

266-

"Current time: Tuesday, March 3rd, 2026 - 9:00 AM (America/New_York) / 2026-03-03 14:00 UTC",

267-

);

265+

expect(result).toContain("Current time: Tuesday, March 3rd, 2026 - 9:00 AM (America/New_York)");

266+

expect(result).toContain("Reference UTC: 2026-03-03 14:00 UTC");

268267

});

269268
270269

it("appends current time line even when no YYYY-MM-DD placeholder is present", async () => {

Original file line numberDiff line numberDiff line change

@@ -50,9 +50,8 @@ describe("buildBareSessionResetPrompt", () => {

5050

// 2026-03-03 14:00 UTC = 2026-03-03 09:00 EST

5151

const nowMs = Date.UTC(2026, 2, 3, 14, 0, 0);

5252

const prompt = buildBareSessionResetPrompt(cfg, nowMs);

53-

expect(prompt).toContain(

54-

"Current time: Tuesday, March 3rd, 2026 - 9:00 AM (America/New_York) / 2026-03-03 14:00 UTC",

55-

);

53+

expect(prompt).toContain("Current time: Tuesday, March 3rd, 2026 - 9:00 AM (America/New_York)");

54+

expect(prompt).toContain("Reference UTC: 2026-03-03 14:00 UTC");

5655

});

5756
5857

it("does not append a duplicate current time line", () => {

Original file line numberDiff line numberDiff line change

@@ -55,7 +55,8 @@ describe("runCronIsolatedAgentTurn session identity", () => {

5555

const lines = call?.prompt?.split("\n") ?? [];

5656

expect(lines[0]).toContain("[cron:job-1");

5757

expect(lines[0]).toContain("do it");

58-

expect(lines[1]).toMatch(/^Current time: .+ \(.+\) \/ \d{4}-\d{2}-\d{2} \d{2}:\d{2} UTC$/);

58+

expect(lines[1]).toMatch(/^Current time: .+ \(.+\)$/);

59+

expect(lines[2]).toMatch(/^Reference UTC: \d{4}-\d{2}-\d{2} \d{2}:\d{2} UTC$/);

5960

});

6061

});

6162
Original file line numberDiff line numberDiff line change

@@ -594,7 +594,8 @@ async function createMaintenanceScenario(workspaceDir: string): Promise<PromptSc

594594

"Store durable memories only in memory/2026-03-15.md (create memory/ if needed).",

595595

"Treat workspace bootstrap/reference files such as MEMORY.md, SOUL.md, TOOLS.md, and AGENTS.md as read-only during this flush; never overwrite, replace, or edit them.",

596596

"If nothing to store, reply with NO_REPLY.",

597-

"Current time: Sunday, March 15th, 2026 - 9:30 PM (America/Los_Angeles) / 2026-03-16 04:30 UTC",

597+

"Current time: Sunday, March 15th, 2026 - 9:30 PM (America/Los_Angeles)",

598+

"Reference UTC: 2026-03-16 04:30 UTC",

598599

].join("\n");

599600

const memoryFlushSystemPrompt = buildSystemPrompt({

600601

workspaceDir,

@@ -618,7 +619,8 @@ async function createMaintenanceScenario(workspaceDir: string): Promise<PromptSc

618619

"## Red Lines",

619620

"Do not delete production data.",

620621

"",

621-

"Current time: Sunday, March 15th, 2026 - 9:30 PM (America/Los_Angeles) / 2026-03-16 04:30 UTC",

622+

"Current time: Sunday, March 15th, 2026 - 9:30 PM (America/Los_Angeles)",

623+

"Reference UTC: 2026-03-16 04:30 UTC",

622624

].join("\n");

623625

const postCompactionSystemPrompt = buildSystemPrompt({

624626

workspaceDir,