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

推荐订阅源

L
LangChain Blog
V
V2EX
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
小众软件
小众软件
Vercel News
Vercel News
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
J
Java Code Geeks
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
B
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 agent session infra tests · openclaw/openc...
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1+

// HTTP dispatcher tests cover idle-timeout parsing for session network

2+

// transports.

13

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

24

import { parseHttpIdleTimeoutMs } from "./http-dispatcher.js";

35

@@ -9,6 +11,8 @@ describe("parseHttpIdleTimeoutMs", () => {

911

});

1012
1113

it("rejects non-decimal idle timeout strings", () => {

14+

// Keep env/config parsing decimal-only so values like 1e3 or 0x10 do not

15+

// silently mean different delays across parsers.

1216

expect(parseHttpIdleTimeoutMs("1e3")).toBeUndefined();

1317

expect(parseHttpIdleTimeoutMs("0x10")).toBeUndefined();

1418

});

Original file line numberDiff line numberDiff line change

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

1+

// Package manager tests cover resource discovery boundaries for package,

2+

// project, and npm-declared agent resources.

13

import { mkdtemp, mkdir, rm, symlink, writeFile } from "node:fs/promises";

24

import { tmpdir } from "node:os";

35

import { join } from "node:path";

@@ -19,6 +21,8 @@ afterEach(async () => {

1921
2022

describe("DefaultPackageManager", () => {

2123

it("keeps manifest resource entries inside the package root", async () => {

24+

// Manifest globs are package-owned; path traversal or symlink hops must not

25+

// expose arbitrary host files as skills.

2226

const root = await makeTempDir("openclaw-package-manager-");

2327

const packageRoot = join(root, "package");

2428

const outsideRoot = join(root, "outside");

@@ -121,6 +125,8 @@ describe("DefaultPackageManager", () => {

121125

});

122126
123127

it("keeps auto-discovered project resources inside their resource roots", async () => {

128+

// Project resources may be auto-discovered, but each resource type remains

129+

// confined to its expected root.

124130

const root = await makeTempDir("openclaw-package-manager-");

125131

const configRoot = join(root, ".openclaw");

126132

const outsideRoot = join(root, "outside");

Original file line numberDiff line numberDiff line change

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

1+

// Resource loader tests cover compatibility wiring for SDK prompt transform

2+

// aliases.

13

import { mkdtempSync, rmSync } from "node:fs";

24

import { tmpdir } from "node:os";

35

import { join } from "node:path";

@@ -6,6 +8,8 @@ import { DefaultResourceLoader } from "./resource-loader.js";

68
79

describe("DefaultResourceLoader", () => {

810

it("keeps deprecated SDK prompt override aliases wired to prompt transforms", async () => {

11+

// These aliases are deprecated but shipped SDK surface, so they still map

12+

// through the same transform path as the current options.

913

const root = mkdtempSync(join(tmpdir(), "openclaw-resource-loader-"));

1014

try {

1115

const loader = new DefaultResourceLoader({

Original file line numberDiff line numberDiff line change

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

1+

// Agent session SDK tests cover default tool wiring, prompt preservation, and

2+

// session write-lock behavior.

13

import { Type } from "typebox";

24

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

35

import type { Model } from "../../llm/types.js";

@@ -86,6 +88,8 @@ describe("createAgentSession tool defaults", () => {

8688

});

8789
8890

it("keeps custom tools active when only builtin tools are disabled", async () => {

91+

// `noTools: "builtin"` removes stock tools only; extension/custom tools are

92+

// still explicitly supplied session capabilities.

8993

const customTool: ToolDefinition = {

9094

name: "custom_lookup",

9195

label: "Custom Lookup",

@@ -165,6 +169,8 @@ describe("createAgentSession tool defaults", () => {

165169

});

166170
167171

it("runs session message persistence under the configured write lock", async () => {

172+

// Transcript writes share the caller-provided lock so concurrent event

173+

// handlers cannot interleave JSONL persistence.

168174

const events: string[] = [];

169175

const sessionManager = SessionManager.inMemory();

170176

const { session } = await createAgentSession({

@@ -261,6 +267,8 @@ describe("createAgentSession tool defaults", () => {

261267

});

262268
263269

it("fences tool execution when no extension hook is registered", async () => {

270+

// Write-capable tools still enter the lock even without hooks; the lock is

271+

// about shared session state, not just extension execution.

264272

const events: string[] = [];

265273

const { session } = await createAgentSession({

266274

model: testModel,