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

推荐订阅源

Y
Y Combinator Blog
D
Docker
有赞技术团队
有赞技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
爱范儿
爱范儿
H
Help Net Security
美团技术团队
MyScale Blog
MyScale Blog
B
Blog RSS Feed
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
G
Google Developers Blog
月光博客
月光博客
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs

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 channel resolution · openclaw/ope...
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1+

// Covers lazy outbound channel bootstrap, retry guards, auto-enable config, and

2+

// send-capable active registry short-circuiting.

13

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

24

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

35

import { createEmptyPluginRegistry } from "../../plugins/registry-empty.js";

Original file line numberDiff line numberDiff line change

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

1+

// Outbound channel bootstrap lazily loads runtime plugins for selected channels

2+

// when only setup-shell metadata is active.

13

import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../../agents/agent-scope.js";

24

import { applyPluginAutoEnable } from "../../config/plugin-auto-enable.js";

35

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

@@ -42,6 +44,8 @@ export function bootstrapOutboundChannelPlugin(params: {

4244

if (bootstrapAttempts.has(attemptKey)) {

4345

return;

4446

}

47+

// Retry once per registry version/channel; failed loads clear the guard below

48+

// so config fixes in the same process can try again.

4549

bootstrapAttempts.add(attemptKey);

4650
4751

const autoEnabled = applyPluginAutoEnable({ config: cfg });

Original file line numberDiff line numberDiff line change

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

1+

// Verifies outbound channel resolution fast paths, active-registry reads,

2+

// bootstrap fallback, and runtime facade projection.

13

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

24
35

const resolveDefaultAgentIdMock = vi.hoisted(() => vi.fn());

Original file line numberDiff line numberDiff line change

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

1+

// Channel resolution exposes read-only outbound runtime facades and performs

2+

// optional bootstrap for deliverable channels that are not loaded yet.

13

import type { ChannelMessageAdapterShape } from "../../channels/message/types.js";

24

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

35

import { channelPluginHasNativeApprovalPromptUi } from "../../channels/plugins/native-approval-prompt.js";

Original file line numberDiff line numberDiff line change

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

1+

// Covers message channel selection from explicit input, tool context fallback,

2+

// configured accounts, and missing official external plugin repair hints.

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+

// Channel selection chooses a deliverable message channel from explicit input,

2+

// tool context fallback, or configured plugin accounts.

13

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

24

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

35

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

Original file line numberDiff line numberDiff line change

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

1+

// Covers directory cache key dimensions, TTL expiration, config invalidation,

2+

// recency refresh, bounded eviction, and matching clears.

13

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

24

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

35

import { DirectoryCache, buildDirectoryCacheKey } from "./directory-cache.js";

Original file line numberDiff line numberDiff line change

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

1+

// Directory cache stores short-lived channel directory lookups and invalidates

2+

// them on config-object changes or resolver signature updates.

13

import type { ChannelDirectoryEntryKind, ChannelId } from "../../channels/plugins/types.public.js";

24

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

35

import { resolveNonNegativeIntegerOption } from "../numeric-options.js";

Original file line numberDiff line numberDiff line change

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

1+

// Covers outbound target resolver id heuristics, directory cache/live fallback,

2+

// ambiguity modes, display formatting, and plugin normalized fallbacks.

13

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

24

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

35

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

Original file line numberDiff line numberDiff line change

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

1+

// Target resolver combines plugin id heuristics, cached directory searches,

2+

// live fallback lookups, and normalized fallback targets.

13

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

24

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

35

import type {

@@ -295,6 +297,8 @@ async function getDirectoryEntries(params: {

295297

directoryCache.set(cacheKey, entries, params.cfg);

296298

return entries;

297299

}

300+

// Empty cached directory results may be stale; live lookup gets one chance

301+

// before both live and cache keys are updated.

298302

const liveKey = buildDirectoryCacheKey({

299303

channel: params.channel,

300304

accountId: params.accountId,