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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
美团技术团队
D
Docker
WordPress大学
WordPress大学
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Y
Y Combinator Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

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 auto-reply dispatch helpers · openclaw/ope...
steipete · 2026-06-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1 +1,2 @@

1+

/** Runtime facade for fast abort handling used by reply dispatch. */

12

export { formatAbortReplyText, tryFastAbortFromMessage } from "./abort.js";

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ import { getRuntimeAuthForModel } from "../../plugins/runtime/runtime-model-auth

1111

const DEFAULT_MAX_LABEL_LENGTH = 128;

1212

const TIMEOUT_MS = 15_000;

1313
14+

/** Inputs for generating a short conversation label from the active model. */

1415

export type ConversationLabelParams = {

1516

userMessage: string;

1617

prompt: string;

@@ -38,6 +39,7 @@ function extractSimpleCompletionError(result: {

3839

return result.errorMessage?.trim() || "unknown error";

3940

}

4041
42+

/** Generates a bounded human-readable label for a session, or null on failure. */

4143

export async function generateConversationLabel(

4244

params: ConversationLabelParams,

4345

): Promise<string | null> {

@@ -70,6 +72,7 @@ export async function generateConversationLabel(

7072

const controller = new AbortController();

7173

const timeout = setTimeout(() => controller.abort(), TIMEOUT_MS);

7274

try {

75+

// Label generation should never block normal reply handling for long.

7376

const result = await completeSimple(

7477

completionModel,

7578

{

Original file line numberDiff line numberDiff line change

@@ -1 +1,2 @@

1+

/** Runtime facade for persisting inline directive state after parsing. */

12

export { persistInlineDirectives } from "./directive-handling.persist.js";

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,4 @@

1+

/** Runtime media-understanding dependencies used by ACP reply dispatch. */

12

export { applyMediaUnderstanding } from "../../media-understanding/apply.js";

23

export { MediaAttachmentCache } from "../../media-understanding/attachments.js";

34

export { normalizeAttachments } from "../../media-understanding/attachments.normalize.js";

Original file line numberDiff line numberDiff line change

@@ -1 +1,2 @@

1+

/** Runtime facade for reading persisted ACP session metadata. */

12

export { readAcpSessionEntry } from "../../acp/runtime/session-meta.js";

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import type { GetReplyOptions } from "../get-reply-options.types.js";

33

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

44

import type { MsgContext } from "../templating.js";

55
6+

/** Reply resolver signature used by dispatchers and tests for dependency injection. */

67

export type GetReplyFromConfig = (

78

ctx: MsgContext,

89

opts?: GetReplyOptions,

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,6 @@

11

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

22
3+

/** Extracts a simple group/channel id from stable group-like source ids. */

34

export function extractSimpleExplicitGroupId(raw: string | undefined | null): string | undefined {

45

const trimmed = normalizeOptionalString(raw) ?? "";

56

if (!trimmed) {

Original file line numberDiff line numberDiff line change

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

33

normalizeOptionalString,

44

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

55
6+

/** Parsed `/plugins` command variants accepted by auto-reply command handling. */

67

export type PluginsCommand =

78

| { action: "list" }

89

| { action: "inspect"; name?: string }

@@ -11,6 +12,7 @@ export type PluginsCommand =

1112

| { action: "disable"; name: string }

1213

| { action: "error"; message: string };

1314
15+

/** Parses a `/plugin` or `/plugins` command into a closed command action. */

1416

export function parsePluginsCommand(raw: string): PluginsCommand | null {

1517

const match = raw.match(/^\/plugins?(?:\s+(.*))?$/i);

1618

if (!match) {

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ import type {

1111

type DispatchReplyContext = MsgContext | FinalizedMsgContext;

1212

type DispatchReplyOptions = Omit<GetReplyOptions, "onBlockReply">;

1313
14+

/** Buffered block dispatcher entry point used by provider reply flows. */

1415

export type DispatchReplyWithBufferedBlockDispatcher = (params: {

1516

ctx: DispatchReplyContext;

1617

cfg: OpenClawConfig;

@@ -19,6 +20,7 @@ export type DispatchReplyWithBufferedBlockDispatcher = (params: {

1920

replyResolver?: GetReplyFromConfig;

2021

}) => Promise<DispatchFromConfigResult>;

2122
23+

/** Plain dispatcher entry point used when block buffering is not needed. */

2224

export type DispatchReplyWithDispatcher = (params: {

2325

ctx: DispatchReplyContext;

2426

cfg: OpenClawConfig;

Original file line numberDiff line numberDiff line change

@@ -1,17 +1,21 @@

11

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

22

import { formatErrorMessage } from "../../infra/errors.js";

33
4+

/** Provider request error classes that get a specialized user-facing reply. */

45

export type ProviderRequestErrorCode = "provider_conversation_state_error";

56
7+

/** Structured provider error classification for reply failure handling. */

68

export type ProviderRequestErrorClassification = {

79

code: ProviderRequestErrorCode;

810

userMessage: string;

911

technicalMessage: string;

1012

};

1113
14+

/** User-facing copy for provider-side broken conversation state. */

1215

export const PROVIDER_CONVERSATION_STATE_ERROR_USER_MESSAGE =

1316

"⚠️ The model provider rejected the conversation state. Please try again, or use /new to start a fresh session.";

1417
18+

/** Classifies provider request failures that are actionable for users. */

1519

export function classifyProviderRequestError(

1620

err: unknown,

1721

): ProviderRequestErrorClassification | undefined {

@@ -26,6 +30,7 @@ export function classifyProviderRequestError(

2630

return undefined;

2731

}

2832
33+

/** Detects provider errors that indicate invalid conversation/tool turn state. */

2934

export function isProviderConversationStateErrorMessage(message: string): boolean {

3035

const lower = normalizeLowercaseStringOrEmpty(message);

3136

return (