fix: stabilize channel migration

This commit is contained in:
Peter Steinberger
2026-01-13 06:27:55 +00:00
parent 90342a4f3a
commit 993c1de361
6 changed files with 39 additions and 24 deletions

View File

@@ -4,9 +4,11 @@ import type { ClawdbotConfig } from "../../config/config.js";
import { runMessageAction } from "./message-action-runner.js";
const slackConfig = {
slack: {
botToken: "xoxb-test",
appToken: "xapp-test",
channels: {
slack: {
botToken: "xoxb-test",
appToken: "xapp-test",
},
},
} as ClawdbotConfig;
@@ -16,7 +18,7 @@ describe("runMessageAction context isolation", () => {
cfg: slackConfig,
action: "send",
params: {
provider: "slack",
channel: "slack",
to: "#C123",
message: "hi",
},
@@ -33,7 +35,7 @@ describe("runMessageAction context isolation", () => {
cfg: slackConfig,
action: "send",
params: {
provider: "slack",
channel: "slack",
to: "channel:C999",
message: "hi",
},
@@ -49,7 +51,7 @@ describe("runMessageAction context isolation", () => {
cfg: slackConfig,
action: "thread-reply",
params: {
provider: "slack",
channel: "slack",
channelId: "C999",
message: "hi",
},