mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-02 21:01:51 +00:00
Slack: keep auto-thread test context local
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import type { ChannelThreadingToolContext } from "openclaw/plugin-sdk";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveSlackAutoThreadId } from "./action-threading.js";
|
||||
|
||||
type SlackThreadingToolContext = {
|
||||
currentChannelId?: string;
|
||||
currentThreadTs?: string;
|
||||
replyToMode?: "off" | "first" | "all";
|
||||
hasRepliedRef?: { value: boolean };
|
||||
};
|
||||
|
||||
function createToolContext(
|
||||
overrides: Partial<ChannelThreadingToolContext> = {},
|
||||
): ChannelThreadingToolContext {
|
||||
overrides: Partial<SlackThreadingToolContext> = {},
|
||||
): SlackThreadingToolContext {
|
||||
return {
|
||||
currentChannelId: "C123",
|
||||
currentThreadTs: "thread-1",
|
||||
|
||||
Reference in New Issue
Block a user