mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
Slack: move outbound visibility test
This commit is contained in:
@@ -92,21 +92,6 @@ function requireSlackListPeers() {
|
||||
}
|
||||
|
||||
describe("slackPlugin actions", () => {
|
||||
it("treats ACP block text as visible delivered output", () => {
|
||||
expect(
|
||||
slackPlugin.outbound?.shouldTreatDeliveredTextAsVisible?.({
|
||||
kind: "block",
|
||||
text: "hello",
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(
|
||||
slackPlugin.outbound?.shouldTreatDeliveredTextAsVisible?.({
|
||||
kind: "tool",
|
||||
text: "hello",
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("prefers session lookup for announce target routing", () => {
|
||||
expect(slackPlugin.meta.preferSessionLookupForAnnounceTarget).toBe(true);
|
||||
});
|
||||
@@ -387,6 +372,21 @@ describe("slackPlugin outbound", () => {
|
||||
},
|
||||
};
|
||||
|
||||
it("treats ACP block text as visible delivered output", () => {
|
||||
expect(
|
||||
slackPlugin.outbound?.shouldTreatDeliveredTextAsVisible?.({
|
||||
kind: "block",
|
||||
text: "hello",
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(
|
||||
slackPlugin.outbound?.shouldTreatDeliveredTextAsVisible?.({
|
||||
kind: "tool",
|
||||
text: "hello",
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("advertises the 8000-character Slack default chunk limit", () => {
|
||||
expect(slackOutbound.textChunkLimit).toBe(8000);
|
||||
expect(slackPlugin.outbound?.textChunkLimit).toBe(8000);
|
||||
|
||||
Reference in New Issue
Block a user