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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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
test: guard command mock calls · openclaw/openclaw@b37a71f
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -369,7 +369,7 @@ describe("deliverAgentCommandResult", () => {

369369
370370

expect(runtime.log).toHaveBeenCalledTimes(1);

371371

expect(

372-

JSON.parse(String((runtime.log as ReturnType<typeof vi.fn>).mock.calls[0]?.[0])),

372+

JSON.parse(String((runtime.log as ReturnType<typeof vi.fn>).mock.calls.at(0)?.[0])),

373373

).toEqual({

374374

payloads: [

375375

{

Original file line numberDiff line numberDiff line change

@@ -381,7 +381,7 @@ describe("agentCommand", () => {

381381

);

382382
383383

expect(pluginRegistryMocks.ensurePluginRegistryLoaded).toHaveBeenCalledOnce();

384-

const registryLoad = pluginRegistryMocks.ensurePluginRegistryLoaded.mock.calls[0]?.[0];

384+

const registryLoad = pluginRegistryMocks.ensurePluginRegistryLoaded.mock.calls.at(0)?.[0];

385385

expect(registryLoad?.scope).toBe("all");

386386

expect(registryLoad?.config).toBeTypeOf("object");

387387

expect(registryLoad?.activationSourceConfig).toBeTypeOf("object");

Original file line numberDiff line numberDiff line change

@@ -128,7 +128,7 @@ describe("agents delete command", () => {

128128

await agentsDeleteCommand({ id: "ops", force: true, json: true }, runtime);

129129
130130

expect(gatewayMocks.callGateway).toHaveBeenCalledOnce();

131-

const gatewayCall = gatewayMocks.callGateway.mock.calls[0]?.[0];

131+

const gatewayCall = gatewayMocks.callGateway.mock.calls.at(0)?.[0];

132132

expect(gatewayCall?.method).toBe("agents.delete");

133133

expect(gatewayCall?.params).toEqual({ agentId: "ops", deleteFiles: true });

134134

expect(gatewayCall?.requiredMethods).toEqual(["agents.delete"]);

Original file line numberDiff line numberDiff line change

@@ -43,7 +43,7 @@ async function writeIdentityFile(workspace: string, lines: string[]) {

4343

}

4444
4545

function getWrittenMainIdentity() {

46-

const [written] = configMocks.writeConfigFile.mock.calls[0] ?? [];

46+

const [written] = configMocks.writeConfigFile.mock.calls.at(0) ?? [];

4747

if (!written) {

4848

throw new Error("expected written agent config");

4949

}

Original file line numberDiff line numberDiff line change

@@ -461,7 +461,10 @@ describe("applyAuthChoiceLoadedPluginProvider", () => {

461461

const result = await applyAuthChoiceLoadedPluginProvider(buildParams());

462462
463463

expect(ensureOnboardingPluginInstalled).toHaveBeenCalledOnce();

464-

const [installParams] = ensureOnboardingPluginInstalled.mock.calls[0];

464+

const [installParams] = ensureOnboardingPluginInstalled.mock.calls.at(0) ?? [];

465+

if (installParams === undefined) {

466+

throw new Error("expected plugin install params");

467+

}

465468

expect(installParams.entry?.pluginId).toBe("local-provider-plugin");

466469

expect(installParams.entry?.label).toBe(LOCAL_PROVIDER_LABEL);

467470

expect(installParams.workspaceDir).toBe("/tmp/workspace");

Original file line numberDiff line numberDiff line change

@@ -45,7 +45,7 @@ describe("warnIfModelConfigLooksOff", () => {

4545

expect(loadModelCatalog).not.toHaveBeenCalled();

4646

expect(ensureAuthProfileStore).toHaveBeenCalledOnce();

4747

expect(listProfilesForProvider).toHaveBeenCalledOnce();

48-

const [profileStore, providerId] = listProfilesForProvider.mock.calls[0] as unknown as [

48+

const [profileStore, providerId] = listProfilesForProvider.mock.calls.at(0) as unknown as [

4949

AuthProfileStore,

5050

string,

5151

];

Original file line numberDiff line numberDiff line change

@@ -125,7 +125,7 @@ describe("resolvePreferredProviderForAuthChoice", () => {

125125

}),

126126

).resolves.toBe("demo-provider");

127127

expect(resolvePluginProviders).toHaveBeenCalledOnce();

128-

const [pluginProviderOptions] = resolvePluginProviders.mock.calls[0] as unknown as [

128+

const [pluginProviderOptions] = resolvePluginProviders.mock.calls.at(0) as unknown as [

129129

ResolvePluginProvidersOptions,

130130

];

131131

expect(pluginProviderOptions?.mode).toBe("setup");

Original file line numberDiff line numberDiff line change

@@ -339,7 +339,7 @@ describe("channels command", () => {

339339

// oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- Test helper lets assertions ascribe written config shape.

340340

function getWrittenConfig<T>(): T {

341341

expect(configMocks.writeConfigFile).toHaveBeenCalledTimes(1);

342-

const [config] = configMocks.writeConfigFile.mock.calls[0] ?? [];

342+

const [config] = configMocks.writeConfigFile.mock.calls.at(0) ?? [];

343343

if (config === undefined) {

344344

throw new Error("expected written channel config");

345345

}

Original file line numberDiff line numberDiff line change

@@ -38,7 +38,7 @@ function logLine(params: { module: string; message: string }) {

3838

}

3939
4040

function readJsonPayload() {

41-

return JSON.parse(String(runtime.log.mock.calls[0]?.[0])) as {

41+

return JSON.parse(String(runtime.log.mock.calls.at(0)?.[0])) as {

4242

file: string;

4343

channel: string;

4444

lines: Array<{ message: string }>;

Original file line numberDiff line numberDiff line change

@@ -243,7 +243,7 @@ describe("channelsStatusCommand SecretRef fallback flow", () => {

243243
244244

expect(errors.join("\n")).toContain("Gateway not reachable");

245245

expect(mocks.resolveCommandConfigWithSecrets).toHaveBeenCalledOnce();

246-

const configResolutionRequest = mocks.resolveCommandConfigWithSecrets.mock.calls[0]?.[0];

246+

const configResolutionRequest = mocks.resolveCommandConfigWithSecrets.mock.calls.at(0)?.[0];

247247

expect(configResolutionRequest?.commandName).toBe("channels status");

248248

expect(configResolutionRequest?.mode).toBe("read_only_status");

249249

expect(