fix: resolve merge conflicts and fix threading tests

- Update MessageToolOptions type to include Slack threading options
- Remove duplicate threadTs property in slack/actions.ts
- Fix replyThreadTs parameter name in monitor.ts
- Update test to correctly verify 'first' mode threading behavior:
  - 'off' mode: no threading unless already in a thread
  - 'first' mode: first reply starts a thread
- Add new test case for 'first' mode threading
This commit is contained in:
Austin Mudd
2026-01-09 09:17:47 -08:00
committed by Peter Steinberger
parent b4663ed11c
commit 909c14d443
4 changed files with 56 additions and 4 deletions

View File

@@ -134,6 +134,14 @@ const MessageToolSchema = Type.Object({
type MessageToolOptions = {
agentAccountId?: string;
config?: ClawdbotConfig;
/** Current channel ID for auto-threading (Slack). */
currentChannelId?: string;
/** Current thread timestamp for auto-threading (Slack). */
currentThreadTs?: string;
/** Reply-to mode for Slack auto-threading. */
replyToMode?: "off" | "first" | "all";
/** Mutable ref to track if a reply was sent (for "first" mode). */
hasRepliedRef?: { value: boolean };
};
function hasTelegramInlineButtons(cfg: ClawdbotConfig): boolean {