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

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare Blog

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
fix(gateway): preserve restart continuation chat type · o...
obviyus · 2026-04-23 · via Recent Commits to openclaw:main

@@ -1,6 +1,7 @@

11

import { resolveSessionAgentId } from "../agents/agent-scope.js";

22

import { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js";

33

import { dispatchReplyWithBufferedBlockDispatcher } from "../auto-reply/reply/provider-dispatcher.js";

4+

import type { ChatType } from "../channels/chat-type.js";

45

import { getChannelPlugin, normalizeChannelId } from "../channels/plugins/index.js";

56

import { recordInboundSession } from "../channels/session.js";

67

import type { CliDeps } from "../cli/deps.types.js";

@@ -149,6 +150,7 @@ type RestartContinuationRoute = {

149150

accountId?: string;

150151

replyToId?: string;

151152

threadId?: string;

153+

chatType: ChatType;

152154

};

153155154156

function resolveRestartContinuationRoute(params: {

@@ -157,6 +159,7 @@ function resolveRestartContinuationRoute(params: {

157159

accountId?: string;

158160

replyToId?: string;

159161

threadId?: string;

162+

chatType: ChatType;

160163

}): RestartContinuationRoute | undefined {

161164

if (!params.channel || !params.to) {

162165

return undefined;

@@ -167,6 +170,7 @@ function resolveRestartContinuationRoute(params: {

167170

...(params.accountId ? { accountId: params.accountId } : {}),

168171

...(params.replyToId ? { replyToId: params.replyToId } : {}),

169172

...(params.threadId ? { threadId: params.threadId } : {}),

173+

chatType: params.chatType,

170174

};

171175

}

172176

@@ -246,7 +250,7 @@ async function dispatchRestartSentinelContinuation(params: {

246250

Timestamp: Date.now(),

247251

Provider: route.channel,

248252

Surface: route.channel,

249-

ChatType: "direct",

253+

ChatType: route.chatType,

250254

CommandAuthorized: true,

251255

ReplyToId: route.replyToId,

252256

OriginatingChannel: route.channel,

@@ -337,12 +341,14 @@ async function loadRestartSentinelStartupTask(params: {

337341338342

const sentinelContext = payload.deliveryContext;

339343

let sessionDeliveryContext = deliveryContextFromSession(entry);

344+

let chatType = entry?.origin?.chatType ?? "direct";

340345

if (

341346

!hasRoutableDeliveryContext(sessionDeliveryContext) &&

342347

baseSessionKey &&

343348

baseSessionKey !== sessionKey

344349

) {

345350

const { entry: baseEntry } = loadSessionEntry(baseSessionKey);

351+

chatType = entry?.origin?.chatType ?? baseEntry?.origin?.chatType ?? "direct";

346352

sessionDeliveryContext = mergeDeliveryContext(

347353

sessionDeliveryContext,

348354

deliveryContextFromSession(baseEntry),

@@ -426,6 +432,7 @@ async function loadRestartSentinelStartupTask(params: {

426432

accountId: origin?.accountId,

427433

replyToId,

428434

threadId: resolvedThreadId,

435+

chatType,

429436

}),

430437

});

431438

} catch (err) {