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

推荐订阅源

IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
小众软件
小众软件
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
J
Java Code Geeks
WordPress大学
WordPress大学
The Cloudflare 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 transcript tool tests · openclaw/openclaw@...
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1+

// Tool image logging tests cover diagnostic context emitted while sanitizing

2+

// oversized or transformed image payloads.

13

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

24

import { createSolidPngBuffer } from "../../test/helpers/image-fixtures.js";

35
Original file line numberDiff line numberDiff line change

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

1+

// Tool search tests cover catalog compaction, scoped tool lookup, raw fallback

2+

// tools, hooks, abort wrapping, and transcript projection.

13

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

24

import { setPluginToolMeta } from "../plugins/tools.js";

35

import { wrapToolWithAbortSignal } from "./agent-tools.abort.js";

@@ -159,6 +161,8 @@ describe("Tool Search", () => {

159161

});

160162
161163

it("scopes catalogs by run id when attempts share a session", async () => {

164+

// Overlapping run attempts can share a session id; run-scoped catalogs keep

165+

// one attempt from calling tools only exposed to another.

162166

const runATool = pluginTool("fake_run_a", "Tool visible only to run A");

163167

const runBTool = pluginTool("fake_run_b", "Tool visible only to run B");

164168

const config = {

Original file line numberDiff line numberDiff line change

@@ -1,12 +1,12 @@

1+

// Transcript redaction tests cover structured and text transcript fields so

2+

// secrets do not persist in logs or replay artifacts.

13

import type { AgentMessage } from "openclaw/plugin-sdk/agent-core";

24

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

35

import type { OpenClawConfig } from "../config/types.openclaw.js";

46

import { redactTranscriptMessage } from "./transcript-redact.js";

57
6-

/** Typed accessor for `content` on AgentMessage.

7-

* AgentMessage is a union that includes custom message types (e.g. BashExecutionMessage)

8-

* which have no `content` field. Direct `.content` access fails tsgo's strict union check.

9-

*/

8+

// AgentMessage includes custom message types without content; this accessor

9+

// keeps strict union checks local to the redaction fixtures.

1010

function msgContent(msg: AgentMessage): unknown {

1111

return (msg as unknown as { content: unknown }).content;

1212

}

@@ -226,6 +226,8 @@ describe("redactTranscriptMessage", () => {

226226

});

227227
228228

it("redacts circular structured payloads without throwing", () => {

229+

// Redaction walks arbitrary tool payloads, so circular structures must be

230+

// replaced instead of recursing forever or throwing.

229231

const details: Record<string, unknown> = {

230232

apiKey: "plainsecretvalue123",

231233

};

Original file line numberDiff line numberDiff line change

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

1+

// Transport params runtime-contract tests cover default extra params and

2+

// provider transport patching for embedded OpenClaw/OpenAI execution paths.

13

import type { StreamFn } from "openclaw/plugin-sdk/agent-core";

24

import type { Context, Model } from "openclaw/plugin-sdk/llm";

35

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

@@ -122,6 +124,8 @@ describe("transport params runtime contract (embedded OpenClaw/OpenAI path)", ()

122124

});

123125
124126

it("composes provider preparation before transport patch resolution", () => {

127+

// Provider preparation can rewrite transport context; transport-specific

128+

// patches must see that prepared context before final payload mutation.

125129

const resolveProviderExtraParamsForTransport = vi.fn((_params: unknown) => ({

126130

patch: {

127131

parallel_tool_calls: false,

Original file line numberDiff line numberDiff line change

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

1+

// Video generation task-status tests cover active background task detection and

2+

// prompt/status text that prevents duplicate media generation requests.

13

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

24

import { resetRecentMediaGenerationDuplicateGuardsForTests } from "./media-generation-task-status-shared.js";

35

import {

@@ -81,6 +83,8 @@ describe("video generation task status", () => {

8183

});

8284
8385

it("prefers a running task over queued session siblings", () => {

86+

// Running work should suppress duplicate generation even when older queued

87+

// siblings still exist for the same session owner.

8488

taskRuntimeInternalMocks.listTasksForOwnerKey.mockReturnValue([

8589

{

8690

taskId: "task-queued",

Original file line numberDiff line numberDiff line change

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

1+

// xAI live tests verify Grok completions, tool payload wrapping, and Grok web

2+

// search against the real provider when live credentials are enabled.

13

import { completeSimple, type Model, streamSimple } from "openclaw/plugin-sdk/llm";

24

import { Type } from "typebox";

35

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

@@ -65,6 +67,8 @@ function requireLiveValue<T>(value: T | null | undefined, label: string): T {

6567

}

6668
6769

async function runXaiLiveCase(label: string, run: () => Promise<void>): Promise<void> {

70+

// Live provider behavior can drift on billing/capacity; those environment

71+

// failures are skipped while real contract failures still throw.

6872

try {

6973

await run();

7074

} catch (error) {

Original file line numberDiff line numberDiff line change

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

1+

// Z.ai live tests verify GLM completions against the real provider when live

2+

// credentials and live-test flags are enabled.

13

import { completeSimple, type Model } from "openclaw/plugin-sdk/llm";

24

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

35

import {