Skip to content

refactor(channels): centralize inbound orchestration and remove internal compat - #109716

Merged
steipete merged 27 commits into
mainfrom
codex/core-channel-inbound-refactor
Jul 17, 2026
Merged

steipete merged 27 commits into
mainfrom
codex/core-channel-inbound-refactor

Conversation

@steipete

@steipete steipete commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #109316

What Problem This Solves

Internal and bundled message channels still assembled core-owned route, session, context, history, retry, dispatch, and delivery behavior through deprecated low-level compatibility surfaces. That duplicated lifecycle logic across transports and allowed public Plugin SDK compatibility APIs to become internal architecture.

Why This Change Was Made

Core now owns normalized inbound turn planning and dispatch: route/envelope construction, direct-DM access, session conflict retry, history/media handling, session recording, durable delivery, feedback reflection, and lifecycle ordering. Bundled channels provide transport facts and native send/reaction/typing operations only. Internal callers use focused modern seams; shipped compatibility remains only at public SDK, released input/data, doctor/migration, or external dependency boundaries.

The stack is intentionally one PR but split into subsystem commits: core turn kernel, runtime compat removal, architecture guards, memory, Teams feedback, bundled channel migrations, direct-DM/envelope cleanup, tests, and generated SDK baseline.

User Impact

No intended user-visible behavior change. Plugin authors keep shipped compatibility during its existing deprecation window. Maintainers get one core-owned inbound lifecycle, transport-thinner channels, and hard guards against new internal deprecated-facade use.

Non-test TypeScript using the task's *.test.ts exclusion: +2525 / -2542, net -17 lines.

Deprecation Triage

Bucket Final count Decision
LEGITIMATE 110 files / 308 raw marker lines Retain only shipped SDK/public, released CLI/config/data, doctor/migration, or provider/dependency compatibility. Registry report: 258 deprecated records, 0 eligible for removal.
STALE INTERNAL 0 remaining All bundled/internal imports migrated to focused modern APIs. Guards fail on deprecated SDK facades and low-level channel runtime/access seams.
DEAD 0 remaining Caller and surface checks found no removable remaining marker-bearing declaration. Two dead lexical diagnostic compatibility probes were deleted; no removed-symbol tests were rewritten.

Raw marker lines and compat registry records are different units: one declaration can be re-exported through multiple public barrels, while registry records track shipped removal windows.

LEGITIMATE keeps: every remaining non-test file outside plugin-sdk
File Keep rationale
src/agents/agent-runtime-id.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/agents/anthropic-payload-policy.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/auth-profiles/constants.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/cli-credentials.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/copilot-dynamic-headers.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/embedded-agent-runner/openrouter-model-capabilities.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/embedded-agent-runner/run/params.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/agents/embedded-agent-runner/runs.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/agents/gpt5-prompt-overlay.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/harness/types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/agents/model-auth-markers.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/openai-text-verbosity.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/agents/runtime-plan/types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/auto-reply/reply-payload.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/auto-reply/reply/history.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/auto-reply/templating.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/direct-dm-access.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/draft-preview-finalizer.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/inbound-event/context.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/mention-gating.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/message/inbound-reply-dispatch.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/message/send.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/plugins/outbound.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/plugins/outbound/interactive.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/plugins/types.adapters.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/channels/plugins/types.core.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/cli/config-set-input.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/cli/gateway-cli/run-options.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/cli/plugins-cli.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/cli/plugins-uninstall-command.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/commands/onboard-types.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.agent-defaults.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.agents.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.base.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.channels.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.cron.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.discord.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.gateway.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.googlechat.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.messages.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.openclaw.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.plugins.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.slack.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.telegram.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.tools.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/types.tts.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/zod-schema.agents.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/zod-schema.allowdeny.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/config/zod-schema.session.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/context-engine/types.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/cron/service/state.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/cron/types.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/extensionAPI.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/flows/doctor-core-checks.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/approval-gateway-resolver.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/approval-handler-adapter-runtime.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/approval-handler-runtime-types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/approval-handler-runtime.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/approval-native-runtime.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/brew.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/dedupe.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/exec-approval-reply.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/exec-command-resolution.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/fs-safe.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/net/fetch-guard.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/outbound/deliver-runtime.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/outbound/deliver.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/outbound/reply-payload-normalize.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/infra/secret-file.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/interactive/payload.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/llm/providers/stream-wrappers/anthropic-family-tool-payload-compat.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/llm/providers/stream-wrappers/minimax.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/llm/providers/stream-wrappers/moonshot-thinking.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/llm/providers/stream-wrappers/openai.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/llm/providers/stream-wrappers/proxy.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/llm/providers/stream-wrappers/zai.ts Provider/dependency-owned compatibility surface retained for shipped provider or plugin consumers; core/bundled callers avoid it.
src/logging/diagnostic.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/media-understanding/types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/media/audio.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/media/fetch.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/memory-host-sdk/dreaming.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/pairing/pairing-store.ts Doctor/plugin migration-only bridge for the retired shipped JSON store; absent from steady-state canonical runtime.
src/plugins/agent-tool-result-middleware-types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/hook-before-agent-start.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/hook-before-tool-call-result.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/hook-types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/hooks.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/manifest.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/plugin-api.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/plugin-command.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/plugin-definition.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-auth-token.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-catalog.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-claude-thinking.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-model-compat.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-openai-chatgpt-oauth.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-plugin.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-replay-helpers.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/provider-replay.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/runtime/runtime-channel.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/runtime/runtime-tasks.types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/runtime/types-channel.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/runtime/types-core.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/plugins/runtime/types.ts Shipped Plugin SDK/public facade reachable from documented barrels; external plugin deprecation window retained, with internal/bundled callers on focused modern seams.
src/proxy-capture/env.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/proxy-capture/paths.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/proxy-capture/types.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/routing/resolve-route.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/security/dm-policy-shared.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.
src/system-agent/setup-inference.ts Released CLI/config/gateway/persisted contract; canonical runtime fields remain modern while parsing/schema/wire compatibility preserves shipped input.

Evidence

Current exact head f39f405915bf1673f3c535be79aad16596b4acba:

Broader branch proof before the latest conflict-only rebase:

No UI files changed; screenshots not applicable.

AI-assisted implementation and review.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser extensions: memory-core Extension: memory-core scripts Repository scripts agents Agent runtime and tooling channel: feishu Channel integration: feishu channel: twitch Channel integration: twitch channel: irc channel: qqbot channel: qa-channel Channel integration: qa-channel extensions: codex channel: synology-chat extensions: microsoft channel: sms Channel integration: sms channel: raft Channel integration: Raft labels Jul 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0200574738

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -296,7 +314,7 @@ export function createPluginRuntimeMock(overrides: DeepPartial<PluginRuntime> =
? await runPreparedChannelTurnMock({
...resolved,
admission,
})
} as unknown as Parameters<PluginRuntime["channel"]["inbound"]["runPreparedReply"]>[0])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Assemble routed turns in the runtime mock

channel.inbound.run can now receive adapters that return the new routed turn shape ({ cfg, route, ... }), which the real kernel expands into routeSessionKey, storePath, and recordInboundSession before dispatch. This cast sends a routed prepared turn straight into runPreparedChannelTurnMock (and the non-prepared path also bypasses the new dispatch assembler), so tests using createPluginRuntimeMock().channel.inbound.run with migrated adapters fail with missing session-recording/store-path wiring instead of exercising the turn. Reuse the same assembly path as dispatchChannelTurnPlanMock before branching on runDispatch.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the codex/core-channel-inbound-refactor branch from 0200574 to f39f405 Compare July 17, 2026 07:48
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 17, 2026
@steipete
steipete merged commit 0e792b6 into main Jul 17, 2026
132 of 134 checks passed
@steipete
steipete deleted the codex/core-channel-inbound-refactor branch July 17, 2026 07:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
…nal compat (openclaw#109716)

* refactor(channels): centralize inbound turn orchestration

* refactor(runtime): remove stale compatibility paths

* chore(guards): reject internal deprecated API use

* refactor(channels): simplify core turn planning

* chore(guards): keep deprecated checks boundary-focused

* refactor(memory): keep modern config off compat barrel

* fix(msteams): preserve feedback learning

* test(channels): align modern inbound fixtures

* refactor(channels): finish modern inbound migration

* refactor(channels): tighten core inbound kernel

* fix(channels): preserve turn assembly narrowing

* test(sdk): keep runtime mock binding immutable

* test(matrix): isolate read policy runtime

* test(msteams): mock canonical reply factory

* test(slack): mock core inbound turn dispatch

* test(telegram): inject core session recorder

* test(signal): inject core session recorder

* test(googlechat): assert canonical inbound routing

* test(synology-chat): align core turn fixture

* fix(sdk): preserve direct DM runtime compat

* refactor(channels): own inbound envelope compat in core

* refactor(channels): trim inbound dispatch seams

* refactor(channels): remove redundant async wrappers

* test(synology-chat): type canonical dispatcher mock

* refactor(channels): remove remaining dead compat seams

* chore(sdk): refresh API baseline after rebase

* fix(channels): preserve direct DM identity metadata
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…nal compat (openclaw#109716)

* refactor(channels): centralize inbound turn orchestration

* refactor(runtime): remove stale compatibility paths

* chore(guards): reject internal deprecated API use

* refactor(channels): simplify core turn planning

* chore(guards): keep deprecated checks boundary-focused

* refactor(memory): keep modern config off compat barrel

* fix(msteams): preserve feedback learning

* test(channels): align modern inbound fixtures

* refactor(channels): finish modern inbound migration

* refactor(channels): tighten core inbound kernel

* fix(channels): preserve turn assembly narrowing

* test(sdk): keep runtime mock binding immutable

* test(matrix): isolate read policy runtime

* test(msteams): mock canonical reply factory

* test(slack): mock core inbound turn dispatch

* test(telegram): inject core session recorder

* test(signal): inject core session recorder

* test(googlechat): assert canonical inbound routing

* test(synology-chat): align core turn fixture

* fix(sdk): preserve direct DM runtime compat

* refactor(channels): own inbound envelope compat in core

* refactor(channels): trim inbound dispatch seams

* refactor(channels): remove redundant async wrappers

* test(synology-chat): type canonical dispatcher mock

* refactor(channels): remove remaining dead compat seams

* chore(sdk): refresh API baseline after rebase

* fix(channels): preserve direct DM identity metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: qqbot channel: raft Channel integration: Raft channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser docs Improvements or additions to documentation extensions: codex extensions: memory-core Extension: memory-core extensions: microsoft maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor core inbound channel turn ownership

1 participant