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

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale 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
refactor: remove channel turn runtime aliases · openclaw/...
steipete · 2026-05-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -694,8 +694,8 @@ channel-owned dispatcher

694694

-> messages.send for final delivery

695695

```

696696
697-

The old `channel.turn` runtime surface remains a deprecated alias only. New code

698-

uses inbound/message nouns.

697+

The old `channel.turn` runtime surface was removed. Runtime callers use

698+

`channel.inbound.*`; channel docs and SDK subpaths use inbound/message nouns.

699699
700700

## Compatibility guardrails

701701
Original file line numberDiff line numberDiff line change

@@ -57,18 +57,14 @@ prefer message adapters and durable message helpers.

5757
5858

## Migration

5959
60-

- `runtime.channel.turn.run(...)` -> `runtime.channel.inbound.run(...)`

61-

- `runtime.channel.turn.runPrepared(...)` ->

62-

`runtime.channel.inbound.runPreparedReply(...)`

63-

- `runtime.channel.turn.runAssembled(...)` ->

64-

`runtime.channel.inbound.dispatchReply(...)`

65-

- `runtime.channel.turn.buildContext(...)` ->

66-

`runtime.channel.inbound.buildContext(...)`

60+

The old `runtime.channel.turn.*` runtime aliases were removed. Use:

61+
62+

- `runtime.channel.inbound.run(...)` for raw inbound events.

63+

- `runtime.channel.inbound.dispatchReply(...)` for assembled reply contexts.

64+

- `runtime.channel.inbound.buildContext(...)` for inbound context payloads.

65+

- `runtime.channel.inbound.runPreparedReply(...)` only for channel-owned prepared

66+

dispatch paths that already assemble their own dispatch closure.

6767
6868

New plugin code should not introduce `turn`-named channel APIs. Keep model or

6969

agent turn vocabulary inside agent/provider code; channel plugins use inbound,

7070

message, delivery, and reply terms.

71-
72-

The `runtime.channel.turn.*` aliases remain only as deprecated compatibility

73-

for already published plugins. They can be removed in the next major SDK cleanup

74-

after external plugins have had a migration window.

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,5 @@ title: "Channel turn"

55
66

This page moved to [Channel inbound API](/plugins/sdk-channel-inbound).

77
8-

The old channel-turn runtime names remain deprecated compatibility only. New

9-

plugin code should use `runtime.channel.inbound.*`, `channel-inbound`, and

10-

`channel-outbound`; the aliases can be removed in the next major SDK cleanup

11-

after external plugin migration.

8+

The old channel-turn runtime aliases were removed. Plugin code should use

9+

`runtime.channel.inbound.*`, `channel-inbound`, and `channel-outbound`.

Original file line numberDiff line numberDiff line change

@@ -132,7 +132,7 @@ migration window, keep repo/bundled plugins on `channel-inbound` and

132132

`channel-outbound`, then remove the compatibility subpaths in the next major

133133

SDK cleanup. This applies to the old channel message/runtime, channel

134134

streaming, direct-DM access, inbound helper splinter, reply-options,

135-

pairing-path, and runtime `channel.turn.*` families.

135+

and pairing-path families.

136136
137137

<Accordion title="Provider subpaths">

138138

| Subpath | Key exports |

Original file line numberDiff line numberDiff line change

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

5151

PreparedChannelTurn,

5252

PreflightFacts,

5353

RunChannelTurnParams,

54-

RunResolvedChannelTurnParams,

5554

} from "./types.js";

5655

export { createChannelDeliveryResultFromReceipt } from "./delivery-result.js";

5756

export {

@@ -88,7 +87,6 @@ export type {

8887

ReplyPlanFacts,

8988

RouteFacts,

9089

RunChannelTurnParams,

91-

RunResolvedChannelTurnParams,

9290

SenderFacts,

9391

SupplementalContextFacts,

9492

} from "./types.js";

@@ -764,21 +762,3 @@ export async function runChannelTurn<

764762

}

765763
766764

export const runChannelInboundEvent = runChannelTurn;

767-
768-

export async function runResolvedChannelTurn<

769-

TRaw,

770-

TDispatchResult = DispatchedChannelTurnResult["dispatchResult"],

771-

>(

772-

params: RunResolvedChannelTurnParams<TRaw, TDispatchResult>,

773-

): Promise<ChannelTurnResult<TDispatchResult>> {

774-

return await runChannelTurn({

775-

channel: params.channel,

776-

accountId: params.accountId,

777-

raw: params.raw,

778-

log: params.log,

779-

adapter: {

780-

ingest: (raw) => (typeof params.input === "function" ? params.input(raw) : params.input),

781-

resolveTurn: params.resolveTurn,

782-

},

783-

});

784-

}

Original file line numberDiff line numberDiff line change

@@ -457,18 +457,3 @@ export type RunChannelTurnParams<TRaw, TDispatchResult = DispatchFromConfigResul

457457

adapter: ChannelTurnAdapter<TRaw, TDispatchResult>;

458458

log?: (event: ChannelTurnLogEvent) => void;

459459

};

460-
461-

export type RunResolvedChannelTurnParams<TRaw, TDispatchResult = DispatchFromConfigResult> = {

462-

channel: string;

463-

accountId?: string;

464-

raw: TRaw;

465-

input:

466-

| NormalizedTurnInput

467-

| ((raw: TRaw) => Promise<NormalizedTurnInput | null> | NormalizedTurnInput | null);

468-

resolveTurn: (

469-

input: NormalizedTurnInput,

470-

eventClass: ChannelEventClass,

471-

preflight: PreflightFacts,

472-

) => Promise<ChannelTurnResolved<TDispatchResult>> | ChannelTurnResolved<TDispatchResult>;

473-

log?: (event: ChannelTurnLogEvent) => void;

474-

};

Original file line numberDiff line numberDiff line change

@@ -14,15 +14,11 @@ describe("createPluginRuntimeMock", () => {

1414

expect(vi.isMockFunction(debouncer.cancelKey)).toBe(true);

1515

});

1616
17-

it("keeps deprecated turn runtime aliases aligned with inbound mocks", async () => {

17+

it("exposes channel inbound helpers without the removed turn aliases", async () => {

1818

const runtime = createPluginRuntimeMock();

1919

const channel = "test";

2020
21-

expect(runtime.channel.turn.run).toBe(runtime.channel.inbound.run);

22-

expect(runtime.channel.turn.runAssembled).toBe(runtime.channel.inbound.dispatchReply);

23-

expect(runtime.channel.turn.buildContext).toBe(runtime.channel.inbound.buildContext);

24-

expect(runtime.channel.turn.runPrepared).toBe(runtime.channel.inbound.runPreparedReply);

25-

expect(runtime.channel.turn.dispatchAssembled).toBe(runtime.channel.inbound.dispatchReply);

21+

expect("turn" in runtime.channel).toBe(false);

2622
2723

const input = vi.fn((raw: { id: string }) => ({

2824

id: raw.id,

@@ -45,11 +41,13 @@ describe("createPluginRuntimeMock", () => {

4541

runDispatch,

4642

}));

4743
48-

const result = await runtime.channel.turn.runResolved({

44+

const result = await runtime.channel.inbound.run({

4945

channel,

5046

raw: { id: "m1" },

51-

input,

52-

resolveTurn,

47+

adapter: {

48+

ingest: input,

49+

resolveTurn,

50+

},

5351

});

5452
5553

expect(input).toHaveBeenCalledWith({ id: "m1" });

@@ -76,7 +74,7 @@ describe("createPluginRuntimeMock", () => {

7674

it("routes untrusted group prompt facts into untrusted structured context", () => {

7775

const runtime = createPluginRuntimeMock();

7876
79-

const ctx = runtime.channel.turn.buildContext({

77+

const ctx = runtime.channel.inbound.buildContext({

8078

channel: "test",

8179

from: "test:user:u1",

8280

sender: { id: "u1" },

Original file line numberDiff line numberDiff line change

@@ -727,29 +727,6 @@ export function createPluginRuntimeMock(overrides: DeepPartial<PluginRuntime> =

727727

buildContext: buildChannelInboundEventContextMock,

728728

runPreparedReply: runPreparedChannelTurnMock,

729729

},

730-

turn: {

731-

run: runChannelTurnMock,

732-

runAssembled:

733-

dispatchAssembledChannelTurnMock as unknown as PluginRuntime["channel"]["turn"]["runAssembled"],

734-

runResolved: vi.fn(

735-

async (params: Parameters<PluginRuntime["channel"]["turn"]["runResolved"]>[0]) =>

736-

await runChannelTurnMock({

737-

channel: params.channel,

738-

accountId: params.accountId,

739-

raw: params.raw,

740-

log: params.log,

741-

adapter: {

742-

ingest: (raw) =>

743-

typeof params.input === "function" ? params.input(raw) : params.input,

744-

resolveTurn: params.resolveTurn,

745-

},

746-

}),

747-

) as unknown as PluginRuntime["channel"]["turn"]["runResolved"],

748-

buildContext: buildChannelInboundEventContextMock,

749-

runPrepared: runPreparedChannelTurnMock,

750-

dispatchAssembled:

751-

dispatchAssembledChannelTurnMock as unknown as PluginRuntime["channel"]["turn"]["dispatchAssembled"],

752-

},

753730

threadBindings: {

754731

setIdleTimeoutBySessionKey:

755732

vi.fn() as unknown as PluginRuntime["channel"]["threadBindings"]["setIdleTimeoutBySessionKey"],

Original file line numberDiff line numberDiff line change

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

5555

dispatchChannelInboundReply,

5656

runChannelInboundEvent,

5757

runPreparedInboundReply,

58-

runResolvedChannelTurn,

5958

} from "../../channels/turn/kernel.js";

6059

import {

6160

resolveChannelGroupPolicy,

@@ -186,14 +185,6 @@ export function createRuntimeChannel(): PluginRuntime["channel"] {

186185

runPreparedReply: runPreparedInboundReply,

187186

dispatchReply: dispatchChannelInboundReply,

188187

},

189-

turn: {

190-

run: runChannelInboundEvent,

191-

runAssembled: dispatchChannelInboundReply,

192-

runResolved: runResolvedChannelTurn,

193-

buildContext: buildChannelInboundEventContext,

194-

runPrepared: runPreparedInboundReply,

195-

dispatchAssembled: dispatchChannelInboundReply,

196-

},

197188

threadBindings: {

198189

setIdleTimeoutBySessionKey: ({ channelId, targetSessionKey, accountId, idleTimeoutMs }) =>

199190

setChannelConversationBindingIdleTimeoutBySessionKey({

Original file line numberDiff line numberDiff line change

@@ -184,17 +184,6 @@ export type PluginRuntimeChannel = {

184184

runPreparedReply: typeof import("../../channels/turn/kernel.js").runPreparedInboundReply;

185185

dispatchReply: typeof import("../../channels/turn/kernel.js").dispatchChannelInboundReply;

186186

};

187-

/** @deprecated Use `inbound`. */

188-

turn: {

189-

run: typeof import("../../channels/turn/kernel.js").runChannelInboundEvent;

190-

runAssembled: typeof import("../../channels/turn/kernel.js").dispatchChannelInboundReply;

191-

/** @deprecated Prefer `inbound.run(...)`. */

192-

runResolved: typeof import("../../channels/turn/kernel.js").runResolvedChannelTurn;

193-

buildContext: typeof import("../../channels/inbound-event/context.js").buildChannelInboundEventContext;

194-

runPrepared: typeof import("../../channels/turn/kernel.js").runPreparedInboundReply;

195-

/** @deprecated Prefer `inbound.dispatchReply(...)`. */

196-

dispatchAssembled: typeof import("../../channels/turn/kernel.js").dispatchChannelInboundReply;

197-

};

198187

threadBindings: {

199188

setIdleTimeoutBySessionKey: (params: {

200189

channelId: string;