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

推荐订阅源

T
Troy Hunt's Blog
F
Fortinet All Blogs
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
The Register - Security
The Register - Security
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
V
Vulnerabilities – Threatpost
S
Securelist
S
SegmentFault 最新的问题
T
Threat Research - Cisco Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Privacy International News Feed
S
Schneier on Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
美团技术团队
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google Online Security Blog
Google Online Security Blog
M
MIT News - Artificial intelligence
U
Unit 42
V
V2EX
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
B
Blog
博客园 - 叶小钗
Attack and Defense Labs
Attack and Defense Labs
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Hacker News: Ask HN
Hacker News: Ask HN
博客园 - Franky
Engineering at Meta
Engineering at Meta
Schneier on Security
Schneier on Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
IT之家
IT之家
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
Martin Fowler
Martin Fowler
SecWiki News
SecWiki News

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
Fix restart sentinel internal continuations (#88161) · openclaw/openclaw@584fa32
joshavant · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -646,10 +646,16 @@ describe("runCliAgent spawn path", () => {

646646

runId: "run-claude-channel-wrapper",

647647

messageChannel: "telegram",

648648

messageProvider: "acp",

649+

currentChannelId: "telegram:-100123:topic:42",

650+

currentThreadTs: "42",

651+

currentMessageId: "reply-message-1",

649652

});

650653
651654

expect(params.messageChannel).toBe("telegram");

652655

expect(params.messageProvider).toBe("acp");

656+

expect(params.currentChannelId).toBe("telegram:-100123:topic:42");

657+

expect(params.currentThreadTs).toBe("42");

658+

expect(params.currentMessageId).toBe("reply-message-1");

653659

expect(params.cwd).toBe("/tmp/task-repo");

654660

});

655661
Original file line numberDiff line numberDiff line change

@@ -779,6 +779,9 @@ export function buildRunClaudeCliAgentParams(params: RunClaudeCliAgentParams): R

779779

images: params.images,

780780

messageChannel: params.messageChannel,

781781

messageProvider: params.messageProvider,

782+

currentChannelId: params.currentChannelId,

783+

currentThreadTs: params.currentThreadTs,

784+

currentMessageId: params.currentMessageId,

782785

};

783786

}

784787
Original file line numberDiff line numberDiff line change

@@ -98,6 +98,9 @@ function createTestMcpLoopbackServerConfig(port: number) {

9898

"x-openclaw-agent-id": "${OPENCLAW_MCP_AGENT_ID}",

9999

"x-openclaw-account-id": "${OPENCLAW_MCP_ACCOUNT_ID}",

100100

"x-openclaw-message-channel": "${OPENCLAW_MCP_MESSAGE_CHANNEL}",

101+

"x-openclaw-current-channel-id": "${OPENCLAW_MCP_CURRENT_CHANNEL_ID}",

102+

"x-openclaw-current-thread-ts": "${OPENCLAW_MCP_CURRENT_THREAD_TS}",

103+

"x-openclaw-current-message-id": "${OPENCLAW_MCP_CURRENT_MESSAGE_ID}",

101104

"x-openclaw-inbound-event-kind": "${OPENCLAW_MCP_INBOUND_EVENT_KIND}",

102105

"x-openclaw-source-reply-delivery-mode": "${OPENCLAW_MCP_SOURCE_REPLY_DELIVERY_MODE}",

103106

},

@@ -1147,6 +1150,9 @@ describe("shouldSkipLocalCliCredentialEpoch", () => {

11471150

cfg: expect.any(Object),

11481151

sessionKey: "agent:main:test",

11491152

messageProvider: undefined,

1153+

currentChannelId: undefined,

1154+

currentThreadTs: undefined,

1155+

currentMessageId: undefined,

11501156

accountId: undefined,

11511157

inboundEventKind: undefined,

11521158

sourceReplyDeliveryMode: undefined,

@@ -1289,11 +1295,17 @@ describe("shouldSkipLocalCliCredentialEpoch", () => {

12891295

config: createCliBackendConfig(),

12901296

currentInboundEventKind: "room_event",

12911297

messageChannel: "telegram",

1298+

currentChannelId: "telegram:-100123:topic:42",

1299+

currentThreadTs: "42",

1300+

currentMessageId: "reply-message-1",

12921301

sourceReplyDeliveryMode: "message_tool_only",

12931302

});

12941303
12951304

expect(context.preparedBackend.env).toMatchObject({

12961305

OPENCLAW_MCP_MESSAGE_CHANNEL: "telegram",

1306+

OPENCLAW_MCP_CURRENT_CHANNEL_ID: "telegram:-100123:topic:42",

1307+

OPENCLAW_MCP_CURRENT_THREAD_TS: "42",

1308+

OPENCLAW_MCP_CURRENT_MESSAGE_ID: "reply-message-1",

12971309

OPENCLAW_MCP_INBOUND_EVENT_KIND: "room_event",

12981310

OPENCLAW_MCP_SOURCE_REPLY_DELIVERY_MODE: "message_tool_only",

12991311

});

Original file line numberDiff line numberDiff line change

@@ -277,6 +277,10 @@ export async function prepareCliRunContext(

277277

OPENCLAW_MCP_ACCOUNT_ID: params.agentAccountId ?? "",

278278

OPENCLAW_MCP_SESSION_KEY: params.sessionKey ?? "",

279279

OPENCLAW_MCP_MESSAGE_CHANNEL: params.messageChannel ?? params.messageProvider ?? "",

280+

OPENCLAW_MCP_CURRENT_CHANNEL_ID: params.currentChannelId ?? "",

281+

OPENCLAW_MCP_CURRENT_THREAD_TS: params.currentThreadTs ?? "",

282+

OPENCLAW_MCP_CURRENT_MESSAGE_ID:

283+

params.currentMessageId != null ? String(params.currentMessageId) : "",

280284

OPENCLAW_MCP_INBOUND_EVENT_KIND: params.currentInboundEventKind ?? "",

281285

OPENCLAW_MCP_SOURCE_REPLY_DELIVERY_MODE: params.sourceReplyDeliveryMode ?? "",

282286

}

@@ -351,6 +355,9 @@ export async function prepareCliRunContext(

351355

cfg: params.config ?? getRuntimeConfig(),

352356

sessionKey: params.sessionKey ?? "",

353357

messageProvider: params.messageChannel ?? params.messageProvider,

358+

currentChannelId: params.currentChannelId,

359+

currentThreadTs: params.currentThreadTs,

360+

currentMessageId: params.currentMessageId,

354361

accountId: params.agentAccountId,

355362

inboundEventKind: params.currentInboundEventKind,

356363

sourceReplyDeliveryMode: params.sourceReplyDeliveryMode,

Original file line numberDiff line numberDiff line change

@@ -70,6 +70,9 @@ export type RunCliAgentParams = {

7070

skillsSnapshot?: SkillSnapshot;

7171

messageChannel?: string;

7272

messageProvider?: string;

73+

currentChannelId?: string;

74+

currentThreadTs?: string;

75+

currentMessageId?: string | number;

7376

agentAccountId?: string;

7477

/** Trusted sender identity bit for channel action auth. */

7578

senderIsOwner?: boolean;

Original file line numberDiff line numberDiff line change

@@ -137,12 +137,15 @@ describe("gateway tool restart continuation", () => {

137137

expect(parameters.properties?.timeoutMs).toMatchObject({ type: "integer", minimum: 1 });

138138

});

139139
140-

it("instructs agents to use continuationMessage when a restart still needs a reply", async () => {

140+

it("instructs agents to use continuationMessage for internal post-restart work", async () => {

141141

const tool = createGatewayTool();

142142
143-

expect(tool.description).toContain("still owe the user a reply");

143+

expect(tool.description).toContain("post-restart work must continue internally");

144+

expect(tool.description).toContain(

145+

"visible follow-up from that turn must use the message tool",

146+

);

144147

expect(tool.description).toContain("continuationMessage");

145-

expect(tool.description).toContain("do not write restart sentinel files directly");

148+

expect(tool.description).toContain("Do not write restart sentinel files directly");

146149

});

147150
148151

it("writes an agentTurn continuation into the restart sentinel", async () => {

@@ -234,9 +237,7 @@ describe("gateway tool restart continuation", () => {

234237

});

235238

});

236239
237-

it("defaults session-scoped restarts to a success continuation", async () => {

238-

const { DEFAULT_RESTART_SUCCESS_CONTINUATION_MESSAGE } =

239-

await import("../../infra/restart-sentinel.js");

240+

it("does not infer a continuation for session-scoped restarts", async () => {

240241

const tool = createGatewayTool({

241242

agentSessionKey: "agent:main:main",

242243

config: {},

@@ -252,10 +253,7 @@ describe("gateway tool restart continuation", () => {

252253
253254

const payload = requireRestartSentinelPayload();

254255

expect(payload.sessionKey).toBe("agent:main:main");

255-

expect(payload.continuation).toEqual({

256-

kind: "agentTurn",

257-

message: DEFAULT_RESTART_SUCCESS_CONTINUATION_MESSAGE,

258-

});

256+

expect(payload.continuation).toBeNull();

259257

});

260258
261259

it("removes the prepared sentinel when restart emission is rejected", async () => {

Original file line numberDiff line numberDiff line change

@@ -369,7 +369,7 @@ export function createGatewayTool(opts?: {

369369

label: "Gateway",

370370

name: "gateway",

371371

description:

372-

"Gateway restart/config/update. Before config edits, use config.schema.lookup with targeted dot path. Prefer config.patch for partial merge; config.apply only full replace. Writes hot-reload or restart as needed. Always pass human `note` for post-restart delivery. If still owe the user a reply, pass one-shot `continuationMessage`; do not write restart sentinel files directly.",

372+

"Gateway restart/config/update. Before config edits, use config.schema.lookup with targeted dot path. Prefer config.patch for partial merge; config.apply only full replace. Writes hot-reload or restart as needed. Always pass human `note` for post-restart delivery. If post-restart work must continue internally, pass one-shot `continuationMessage`; visible follow-up from that turn must use the message tool. Do not write restart sentinel files directly.",

373373

parameters: GatewayToolSchema,

374374

execute: async (_toolCallId, args) => {

375375

const params = args as Record<string, unknown>;

Original file line numberDiff line numberDiff line change

@@ -2015,6 +2015,14 @@ export async function runAgentTurnWithFallback(params: {

20152015

originatingChannel: params.followupRun.originatingChannel,

20162016

provider: params.sessionCtx.Provider,

20172017

});

2018+

const cliCurrentThreadId =

2019+

params.followupRun.originatingThreadId ?? params.sessionCtx.MessageThreadId;

2020+

const isRestartSentinelContinuation =

2021+

params.sessionCtx.InputProvenance?.kind === "internal_system" &&

2022+

params.sessionCtx.InputProvenance.sourceTool === "restart-sentinel";

2023+

const cliCurrentMessageId = isRestartSentinelContinuation

2024+

? params.sessionCtx.ReplyToId

2025+

: (params.sessionCtx.MessageSidFull ?? params.sessionCtx.MessageSid);

20182026

const result = await agentTurnTiming.measure("cli_run", () =>

20192027

runCliAgentWithLifecycle({

20202028

runId,

@@ -2107,6 +2115,13 @@ export async function runAgentTurnWithFallback(params: {

21072115

skillsSnapshot: params.followupRun.run.skillsSnapshot,

21082116

messageChannel: params.followupRun.originatingChannel ?? undefined,

21092117

messageProvider: hookMessageProvider,

2118+

currentChannelId:

2119+

params.followupRun.originatingTo ??

2120+

params.sessionCtx.OriginatingTo ??

2121+

params.sessionCtx.To,

2122+

currentThreadTs:

2123+

cliCurrentThreadId != null ? String(cliCurrentThreadId) : undefined,

2124+

currentMessageId: cliCurrentMessageId,

21102125

agentAccountId: params.followupRun.run.agentAccountId,

21112126

senderIsOwner: params.followupRun.run.senderIsOwner,

21122127

disableTools: params.opts?.disableTools,

Original file line numberDiff line numberDiff line change

@@ -309,4 +309,63 @@ describe("agent-runner-utils", () => {

309309

expect(context.currentChannelId).toBe("channel:123456789012345678");

310310

expect(context.currentMessageId).toBe("msg-9");

311311

});

312+
313+

it("does not expose restart-sentinel synthetic ids as message-tool reply targets", () => {

314+

hoisted.getChannelPluginMock.mockReturnValue({

315+

threading: {

316+

buildToolContext: ({

317+

context,

318+

}: {

319+

context: { To?: string; MessageThreadId?: string | number };

320+

}) => ({

321+

currentChannelId: context.To,

322+

currentThreadTs:

323+

context.MessageThreadId != null ? String(context.MessageThreadId) : undefined,

324+

}),

325+

},

326+

});

327+
328+

const context = buildThreadingToolContext({

329+

sessionCtx: {

330+

Provider: "webchat",

331+

OriginatingChannel: "telegram",

332+

OriginatingTo: "telegram:-1003841603622:topic:928",

333+

MessageThreadId: 928,

334+

MessageSid: "restart-sentinel:agent:main:telegram:agentTurn:123",

335+

InputProvenance: {

336+

kind: "internal_system",

337+

sourceChannel: "telegram",

338+

sourceTool: "restart-sentinel",

339+

},

340+

},

341+

config: {},

342+

hasRepliedRef: undefined,

343+

});

344+
345+

expect(context.currentChannelId).toBe("telegram:-1003841603622:topic:928");

346+

expect(context.currentThreadTs).toBe("928");

347+

expect(context.currentMessageId).toBeUndefined();

348+

});

349+
350+

it("uses restart-sentinel reply target when one exists", () => {

351+

const context = buildThreadingToolContext({

352+

sessionCtx: {

353+

Provider: "webchat",

354+

OriginatingChannel: "whatsapp",

355+

OriginatingTo: "whatsapp:+15550002",

356+

ReplyToId: "provider-reply-id",

357+

MessageSid: "restart-sentinel:agent:main:whatsapp:agentTurn:123",

358+

InputProvenance: {

359+

kind: "internal_system",

360+

sourceChannel: "whatsapp",

361+

sourceTool: "restart-sentinel",

362+

},

363+

},

364+

config: {},

365+

hasRepliedRef: undefined,

366+

});

367+
368+

expect(context.currentChannelId).toBe("whatsapp:+15550002");

369+

expect(context.currentMessageId).toBe("provider-reply-id");

370+

});

312371

});

Original file line numberDiff line numberDiff line change

@@ -105,7 +105,12 @@ export function buildThreadingToolContext(params: {

105105

hasRepliedRef: { value: boolean } | undefined;

106106

}): ChannelThreadingToolContext {

107107

const { sessionCtx, config, hasRepliedRef } = params;

108-

const currentMessageId = sessionCtx.MessageSidFull ?? sessionCtx.MessageSid;

108+

const isRestartSentinelContinuation =

109+

sessionCtx.InputProvenance?.kind === "internal_system" &&

110+

sessionCtx.InputProvenance.sourceTool === "restart-sentinel";

111+

const currentMessageId = isRestartSentinelContinuation

112+

? sessionCtx.ReplyToId

113+

: (sessionCtx.MessageSidFull ?? sessionCtx.MessageSid);

109114

const originProvider = resolveOriginMessageProvider({

110115

originatingChannel: sessionCtx.OriginatingChannel,

111116

provider: sessionCtx.Provider,