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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
量子位
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
爱范儿
爱范儿
博客园 - 【当耐特】
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
博客园 - 叶小钗
博客园_首页
V
Visual Studio Blog
宝玉的分享
宝玉的分享
B
Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
V
V2EX

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
chore(deadcode): remove stale internal reexport shims · o...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

File tree

    • auto-reply/reply/commands-acp

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,6 @@

11

/** Embedded-agent helper barrel for bootstrap, provider error, media, and turn sanitizers. */

2+

export { isModelNotFoundErrorMessage } from "./live-model-errors.js";

3+
24

export {

35

buildBootstrapContextFiles,

46

DEFAULT_BOOTSTRAP_MAX_CHARS,

@@ -26,7 +28,6 @@ export {

2628

isAuthAssistantError,

2729

isAuthErrorMessage,

2830

isAuthPermanentErrorMessage,

29-

isModelNotFoundErrorMessage,

3031

isBillingAssistantError,

3132

extractObservedOverflowTokenCount,

3233

parseApiErrorInfo,

Original file line numberDiff line numberDiff line change

@@ -1724,8 +1724,6 @@ export function isAuthAssistantError(msg: AssistantMessage | undefined): boolean

17241724

return isAuthErrorMessage(msg.errorMessage ?? "");

17251725

}

17261726
1727-

export { isModelNotFoundErrorMessage };

1728-
17291727

function isCliSessionExpiredErrorMessage(raw: string): boolean {

17301728

if (!raw) {

17311729

return false;

Original file line numberDiff line numberDiff line change

@@ -35,10 +35,6 @@ const hookRunnerMocks = vi.hoisted(() => ({

3535

runSubagentEnded: vi.fn(async () => {}),

3636

}));

3737
38-

vi.mock("./tools/agent-step.js", () => ({

39-

readLatestAssistantReply: async () => "done",

40-

}));

41-
4238

const callGatewayMock = getCallGatewayMock();

4339

const RUN_TIMEOUT_SECONDS = 1;

4440
Original file line numberDiff line numberDiff line change

@@ -26,7 +26,6 @@ import * as embeddedRuns from "./embedded-agent-runner/runs.js";

2626

import { testing as subagentAnnounceDeliveryTesting } from "./subagent-announce-delivery.js";

2727

import { runSubagentAnnounceDispatch } from "./subagent-announce-dispatch.js";

2828

import { testing as subagentAnnounceOutputTesting } from "./subagent-announce-output.js";

29-

import * as agentStep from "./tools/agent-step.js";

3029
3130

type AgentCallRequest = {

3231

method?: string;

@@ -131,7 +130,6 @@ const resolveStorePathSpy = vi.spyOn(configSessions, "resolveStorePath");

131130

const resolveMainSessionKeySpy = vi.spyOn(configSessions, "resolveMainSessionKey");

132131

const callGatewaySpy = vi.spyOn(gatewayCall, "callGateway");

133132

const getGlobalHookRunnerSpy = vi.spyOn(hookRunnerGlobal, "getGlobalHookRunner");

134-

const readLatestAssistantReplySpy = vi.spyOn(agentStep, "readLatestAssistantReply");

135133

const isEmbeddedAgentRunActiveSpy = vi.spyOn(embeddedRuns, "isEmbeddedAgentRunActive");

136134

const isEmbeddedAgentRunStreamingSpy = vi.spyOn(embeddedRuns, "isEmbeddedAgentRunStreaming");

137135

const queueEmbeddedAgentMessageWithOutcomeSpy = vi.spyOn(

@@ -425,9 +423,6 @@ describe("subagent announce formatting", () => {

425423

.mockImplementation(

426424

() => hookRunnerMock as unknown as ReturnType<typeof hookRunnerGlobal.getGlobalHookRunner>,

427425

);

428-

readLatestAssistantReplySpy

429-

.mockReset()

430-

.mockImplementation(async (params) => await readLatestAssistantReplyMock(params?.sessionKey));

431426

isEmbeddedAgentRunActiveSpy

432427

.mockReset()

433428

.mockImplementation((sessionId) => embeddedRunMock.isEmbeddedAgentRunActive(sessionId));

Original file line numberDiff line numberDiff line change

@@ -21,7 +21,6 @@ const resolveAgentIdFromSessionKeyMock = vi.fn((sessionKey: string) => {

2121

});

2222

const resolveStorePathMock = vi.fn((_store: unknown, _options: unknown) => "/tmp/sessions.json");

2323

const resolveMainSessionKeyMock = vi.fn((_cfg: unknown) => "agent:main:main");

24-

const readLatestAssistantReplyMock = vi.fn(async (_params?: unknown) => "raw subagent reply");

2524

const isEmbeddedAgentRunActiveMock = vi.fn((_sessionId: string) => false);

2625

const queueEmbeddedAgentMessageWithOutcomeMock = vi.fn(

2726

(sessionId: string, _text: string, _options?: unknown): EmbeddedAgentQueueMessageOutcome => ({

@@ -75,10 +74,6 @@ vi.mock("./subagent-announce.runtime.js", () => ({

7574

waitForEmbeddedAgentRunEndMock(sessionId, timeoutMs),

7675

}));

7776
78-

vi.mock("./tools/agent-step.js", () => ({

79-

readLatestAssistantReply: (params?: unknown) => readLatestAssistantReplyMock(params),

80-

}));

81-
8277

vi.mock("./subagent-announce-delivery.runtime.js", () =>

8378

createSubagentAnnounceDeliveryRuntimeMock({

8479

callGateway: (request: unknown) => callGatewayMock(request),

@@ -272,7 +267,6 @@ describe("subagent announce seam flow", () => {

272267

resolveAgentIdFromSessionKeyMock.mockReset().mockImplementation(() => "main");

273268

resolveStorePathMock.mockReset().mockImplementation(() => "/tmp/sessions.json");

274269

resolveMainSessionKeyMock.mockReset().mockImplementation(() => "agent:main:main");

275-

readLatestAssistantReplyMock.mockReset().mockResolvedValue("raw subagent reply");

276270

isEmbeddedAgentRunActiveMock.mockReset().mockReturnValue(false);

277271

queueEmbeddedAgentMessageWithOutcomeMock

278272

.mockReset()

Original file line numberDiff line numberDiff line change

@@ -11,8 +11,6 @@ import { retireSessionMcpRuntimeForSessionKey } from "../agent-bundle-mcp-tools.

1111

import { resolveNestedAgentLaneForSession } from "../lanes.js";

1212

import { waitForAgentRunAndReadUpdatedAssistantReply } from "../run-wait.js";

1313
14-

export { readLatestAssistantReply } from "../run-wait.js";

15-
1614

type GatewayCaller = typeof callGateway;

1715

type AgentCommandRunner = typeof import("../../commands/agent.js").agentCommandFromIngress;

1816
Original file line numberDiff line numberDiff line change

@@ -35,8 +35,6 @@ export const ACP_INSTALL_USAGE = "Usage: /acp install";

3535

export const ACP_DOCTOR_USAGE = "Usage: /acp doctor";

3636

export const ACP_SESSIONS_USAGE = "Usage: /acp sessions";

3737

export const ACP_STEER_OUTPUT_LIMIT = 800;

38-

export { SESSION_ID_RE } from "../../../sessions/session-id.js";

39-
4038

export type AcpAction =

4139

| "spawn"

4240

| "cancel"

Original file line numberDiff line numberDiff line change

@@ -1,11 +1,11 @@

11

// Resolves ACP command target sessions from user text and active state.

22

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

33

import { callGateway } from "../../../gateway/call.js";

4+

import { SESSION_ID_RE } from "../../../sessions/session-id.js";

45

import { resolveEffectiveResetTargetSessionKey } from "../acp-reset-target.js";

56

import { resolveRequesterSessionKey } from "../commands-subagents/shared.js";

67

import type { HandleCommandsParams } from "../commands-types.js";

78

import { resolveAcpCommandBindingContext } from "./context.js";

8-

import { SESSION_ID_RE } from "./shared.js";

99
1010

async function resolveSessionKeyByToken(token: string): Promise<string | null> {

1111

const trimmed = token.trim();