Repository navigation
fix(slack): honor configured silence for implicit thread follow-ups - #164877
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesImplicit thread follow-ups can honor the existing group-silence setting while explicit requests retain required replies. Example: An unmentioned Slack reply to the bot returns NO_REPLY with surfaces.slack.silentReply.group set to "allow".
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review This PR fixes a current-main classification bug with a focused change and sufficient behavior proof; no actionable patch defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherChannel plugins supply mention provenance to the shared reply-expectation owner, whose required or optional classification drives completion and missing-answer recovery. flowchart TD
A[Slack or Telegram input] --> B[Channel admission and mention provenance]
B --> C[Shared reply expectation]
D[Existing group silence policy] --> C
C --> E[Agent completion]
E --> F[Silent completion or required reply recovery]
Technical reviewBest possible solution: Land the shared-owner correction as a partial fix without changing explicit-mention policy. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically classifies implicit-thread mentions as required under group allow, and the supplied baseline captures show the resulting retry and failure notice; no target code was executed during this review. Is this the best way to solve the issue? Changing the existing input-policy owner addresses the cause and serves both Slack and Telegram without a delivery filter, competing policy, or new setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 221cb55583d5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +32, Docs 0. Total +34 across 3 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 13, 2026, 8:20 PM ET / October 14, 2026, 00:20 UTC (Revision 5). |
|
Automated author follow-up checkpoint:
For |
|
Exact-head author follow-up for the proof request in #164877 (comment). Built and executed the actual Gateway/core at unchanged head Reproduce on the pinned checkout with Node 24.19.0 / pnpm 12.5.1: pnpm install --frozen-lockfile
pnpm build
node --import ./scripts/tsx.mjs .artifacts/silence-proof/operator.tsSave the verbatim operator below at Successful run receipt (visible calls and same-thread readback checked separately from audit resultCount){
"passed": true,
"sourceHead": "7b7d0b4ac88c73f422693d48bc14e60fbb3099ed",
"operatorSha256": "8584e76ad6d0ea9fee248551ff36b484b791a6332ddf44cffa0914838bc9fe8b",
"runtimeHashesBefore": [
{
"path": "dist/source-reply-delivery-mode-EiCkRAJg.mjs",
"sha256": "6554a6a8ba8e867d3e9046ca3fc651a72c2a98b7e2801ac41fddabf735eec920"
},
{
"path": "dist/extensions/slack/index.js",
"sha256": "063c52dcf87a3efe50e04cb33b9da12d20ea57bc5acc065dcb213fde2ff6a2a3"
}
],
"runtimeHashesAfter": [
{
"path": "dist/source-reply-delivery-mode-EiCkRAJg.mjs",
"sha256": "6554a6a8ba8e867d3e9046ca3fc651a72c2a98b7e2801ac41fddabf735eec920"
},
{
"path": "dist/extensions/slack/index.js",
"sha256": "063c52dcf87a3efe50e04cb33b9da12d20ea57bc5acc065dcb213fde2ff6a2a3"
}
],
"implicit": {
"admitted": true,
"mentionSource": "implicit_thread",
"modelReturned": "NO_REPLY",
"modelRequests": 1,
"visiblePosts": 0,
"processedInputAndInactiveHistoryObserved": true,
"processed": {
"action": "message.inbound.processed",
"status": "succeeded",
"outcome": "completed",
"resultCount": 0
}
},
"explicit": {
"admitted": true,
"mentionSource": "explicit_bot",
"modelReturned": "NO_REPLY",
"modelRequests": 2,
"visiblePosts": 1,
"visibleReply": "\u26a0\ufe0f Agent couldn't generate a response. Please try again.",
"processed": {
"action": "message.inbound.processed",
"status": "failed",
"outcome": "failed",
"resultCount": 1
}
},
"sameThreadReadback": true,
"requests": [
{
"kind": "root",
"mentionSource": "explicit_bot",
"response": "SILENCE_PROOF_ROOT"
},
{
"kind": "implicit",
"mentionSource": "implicit_thread",
"response": "NO_REPLY"
},
{
"kind": "explicit",
"mentionSource": "explicit_bot",
"response": "NO_REPLY"
},
{
"kind": "explicit",
"mentionSource": "explicit_bot",
"response": "NO_REPLY"
}
],
"posts": [
{
"channel": "C12345678",
"threadTs": "1700000000.000100",
"text": "SILENCE_PROOF_ROOT"
},
{
"channel": "C12345678",
"threadTs": "1700000000.000100",
"text": "\u26a0\ufe0f Agent couldn't generate a response. Please try again."
}
],
"visibleWrites": [
{
"method": "chat.postMessage",
"text": "SILENCE_PROOF_ROOT"
},
{
"method": "chat.postMessage",
"text": "\u26a0\ufe0f Agent couldn't generate a response. Please try again."
}
],
"cleanupComplete": true,
"cleanupErrors": []
}Verbatim operator — SHA-256 8584e76ad6d0ea9fee248551ff36b484b791a6332ddf44cffa0914838bc9fe8bimport assert from 'node:assert/strict';
import {execFileSync} from 'node:child_process';
import {createHash, createHmac, randomUUID} from 'node:crypto';
import fs from 'node:fs/promises';
import {createServer} from 'node:http';
import path from 'node:path';
import {setTimeout as sleep} from 'node:timers/promises';
import {startOpenClawCrablineAdapter} from '@openclaw/crabline';
import {createQaGatewayChild} from '../../extensions/qa-lab/api.js';
import {listSessionEntriesReadOnly} from '../../src/config/sessions/session-accessor.js';
import {writeOpenAiResponsesText} from '../../test/helpers/openai-responses-sse.js';
import {stopQaGatewayFixture} from '../../test/helpers/qa-gateway-cleanup.js';
const repoRoot=process.cwd();
const taskRoot=path.dirname(repoRoot);
const evidencePath=path.join(taskRoot,'verdict.json');
const markers={root:'SILENCE_PROOF_ROOT',implicit:'SILENCE_PROOF_IMPLICIT',explicit:'SILENCE_PROOF_EXPLICIT'};
const posts:Array<{channel:unknown;threadTs:unknown;text:unknown}>=[];
const visibleWrites:Array<{method:string;text:unknown}>=[];
const requests:Array<{kind:string;mentionSource:string|undefined;response:string}>=[];
const providerErrors:string[]=[];
const owner=createQaGatewayChild();
let adapter:Awaited<ReturnType<typeof startOpenClawCrablineAdapter>>|undefined;
let provider:ReturnType<typeof createServer>|undefined;
const verdict:Record<string,unknown>={kind:'actual Gateway/core with simulated Slack and Responses HTTP',liveSlack:false,coreDispatchMocked:false,passed:false,sourceHead:execFileSync('git',['rev-parse','HEAD'],{encoding:'utf8'}).trim()};
async function waitFact<T>(read:()=>Promise<T|undefined>|T|undefined,label:string,ms=60000):Promise<T>{
const deadline=Date.now()+ms;
while(Date.now()<deadline){const value=await read();if(value!==undefined)return value;await sleep(50);}
throw new Error(`Timed out: ${label}`);
}
let error:unknown;
const cleanupErrors:string[]=[];
try{
assert.equal(verdict.sourceHead,'7b7d0b4ac88c73f422693d48bc14e60fbb3099ed');
verdict.sourceOwners=await Promise.all(['src/auto-reply/reply/source-reply-delivery-mode.ts','extensions/slack/src/monitor/message-handler/prepare.ts','extensions/slack/src/monitor/message-handler/dispatch.ts'].map(async file=>({path:file,sha256:createHash('sha256').update(await fs.readFile(path.join(repoRoot,file))).digest('hex')})));
verdict.operatorSha256=createHash('sha256').update(await fs.readFile(import.meta.filename)).digest('hex');
const runtimeFiles=['dist/source-reply-delivery-mode-EiCkRAJg.mjs','dist/extensions/slack/index.js'];
async function runtimeHashes(){return await Promise.all(runtimeFiles.map(async file=>({path:file,sha256:createHash('sha256').update(await fs.readFile(path.join(repoRoot,file))).digest('hex')})));}
verdict.runtimeHashesBefore=await runtimeHashes();verdict.buildInfo=JSON.parse(await fs.readFile(path.join(repoRoot,'dist/build-info.json'),'utf8'));assert.equal((verdict.buildInfo as any).commit,verdict.sourceHead);
adapter=await startOpenClawCrablineAdapter({channel:'slack',onEvent(event){
if(event.type==='api'&&/\/api\/chat\.(postMessage|postEphemeral|update|startStream|appendStream|stopStream)$/.test(event.path))visibleWrites.push({method:event.path.split('/').at(-1)!,text:(event.body as any).text});
if(event.type==='api'&&event.path.endsWith('/api/chat.postMessage')){
const body=event.body as Record<string,unknown>;
posts.push({channel:body.channel,threadTs:body.thread_ts,text:body.text});
}
}});
const slack=adapter;
assert.equal(slack.manifest.provider,'slack');
const manifest=slack.manifest as Extract<typeof slack.manifest,{provider:'slack'}>;
const auth=await slack.probe() as Record<string,unknown>;
assert.equal(typeof auth.user_id,'string');
const botUserId=String(auth.user_id);
provider=createServer((req,res)=>{void(async()=>{
if(req.method==='GET'&&req.url==='/v1/models'){res.writeHead(200,{'content-type':'application/json'});res.end(JSON.stringify({data:[{id:'gpt-5.6-luna',object:'model'}]}));return;}
assert.equal(req.method,'POST');assert.equal(req.url,'/v1/responses');
const chunks:Buffer[]=[];let bytes=0;
for await(const chunk of req){const b=Buffer.from(chunk);bytes+=b.length;assert.ok(bytes<16*1024*1024);chunks.push(b);}
const input=JSON.stringify(JSON.parse(Buffer.concat(chunks).toString()).input);
const kind=input.includes(markers.explicit)?'explicit':input.includes(markers.implicit)?'implicit':'root';
assert.ok(input.includes(markers[kind as keyof typeof markers]));
const mentionSource=[...input.matchAll(/mention_source[^a-z]+(implicit_thread|explicit_bot)/g)].at(-1)?.[1];
const response=kind==='root'?markers.root:'NO_REPLY';
requests.push({kind,mentionSource,response});assert.ok(requests.length<=12,'unexpected retry loop');
writeOpenAiResponsesText(res,{text:response,messageId:`msg_${randomUUID()}`,responseId:`resp_${randomUUID()}`});
})().catch(e=>{providerErrors.push(String(e));res.destroy(e instanceof Error?e:new Error(String(e)));});});
await new Promise<void>((resolve,reject)=>{provider!.once('error',reject);provider!.listen(0,'127.0.0.1',resolve);});
const address=provider.address();assert.ok(address&&typeof address!=='string');
const gateway=await owner.start({repoRoot,command:{executablePath:process.execPath,argsPrefix:[path.join(repoRoot,'openclaw.mjs')],argsSuffix:['--verbose'],cwd:repoRoot,tempParentDir:taskRoot,usePackagedPlugins:true},providerBaseUrl:`http://127.0.0.1:${address.port}/v1`,providerMode:'mock-openai',primaryModel:'mock-openai/gpt-5.6-luna',alternateModel:'mock-openai/gpt-5.6-luna',controlUiEnabled:false,transportBaseUrl:manifest.endpoints.apiRoot,transport:{requiredPluginIds:slack.requiredPluginIds,createGatewayConfig:()=>slack.createGatewayConfig()},runtimeEnvPatch:slack.createProviderReadinessEnv({}),mutateConfig(config){return {...config,surfaces:{...config.surfaces,slack:{...config.surfaces?.slack,silentReply:{group:'allow'}}},logging:{...config.logging,audit:{enabled:true,messages:'all'},level:'debug',consoleLevel:'info',file:path.join(taskRoot,'runtime.jsonl')},messages:{...config.messages,ackReaction:'',statusReactions:{enabled:false},inbound:{debounceMs:0},queue:{mode:'followup'}},agents:{...config.agents,defaults:{...config.agents?.defaults,typingMode:'never'}},channels:{...config.channels,slack:{...config.channels?.slack,replyToMode:'all',streaming:{mode:'off'},implicitMentions:{threadParticipation:true},channels:{...config.channels?.slack?.channels,'*':{requireMention:true}}}}};}});
assert.ok(gateway.pid&&gateway.pid!==process.pid);verdict.gatewayProcess=true;
verdict.runtimeIdentity=gateway.evidenceIdentity;
async function readProcessed(){const page=await gateway.call('audit.activity.list',{kind:'message',direction:'inbound',channel:'slack',agentId:'qa',limit:100}) as any;return page.events.filter((e:any)=>e.action==='message.inbound.processed');}
const initialProcessed=await readProcessed();assert.equal(initialProcessed.length,0);
async function waitProcessed(count:number){return await waitFact(async()=>{const events=await readProcessed();return events.length>=count?events:undefined;},`core dispatch completion ${count}`);}
await waitFact(async()=>{const status=await gateway.call('channels.status',{probe:false}) as any;return status.channelAccounts?.slack?.some((a:any)=>a.running===true)?true:undefined;},'Slack ready');
async function deliver(text:string,threadId?:string){
const inbound=slack.createInbound({input:{conversation:{id:'C12345678',kind:'group'},senderId:'U12345678',text,...(threadId?{threadId}:{})}});
const seeded=await fetch(inbound.providerUrl,{method:'POST',headers:inbound.providerHeaders,body:JSON.stringify(inbound.providerBody)});assert.ok(seeded.ok);
const payload=await seeded.json() as any;const envelope=payload.event;const event=envelope.event;
const body=JSON.stringify(envelope);const timestamp=String(Math.floor(Date.now()/1000));
const signature=createHmac('sha256',manifest.signingSecret).update(`v0:${timestamp}:${body}`).digest('hex');
const accepted=await fetch(`${gateway.baseUrl}/slack/events`,{method:'POST',headers:{'content-type':'application/json','x-slack-request-timestamp':timestamp,'x-slack-signature':`v0=${signature}`},body});assert.ok(accepted.ok);return event;
}
const root=await deliver(`<@${botUserId}> ${markers.root}`);assert.equal(typeof root.ts,'string');
await waitFact(()=>posts.some(p=>p.text===markers.root)?true:undefined,'root reply');
const rootProcessed=await waitProcessed(1);assert.equal(rootProcessed.length,1);assert.equal(rootProcessed[0].status,'succeeded');assert.equal(rootProcessed[0].outcome,'completed');assert.equal(rootProcessed[0].resultCount,1);
const sessions=listSessionEntriesReadOnly({agentId:'qa',env:gateway.runtimeEnv,readConsistency:'latest'}).filter(s=>s.sessionKey.endsWith(`:thread:${root.ts}`));assert.equal(sessions.length,1);
const sessionKey=sessions[0]!.sessionKey;
const implicit=await deliver(markers.implicit,root.ts);assert.equal(implicit.thread_ts,root.ts);
const implicitProcessed=await waitProcessed(2);assert.equal(implicitProcessed.length,2);
const implicitTerminal=implicitProcessed.find((e:any)=>e.resultCount===0);assert.ok(implicitTerminal);assert.equal(implicitTerminal.status,'succeeded');assert.equal(implicitTerminal.outcome,'completed');
await waitFact(async()=>{const history=await gateway.call('chat.history',{sessionKey,limit:30}) as any;const messages=history.messages??[];const ownInputObserved=JSON.stringify(messages).includes(markers.implicit);verdict.implicitHistory={hasActiveRun:history.sessionInfo?.hasActiveRun,ownInputObserved,silentTokenVisible:JSON.stringify(messages).includes('NO_REPLY')};return history.sessionInfo?.hasActiveRun===false&&ownInputObserved?true:undefined;},'implicit processed input and inactive history');
const implicitRequest=requests.filter(r=>r.kind==='implicit');assert.equal(implicitRequest.length,1);assert.equal(implicitRequest[0]!.mentionSource,'implicit_thread');assert.equal(posts.length,1);
assert.equal(visibleWrites.length,1);
verdict.implicit={admitted:true,mentionSource:implicitRequest[0]!.mentionSource,modelReturned:'NO_REPLY',modelRequests:1,visiblePosts:0,processedInputAndInactiveHistoryObserved:true,processed:{action:implicitTerminal.action,status:implicitTerminal.status,outcome:implicitTerminal.outcome,resultCount:implicitTerminal.resultCount}};
const explicit=await deliver(`<@${botUserId}> ${markers.explicit}`,root.ts);assert.equal(explicit.thread_ts,root.ts);
await waitFact(()=>posts.length>=2?true:undefined,'explicit required reply after NO_REPLY',90000);
const finalProcessed=await waitProcessed(3);assert.equal(finalProcessed.length,3);
assert.ok(finalProcessed.every((e:any)=>Number.isInteger(e.sequence)));assert.equal(new Set(finalProcessed.map((e:any)=>e.sequence)).size,3);
const oldSeqs=new Set(implicitProcessed.map((e:any)=>e.sequence));const explicitTerminal=finalProcessed.find((e:any)=>!oldSeqs.has(e.sequence));assert.ok(explicitTerminal);assert.equal(explicitTerminal.status,'failed');assert.equal(explicitTerminal.outcome,'failed');assert.equal(explicitTerminal.resultCount,1);
await waitFact(async()=>{const history=await gateway.call('chat.history',{sessionKey,limit:30}) as any;return history.sessionInfo?.hasActiveRun===false?true:undefined;},'explicit inactive terminal');
const explicitRequests=requests.filter(r=>r.kind==='explicit');assert.ok(explicitRequests.length>=1);assert.equal(explicitRequests[0]!.mentionSource,'explicit_bot');
assert.equal(posts.length,2);assert.equal(posts[1]!.text,"⚠️ Agent couldn't generate a response. Please try again.");assert.equal(posts[1]!.threadTs,root.ts);
// Core processed audit and inactive terminal history bind each phase, not a quiet window.
assert.equal(requests.filter(r=>r.kind==='implicit').length,1);
const replyState=await (await fetch(`${manifest.endpoints.apiRoot}conversations.replies`,{method:'POST',headers:{authorization:`Bearer ${manifest.botToken}`,'content-type':'application/json'},body:JSON.stringify({channel:'C12345678',ts:root.ts})})).json() as any;assert.equal(replyState.ok,true);
const botReplies=replyState.messages.filter((m:any)=>m.user===botUserId||m.bot_id);assert.equal(botReplies.length,2);assert.equal(botReplies[0].text,markers.root);assert.equal(botReplies[1].text,posts[1]!.text);
assert.equal(visibleWrites.length,2);assert.ok(visibleWrites.every(w=>w.method==='chat.postMessage'));
assert.deepEqual(providerErrors,[]);
verdict.explicit={admitted:true,mentionSource:explicitRequests[0]!.mentionSource,modelReturned:'NO_REPLY',modelRequests:explicitRequests.length,visiblePosts:1,visibleReply:String(posts[1]!.text),processed:{action:explicitTerminal.action,status:explicitTerminal.status,outcome:explicitTerminal.outcome,resultCount:explicitTerminal.resultCount}};
assert.equal(new Set(finalProcessed.map((e:any)=>e.messageRef)).size,3);
verdict.terminalAudits=finalProcessed.map((e:any)=>({sequence:e.sequence,eventId:e.eventId,runId:e.runId,messageRef:e.messageRef,action:e.action,status:e.status,outcome:e.outcome,resultCount:e.resultCount}));
verdict.runtimeHashesAfter=await runtimeHashes();assert.deepEqual(verdict.runtimeHashesAfter,verdict.runtimeHashesBefore);
verdict.sameThreadReadback=true;verdict.requests=requests;verdict.posts=posts;verdict.visibleWrites=visibleWrites;verdict.passed=true;
}catch(e){error=e;verdict.failure=e instanceof Error?e.message:String(e);verdict.requests=requests;verdict.posts=posts;}
finally{
for(const cleanup of [()=>stopQaGatewayFixture(owner,{keepTemp:false}),async()=>{if(provider){provider.closeAllConnections();await new Promise<void>((resolve,reject)=>provider!.close(e=>e?reject(e):resolve()));}},()=>adapter?.close()]){try{await cleanup();}catch(e){cleanupErrors.push(String(e));}}
verdict.cleanupComplete=cleanupErrors.length===0;verdict.cleanupErrors=cleanupErrors;
await fs.writeFile(evidencePath,JSON.stringify(verdict,null,2)+'\n');
}
console.log(JSON.stringify(verdict,null,2));
if(error||cleanupErrors.length)process.exitCode=1;@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer override — the Case: Replayed the exact case in isolated Node 24 Docker on PR head Command on each source tree: OPENCLAW_E2E_SKIP_BUILD=1 OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=1 \
pnpm exec vitest run --config test/vitest/vitest.e2e.config.ts \
src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts \
-t 'tombstones a redelivered source whose recovery claim is already terminal'The assertion fails in session mutation authorization before |
|
Added exact-head Telegram Test Server userbot proof to the PR body: implicit reply-to-bot is silent on head and emits the failure notice on the owner-revert baseline; explicit mentions retain the failure on both. Native timelines, primary-model request counts, terminal outcomes, and cleanup are recorded. @clawsweeper re-review |
|
Landed in 8b5ee88. Thanks @shannon0430! Verified on Slack and the Telegram Test Server: implicit thread follow-ups now stay silent when group silence is allowed, and explicit mentions still require a reply. |
…penclaw#164877) fix(channels): let implicit thread follow-ups stay silent when group silence is allowed With silentReply.group=allow, a follow-up in a bot thread that didn't mention the bot (for example, a reply to the bot's message) was still treated as requiring a reply. A NO_REPLY answer then produced a missing-reply failure notice. Implicit thread follow-ups now follow the group silence policy. Explicit mentions and commands still require a reply. Proof: built Gateway with scripted NO_REPLY and silentReply.group=allow, on Slack (Socket Mode/Web API harness) and on the Telegram Test Server with a real userbot. On main, an implicit reply-to-bot produced a failure notice; with this change it completes silently. Explicit mention and native command controls keep their failure handling. Thanks @shannon0430. Co-authored-by: Ayaan Zaidi <[email protected]>
|
Distribution follow-up (2026-10-19): the merged fix is present on
Could the release owner include this already-merged fix in an appropriate forthcoming stable release (or explicitly identify the release line that will carry it)? We will verify the published package before retiring downstream mitigation; merge status alone is not distribution evidence. No replacement of the immutable 2026.10.5 package is requested. 2026-10-28: official 2026.10.8 still excludes the merged behaviorThe same release-line inclusion question remains on the newer immutable stable artifact; this is not a request for another source fix or private package.
Please include the already-merged change in an appropriate future stable cut, or identify the intended release line. No replacement of an immutable published artifact or default-policy change is requested. 2026-10-30: official 2026.10.9 distribution checkThe newly published immutable
2026-11-02: release-line cause and official beta inclusion confirmedThe missing behavior in stable 2026.10.9 is explained by the selected release source, rather than the merged fix disappearing on main:
I also verified the already-published official 2026.10.10-beta.5 Core and Slack tarballs, using registry SHA-512 SRI/SHA-1 checks and isolated Node 24.22.1 with install scripts disabled:
The stable latest channel still selects 2026.10.9. Could the release owner confirm the intended next stable cut retaining this already-shipped beta fix, through the normal stable qualification/promotion path? This supplies the specific release-line and beta evidence for the existing inclusion request; it does not request replacement of immutable 10.9 artifacts, a new default policy, or a release-gate waiver. 2026-11-03: inclusion confirmed in official npm stable 2026.10.10The official npm
This satisfies the existing stable-distribution inclusion request for #164877's two behaviors. No further duplicate source fix or backport is requested here. The other required policy cases still prevent full compatibility acceptance; the old10.9 package and beta.5 were not retested, and no full release or employee acceptance is claimed. This is an npm stable publication result; the GitHub Releases |
Backport of upstream openclaw#164877 (merged as 8b5ee88) onto custom-build (v2026.10.3 base). Slack admits follow-ups in a thread the bot joined, or replies to the bot, as WasMentioned: true with MentionSource: "implicit_thread". Since 10.3 a required group turn cannot be waived by NO_REPLY, so those follow-ups were forced to answer: empty-response retry, model fallback, then "Agent couldn't generate a response" posted into the thread. With silentReply.group "allow", implicit thread follow-ups are now optional; explicit mentions, native commands, direct chats and unknown mention provenance keep their required replies. Fleet impact: jimi (Harbs) answered NO_REPLY to another bot's messages in a shared Slack thread and the runtime surfaced the error notice ~8 times a day. Fork-only backport (hanamizuki/openclaw custom-build). Drop this commit when rebasing onto a release that contains openclaw#164877 (content diff becomes empty).
Related: #141556. Complements #141957; bot admission is separate (#160750 / #160752).
What Problem This Solves
Fixes unwanted missing-reply notices when an unmentioned Slack thread follow-up returns
NO_REPLYdespitesurfaces.slack.silentReply.group: "allow".User Impact
Implicit reply-to-bot and participated-thread follow-ups can honor configured group silence. Explicit mentions, native slash commands, direct chats, unknown mention provenance, and default/disallowed group silence retain required replies. No configuration or stored-data migration.
Why This Change Was Made
Slack records implicit thread admission as
WasMentioned: truewithMentionSource: "implicit_thread". The existing requiredness owner now distinguishes that from an explicit request before applying the existing silence policy.#141957 preserves authored silence in the output collector; it does not change this input classification and cannot make a required implicit-thread turn optional. This PR does not alter its scope.
Thanks to @shannon0430 for the fix and @zabealbe for the report. Sarah's #164848 changes another paragraph in the shared documentation; its tool-history and startup-context behavior is unchanged. No overlap with Pash/Sarah behavior changes.
Evidence
Built Gateway and bundled Slack plugin in a secretless Node 24 Docker container, using a mock Slack Web API/Socket Mode boundary and a scripted Responses model returning
NO_REPLY. Baseline rebuilt with the unchanged expectation owner at344b71032447521feaff383f619667801dff6d83; all other production sources in that comparison were identical. After integrating current main, the candidate was rebuilt and the same three cases rerun atd07875a25badfee5d5a0878e27605ceb3caa9b04./openclawinvocationCaptured boundary output (synthetic identifiers omitted):
The implicit completion was observed in the Gateway lifecycle log, not inferred only from a quiet interval. Explicit mention failure was posted to the original thread; the native slash failure used its response URL. Both are expected negative controls, not successful-answer evidence. This is isolated channel-boundary proof, not live Slack or real-provider proof.
Focused checks: 24 tests passed across the reply expectation and existing failure-reply suites (9.31 seconds Vitest duration). Reverting only the owner made the implicit-allow regression fail (
expected required to be optional), while the six boundary cases passed. Changed TypeScript passed Oxlint; the regression file was formatted with Oxfmt.Simplified contributor coverage from 86 to 32 lines: removed the synthetic admission pipeline and duplicated downstream completion assertions, retaining the actual policy regression and distinct safeguards. Against the merge base: production +3/-1, tests +32/-0, documentation +1/-1. The two net production lines carry and consume existing provenance in the existing owner; no new mechanism is needed.
Telegram Test Server proof
Also ran the built Gateway and Telegram plugin at this exact head through the checkout's Telegram E2E runner, with a Convex-leased QA user and SUT bot, actual TDLib Test Server delivery,
surfaces.telegram.silentReply.group: "allow", and a scripted Responses provider. A proof-only recorder extension replied to the observed bot-authored root (its TDLib message identity was checked), rather than replying to the user's seed. The baseline rebuilt only the unchanged main expectation owner.Captured, redacted native timeline:
Both 105-second recordings completed. Request counts above are the primary agent's
gpt-5.5Responses requests, correlated with its three inbound turns; auxiliary memory requests are excluded. The implicit head turn reached the model and completed, so its silence was not a dropped input. The successful proof lease was released, private credential and TDLib state removed, and both Gateways stopped. Raw identities remain only in private proof; no live production Telegram or real model-provider claim.CI on this head is blocked by an inherited failure in checks-node-changed-3:
tombstones a redelivered source whose recovery claim is already terminalreceivesUNAVAILABLE: Session facts are unavailable; retry the requestat the session-authorization assertion. The same focused case fails identically on clean mainc8111aba15eand this head, before the reply runner is invoked. No CI rerun or replacement push was requested.Merge danger: two-way door; reverting fully restores prior behavior. Blast radius is group/channel requests with implicit-thread provenance and an explicitly allowed silence policy; explicit requests and other channels' ordinary mention classifications remain unchanged.