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

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell

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 outbound message policy · openclaw/opencla...
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1+

// Verifies outbound text/media send-unit planning, chunking, captions, and

2+

// single-use implicit reply consumption.

13

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

24

import { planOutboundMediaMessageUnits, planOutboundTextMessageUnits } from "./message-plan.js";

35

import { createReplyToDeliveryPolicy } from "./reply-policy.js";

Original file line numberDiff line numberDiff line change

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

1+

// Message planning expands normalized payloads into ordered text/media send

2+

// units while preserving reply-to consumption rules.

13

import {

24

chunkByParagraph,

35

chunkMarkdownTextWithMode,

Original file line numberDiff line numberDiff line change

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

1+

// Covers outbound message send/poll orchestration, target resolution, durable

2+

// capability checks, gateway fallback, dry runs, and payload planning.

13

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

24
35

const mocks = vi.hoisted(() => ({

Original file line numberDiff line numberDiff line change

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

1+

// Outbound message entrypoint resolves channel/target, durable capability

2+

// requirements, payload plans, gateway fallback, and optional mirroring.

13

import type { ReplyPayload } from "../../auto-reply/reply-payload.js";

24

import { deriveDurableFinalDeliveryRequirements } from "../../channels/message/capabilities.js";

35

import { sendDurableMessageBatch } from "../../channels/message/runtime.js";

@@ -33,6 +35,8 @@ let messageGatewayRuntimePromise: Promise<typeof import("./message.gateway.runti

3335

null;

3436
3537

function loadMessageConfigRuntime() {

38+

// Keep config/runtime loading lazy so importing message helpers does not

39+

// bootstrap plugin registries or gateway clients.

3640

messageConfigRuntimePromise ??= import("./message.config.runtime.js");

3741

return messageConfigRuntimePromise;

3842

}

Original file line numberDiff line numberDiff line change

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

1+

// Covers message action allowlists plus cross-context marker/decorator policy

2+

// for same-provider and cross-provider sends.

13

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

24

import { vi } from "vitest";

35

import type { ChannelMessageActionName } from "../../channels/plugins/types.js";

Original file line numberDiff line numberDiff line change

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

1+

// Outbound policy enforces message-tool allowlists and cross-context delivery

2+

// markers/decorations before channel dispatch.

13

import { normalizeUniqueStringEntries } from "@openclaw/normalization-core/string-normalization";

24

import { getChannelPlugin } from "../../channels/plugins/index.js";

35

import type {

Original file line numberDiff line numberDiff line change

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

1+

// Reply-payload normalization projects loose tool/agent objects onto the

2+

// outbound-supported reply payload fields.

13

import { readStringValue } from "@openclaw/normalization-core/string-coerce";

24

import type { ReplyPayload as InternalReplyPayload } from "../../auto-reply/reply-payload.js";

35
Original file line numberDiff line numberDiff line change

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

1+

// Covers reply-to fanout and delivery policy consumption for explicit,

2+

// implicit, single-use, and disabled reply modes.

13

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

24

import { createReplyToFanout } from "./reply-policy.js";

35
Original file line numberDiff line numberDiff line change

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

1+

// Reply policy coordinates explicit and implicit reply-to ids across chunked or

2+

// multi-payload outbound delivery.

13

import { isSingleUseReplyToMode } from "../../auto-reply/reply/reply-reference.js";

24

import type { ReplyPayload } from "../../auto-reply/types.js";

35

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

Original file line numberDiff line numberDiff line change

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

1+

// Covers source-delivery target matching, message-tool ownership plans, and

2+

// fallback satisfaction outcomes.

13

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

24
35

vi.mock("./target-normalization.js", () => ({