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

推荐订阅源

I
InfoQ
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
GbyAI
GbyAI
Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
Microsoft Security Blog
Microsoft Security Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
宝玉的分享
宝玉的分享

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
docs: document status tool tests · openclaw/openclaw@a98f292
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,3 +1,5 @@

1+

// Assistant phase text tests cover extracting final-answer text from signed

2+

// assistant message phases.

13

import { describe, expect, it } from "vitest";

24

import { extractAssistantText as extractChatHistoryAssistantText } from "./chat-history-text.js";

35

import { extractAssistantText as extractSessionAssistantText } from "./session-message-text.js";

@@ -52,6 +54,8 @@ describe("phase-aware assistant text helpers", () => {

5254

}

5355
5456

it("does not fall back to commentary when an explicit final_answer is empty", () => {

57+

// An explicit empty final answer means there is no publishable response;

58+

// commentary should stay private.

5559

const message = assistantMessage(

5660

assistantTextPart("commentary", "commentary", "Need simpler use cat overwrite full file."),

5761

assistantTextPart("final", "final_answer", " "),

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,5 @@

1+

// sessions_list tool tests cover session metadata projection, visibility

2+

// helpers, and numeric argument validation.

13

import { beforeEach, describe, expect, it, vi } from "vitest";

24

import { createSessionsListTool } from "./sessions-list-tool.js";

35

@@ -69,6 +71,8 @@ describe("sessions-list-tool", () => {

6971

});

7072
7173

it("keeps deliveryContext.threadId in sessions_list results", async () => {

74+

// Thread/topic ids are required for channel-specific follow-up routing, so

75+

// list results must preserve both string and numeric variants.

7276

mocks.gatewayCall.mockImplementation(async (opts: unknown) => {

7377

const request = opts as { method?: string };

7478

if (request.method === "sessions.list") {

@@ -200,6 +204,8 @@ describe("sessions-list-tool", () => {

200204

[{ messageLimit: 1.5 }, "messageLimit must be a non-negative integer"],

201205

[{ messageLimit: -1 }, "messageLimit must be a non-negative integer"],

202206

])("rejects invalid numeric parameter %o", async (params, message) => {

207+

// Reject before gateway dispatch so malformed limits cannot reach session

208+

// store queries.

203209

const tool = createSessionsListTool({ config: {} as never });

204210
205211

await expect(tool.execute("call-4", params)).rejects.toThrow(message);

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,5 @@

1+

// sessions_yield tool tests cover cooperative turn yielding and unsupported

2+

// context errors.

13

import { describe, expect, it, vi } from "vitest";

24

import { createSessionsYieldTool } from "./sessions-yield-tool.js";

35

@@ -30,6 +32,8 @@ describe("sessions_yield tool", () => {

3032

});

3133
3234

it("passes the custom message through the yield callback", async () => {

35+

// The callback message becomes operator-visible scheduler context, so the

36+

// tool must not replace a supplied reason with the default text.

3337

const onYield = vi.fn();

3438

const tool = createSessionsYieldTool({ sessionId: "test-session", onYield });

3539

const result = await tool.execute("call-1", { message: "Waiting for fact-checker" });

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,4 @@

1+

// update_plan tool tests cover compact plan payloads and plan-shape validation.

12

import { describe, expect, it } from "vitest";

23

import { createUpdatePlanTool } from "./update-plan-tool.js";

34

@@ -26,6 +27,8 @@ describe("update_plan tool", () => {

2627

});

2728
2829

it("rejects multiple in-progress steps", async () => {

30+

// The UI and agent state assume one current step; multiple active steps

31+

// make progress reporting ambiguous.

2932

const tool = createUpdatePlanTool();

3033
3134

await expect(

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,5 @@

1+

// Shared web helper tests cover timeout normalization and process-local cache

2+

// expiry guards.

13

import {

24

MAX_TIMER_TIMEOUT_MS,

35

MAX_TIMER_TIMEOUT_SECONDS,

@@ -32,6 +34,8 @@ describe("web shared timeout seconds", () => {

3234

});

3335
3436

it("drops cached values while the process clock is invalid", () => {

37+

// Bad system clocks can make cache expiry nonsensical; fail closed instead

38+

// of serving stale web data indefinitely.

3539

const cache = new Map<string, CacheEntry<string>>();

3640

writeCache(cache, "key", "old", 60_000);

3741

expect(readCache(cache, "key")?.value).toBe("old");