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

推荐订阅源

C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
A
About on SuperTechFans
J
Java Code Geeks
量子位
博客园 - 三生石上(FineUI控件)
博客园 - Franky
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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
agents: notify chat exec empty-success completions (#9352...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -28,6 +28,7 @@ Docs: https://docs.openclaw.ai

2828

- iMessage: normalize leading NUL sent-message echo prefixes while preserving interior NUL bytes and the leading attributedBody marker handling from #73942. Carries forward #63581. Thanks @drvoss.

2929

- Discord: give generated auto-thread titles a 60-second timeout and 4,096-token reasoning-model output budget, clamped to the selected model output cap. (#64734) Thanks @hanamizuki.

3030

- Agent, cron, and Gateway runtime: mark active main sessions before restart shutdown aborts, pause yielded subagent runs whose terminal also signals abort, preserve yielded media completions, de-duplicate main-session heartbeat events, expose session identity in runtime prompts, reject unknown OpenAI agent selectors, keep generated media completions and slash-command block replies in WebChat, preserve fresh post-compaction usage while clearing stale usage snapshots, and require admin privileges for HTTP session/model override surfaces. (#91357, #92631, #92146, #91287, #92468, #92510, #91246, #50795, #50845, #82874, #92651, #92646) Thanks @ooiuuii, @openperf, @IWhatsskill, @ZengWen-DT, @zhangguiping-xydt, @Hollychou924, @leno23, and @TurboTheTurtle.

31+

- Agents/exec: default empty-success background completion notices on only for real chat channels, preserving explicit opt-outs and keeping generic providers silent while carrying forward the narrow UX intent from #39726 and #46926. Thanks @Sapientropic and @wenkang-xie.

3132

- Providers and model replay: preserve storeless OpenAI Responses replay compatibility, avoid eager tool streaming for Claude 4.5 in Copilot, honor profile auth for SecretRef model entries, bound model browsing, strip provider prefixes where runtimes need bare IDs, and surface nested embedding fetch failures. (#90706, #75393, #90686, #92247, #92627, #91218, #92628) Thanks @snowzlm, @Kailigithub, @rohitjavvadi, @samson910022, @liuhao1024, @bymle, and @mushuiyu886.

3233

- Memory, state, diagnostics, and config: split header-too-large embedding batches, keep QMD memory search enabled in transient mode, avoid SQLite WAL on NFS volumes, preserve recovery scheduling outside stuck-session warning backoff, and keep shell environment fallbacks contained in config write tests. (#92650, #92618, #92639, #91247, #92752) Thanks @mushuiyu886, @TurboTheTurtle, @849261680, and @gnanam1990.

3334

- Workspace setup state: store setup completion outside the workspace dot directory using an OpenClaw-named root file, migrate valid legacy state forward, and avoid clobbering generic root `workspace-state.json` files for TigerFS-style dot-path compatibility. This Clownfish replacement carries forward the focused #53326 fix idea because the original branch was closed and uneditable. (#53326, #44783, #39446) Thanks @1qh.

Original file line numberDiff line numberDiff line change

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

1111

normalizeOptionalLowercaseString,

1212

normalizeOptionalString,

1313

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

14+

import { normalizeChatChannelId } from "../channels/ids.js";

1415

import {

1516

type ExecAsk,

1617

type ExecHost,

@@ -1205,6 +1206,13 @@ function resolveExecReviewerDefaults(params: { defaults?: ExecToolDefaults; agen

12051206

return agentExec?.reviewer ?? cfg?.tools?.exec?.reviewer;

12061207

}

12071208
1209+

function resolveNotifyOnExitEmptySuccess(defaults?: ExecToolDefaults): boolean {

1210+

if (typeof defaults?.notifyOnExitEmptySuccess === "boolean") {

1211+

return defaults.notifyOnExitEmptySuccess;

1212+

}

1213+

return normalizeChatChannelId(defaults?.messageProvider) !== null;

1214+

}

1215+
12081216

/** Creates an exec tool instance with runtime defaults and approval policy wiring. */

12091217

export function createExecTool(

12101218

defaults?: ExecToolDefaults,

@@ -1248,7 +1256,7 @@ export function createExecTool(

12481256

);

12491257

}

12501258

const notifyOnExit = defaults?.notifyOnExit !== false;

1251-

const notifyOnExitEmptySuccess = defaults?.notifyOnExitEmptySuccess === true;

1259+

const notifyOnExitEmptySuccess = resolveNotifyOnExitEmptySuccess(defaults);

12521260

const notifySessionKey = normalizeOptionalString(defaults?.sessionKey);

12531261

const notifyDeliveryContext = normalizeDeliveryContext({

12541262

channel: defaults?.messageProvider,

Original file line numberDiff line numberDiff line change

@@ -306,7 +306,6 @@ const createNotifyOnExitExecTool = (overrides: Partial<ExecToolConfig> = {}) =>

306306

allowBackground: true,

307307

backgroundMs: 0,

308308

notifyOnExit: true,

309-

notifyOnExitEmptySuccess: true,

310309

sessionKey: DEFAULT_NOTIFY_SESSION_KEY,

311310

...overrides,

312311

});

@@ -527,12 +526,26 @@ type DisallowedElevationCase = LabeledCase & {

527526

expectedOutputIncludes?: string;

528527

};

529528

type NotifyNoopCase = LabeledCase & {

530-

notifyOnExitEmptySuccess: boolean;

529+

defaults?: Partial<ExecToolConfig>;

530+

expectNotification: boolean;

531531

};

532532

const NOOP_NOTIFY_CASES: NotifyNoopCase[] = [

533-

withLabel("default behavior skips no-op completion events", { notifyOnExitEmptySuccess: false }),

533+

withLabel("default behavior skips no-op completion events", { expectNotification: false }),

534+

withLabel("chat providers default no-op completion notifications on", {

535+

defaults: { messageProvider: " Telegram " },

536+

expectNotification: true,

537+

}),

538+

withLabel("explicit false keeps chat provider no-op completions silent", {

539+

defaults: { messageProvider: "telegram", notifyOnExitEmptySuccess: false },

540+

expectNotification: false,

541+

}),

542+

withLabel("generic providers keep no-op completions silent by default", {

543+

defaults: { messageProvider: "generic" },

544+

expectNotification: false,

545+

}),

534546

withLabel("explicitly enabling no-op completion emits completion events", {

535-

notifyOnExitEmptySuccess: true,

547+

defaults: { notifyOnExitEmptySuccess: true },

548+

expectNotification: true,

536549

}),

537550

];

538551

const DISALLOWED_ELEVATION_CASES: DisallowedElevationCase[] = [

@@ -582,11 +595,11 @@ const LONG_LOG_EXPECTATION_CASES: LongLogExpectationCase[] = [

582595

];

583596

const expectNotifyNoopEvents = (

584597

events: string[],

585-

notifyOnExitEmptySuccess: boolean,

598+

expectNotification: boolean,

586599

sessionId: string,

587600

label: string,

588601

) => {

589-

if (!notifyOnExitEmptySuccess) {

602+

if (!expectNotification) {

590603

expect(events, label).toStrictEqual([]);

591604

return;

592605

}

@@ -682,13 +695,13 @@ const runLongLogExpectationCase = async ({

682695

expectTextContainsValues(snapshot.text, mustContain, true);

683696

expectTextContainsValues(snapshot.text, mustNotContain, false);

684697

};

685-

const runNotifyNoopCase = async ({ label, notifyOnExitEmptySuccess }: NotifyNoopCase) => {

686-

const tool = createNotifyOnExitExecTool({ notifyOnExitEmptySuccess });

698+

const runNotifyNoopCase = async ({ label, defaults, expectNotification }: NotifyNoopCase) => {

699+

const tool = createNotifyOnExitExecTool(defaults);

687700
688701

const { sessionId, status } = await runBackgroundCommandToCompletion(tool, COMMAND_NOOP);

689702

expect(status).toBe(PROCESS_STATUS_COMPLETED);

690703

const events = peekSystemEvents(DEFAULT_NOTIFY_SESSION_KEY);

691-

expectNotifyNoopEvents(events, notifyOnExitEmptySuccess, sessionId, label);

704+

expectNotifyNoopEvents(events, expectNotification, sessionId, label);

692705

};

693706
694707

describe("tool descriptions", () => {