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

推荐订阅源

Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
J
Java Code Geeks
L
LangChain Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
博客园 - 司徒正美
B
Blog
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - 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
refactor(runtime): remove unused internal wrappers · open...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -673,17 +673,6 @@ export function formatProbeLatency(latencyMs?: number | null) {

673673

return formatMs(latencyMs);

674674

}

675675
676-

/** Groups probe results by provider. */

677-

export function groupProbeResults(results: AuthProbeResult[]): Map<string, AuthProbeResult[]> {

678-

const map = new Map<string, AuthProbeResult[]>();

679-

for (const result of results) {

680-

const list = map.get(result.provider) ?? [];

681-

list.push(result);

682-

map.set(result.provider, list);

683-

}

684-

return map;

685-

}

686-
687676

/** Sorts probe results by provider and display label. */

688677

export function sortProbeResults(results: AuthProbeResult[]): AuthProbeResult[] {

689678

return results.slice().toSorted((a, b) => {

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,6 @@ import {

55

buildModelAliasIndex,

66

legacyModelKey,

77

modelKey,

8-

parseModelRef,

98

resolveModelRefFromString,

109

} from "../../agents/model-selection.js";

1110

import { formatCliCommand } from "../../cli/command-format.js";

@@ -147,20 +146,6 @@ export function resolveModelKeysFromEntries(params: {

147146

.map((entry) => modelKey(entry.ref.provider, entry.ref.model));

148147

}

149148
150-

/** Builds the configured model allowlist from agents.defaults.models keys. */

151-

export function buildAllowlistSet(cfg: OpenClawConfig): Set<string> {

152-

const allowed = new Set<string>();

153-

const models = cfg.agents?.defaults?.models ?? {};

154-

for (const raw of Object.keys(models)) {

155-

const parsed = parseModelRef(raw, DEFAULT_PROVIDER);

156-

if (!parsed) {

157-

continue;

158-

}

159-

allowed.add(modelKey(parsed.provider, parsed.model));

160-

}

161-

return allowed;

162-

}

163-
164149

/** Validates an optional agent id against configured agents. */

165150

export function resolveKnownAgentId(params: {

166151

cfg: OpenClawConfig;

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,6 @@ import fs from "node:fs/promises";

66

import path from "node:path";

77

import { type FileLockOptions, withFileLock } from "../plugin-sdk/file-lock.js";

88

import {

9-

clearStoreWriterQueuesForTest,

109

runQueuedStoreWrite,

1110

type StoreWriterQueue,

1211

} from "../shared/store-writer-queue.js";

@@ -45,7 +44,3 @@ export async function runExclusiveCommitmentsStoreWrite<T>(

4544

},

4645

});

4746

}

48-
49-

export function clearCommitmentsStoreWriterQueuesForTest(): void {

50-

clearStoreWriterQueuesForTest(WRITER_QUEUES, "commitments store writer queue cleared for test");

51-

}

Original file line numberDiff line numberDiff line change

@@ -1,9 +1,5 @@

11

/** Shared Vitest module mocks for isolated-agent cron tests. */

22

import { vi } from "vitest";

3-

import {

4-

makeIsolatedAgentJobFixture,

5-

makeIsolatedAgentParamsFixture,

6-

} from "./isolated-agent/job-fixtures.js";

73
84

vi.mock("../agents/embedded-agent.js", () => ({

95

abortEmbeddedAgentRun: vi.fn().mockReturnValue(false),

@@ -36,6 +32,3 @@ vi.mock("../plugins/runtime-plugins.runtime.js", () => ({

3632

vi.mock("../gateway/call.js", () => ({

3733

callGateway: vi.fn(),

3834

}));

39-
40-

export const makeIsolatedAgentJob = makeIsolatedAgentJobFixture;

41-

export const makeIsolatedAgentParams = makeIsolatedAgentParamsFixture;

Original file line numberDiff line numberDiff line change

@@ -127,17 +127,6 @@ function stripRuntimeModelState(entry?: SessionEntry): SessionEntry | undefined

127127

};

128128

}

129129
130-

export function archiveSessionTranscriptsForSession(params: {

131-

sessionId: string | undefined;

132-

storePath: string;

133-

sessionFile?: string;

134-

agentId?: string;

135-

reason: "reset" | "deleted";

136-

onArchiveError?: (err: unknown, sourcePath: string) => void;

137-

}): string[] {

138-

return archiveSessionTranscriptsForSessionDetailed(params).map((entry) => entry.archivedPath);

139-

}

140-
141130

export function archiveSessionTranscriptsForSessionDetailed(params: {

142131

sessionId: string | undefined;

143132

storePath: string;

Original file line numberDiff line numberDiff line change

@@ -54,8 +54,3 @@ export function requireUnifiedTalkSessionConn(

5454

}

5555

return connId;

5656

}

57-
58-

/** Clears process-local Talk session mappings between tests. */

59-

export function clearUnifiedTalkSessionsForTest(): void {

60-

unifiedTalkSessions.clear();

61-

}

Original file line numberDiff line numberDiff line change

@@ -36,31 +36,6 @@ export function saveJsonFile(pathname: string, data: unknown): void {

3636

writeJsonSync(resolveJsonSaveTarget(pathname), data);

3737

}

3838
39-

export function repairJsonFilePermissions(pathname: string): void {

40-

const target = resolveJsonSaveTarget(pathname);

41-

let fd: number | undefined;

42-

try {

43-

fd = fs.openSync(

44-

target,

45-

fs.constants.O_RDONLY |

46-

(process.platform !== "win32" && "O_NOFOLLOW" in fs.constants

47-

? fs.constants.O_NOFOLLOW

48-

: 0),

49-

);

50-

fs.fchmodSync(fd, 0o600);

51-

} catch {

52-

// Matches fs-safe JSON writes: permission repair is best-effort.

53-

} finally {

54-

if (fd !== undefined) {

55-

try {

56-

fs.closeSync(fd);

57-

} catch {

58-

// best-effort cleanup

59-

}

60-

}

61-

}

62-

}

63-
6439

// oxlint-disable-next-line typescript-eslint/no-unnecessary-type-parameters -- legacy typed JSON loader alias.

6540

export function loadJsonFile<T = unknown>(pathname: string): T | undefined {

6641

const direct = tryReadJsonSync<T>(pathname);

Original file line numberDiff line numberDiff line change

@@ -30,8 +30,3 @@ export function resolveOpenClawAgentSqlitePath(options: OpenClawAgentSqlitePathO

3030

),

3131

);

3232

}

33-
34-

/** Resolve the containing directory for one agent's SQLite database. */

35-

export function resolveOpenClawAgentSqliteDir(options: OpenClawAgentSqlitePathOptions): string {

36-

return path.dirname(resolveOpenClawAgentSqlitePath(options));

37-

}