Skip to content

Commit 69f914b

Browse files
steipeteayaangazali
andcommitted
fix(channels): document valid account reply policies
Co-authored-by: ayaangazali <[email protected]>
1 parent 827dc5f commit 69f914b

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

‎docs/channels/feishu.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ Full configuration: [Gateway configuration](/gateway/configuration)
646646
| `channels.feishu.accounts.<id>.appId` | App ID | - |
647647
| `channels.feishu.accounts.<id>.appSecret` | App Secret | - |
648648
| `channels.feishu.accounts.<id>.domain` | Per-account domain override | `feishu` |
649+
| `channels.feishu.accounts.<id>.replyToMode` | Per-account reply-reference mode | inherited |
649650
| `channels.feishu.accounts.<id>.tts` | Per-account TTS override | `tts` |
650651
| `channels.feishu.dmPolicy` | DM policy (`pairing`, `allowlist`, `open`) | `pairing` |
651652
| `channels.feishu.allowFrom` | DM allowlist (open_id list) | - |
@@ -658,6 +659,7 @@ Full configuration: [Gateway configuration](/gateway/configuration)
658659
| `channels.feishu.groups.<chat_id>.enabled` | Enable/disable a specific group | `true` |
659660
| `channels.feishu.groups.<chat_id>.allowFrom` | Per-group sender allowlist (overrides `groupSenderAllowFrom`) | - |
660661
| `channels.feishu.groupSessionScope` | Group session mapping (`group`, `group_sender`, `group_topic`, `group_topic_sender`) | `group` |
662+
| `channels.feishu.replyToMode` | Reply-reference mode (`off`, `first`, `all`, `batched`) | `all` |
661663
| `channels.feishu.replyInThread` | Bot replies create/continue topic threads (`disabled`, `enabled`) | `disabled` |
662664
| `channels.feishu.reactionNotifications` | Inbound reaction events (`off`, `own`, `all`) | `own` |
663665
| `channels.feishu.vcAutoJoin` | Join invited VC meetings after normal DM authorization | `false` |

‎docs/channels/irc.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ IRC does not provide a replayable delivery ID or resend messages missed by a dis
6060
| `realname` | `OpenClaw` | Realname/GECOS field |
6161
| `password` / `passwordFile` | none | Server password; file must be a regular file |
6262
| `channels` | none | Channels to join (`["#openclaw"]`) |
63+
| `replyToMode` | `all` | Reply-reference mode: `off`, `first`, `all`, or `batched` |
6364
| `accounts` / `defaultAccount` | none | Multi-account setup; env vars fill only the default account |
6465

66+
Named accounts inherit the channel-wide reply mode; override it with `channels.irc.accounts.<id>.replyToMode`.
67+
6568
## Security defaults
6669

6770
- IRC uses raw TCP/TLS sockets outside OpenClaw operator-managed forward proxy routing. In deployments that require all egress through that forward proxy, set `channels.irc.enabled=false` unless direct IRC egress is explicitly approved.

‎docs/channels/nextcloud-talk.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Provider options:
160160
- `channels.nextcloud-talk.streaming.chunkMode`: `length` (default) or `newline` to split on blank lines (paragraph boundaries) before length chunking.
161161
- `channels.nextcloud-talk.streaming.block.enabled`: enable or disable block streaming for this channel.
162162
- `channels.nextcloud-talk.streaming.block.coalesce`: block streaming coalesce tuning.
163+
- `channels.nextcloud-talk.replyToMode`: reply-reference mode (`off | first | all | batched`; default: `all`). Named accounts can override it with `channels.nextcloud-talk.accounts.<id>.replyToMode`.
163164
- `channels.nextcloud-talk.responsePrefix`: outbound reply prefix.
164165
- `channels.nextcloud-talk.markdown.tables`: markdown table rendering mode (`off | bullets | code | block`).
165166
- `channels.nextcloud-talk.mediaMaxMb`: inbound media cap (MB).

‎src/auto-reply/reply/reply-threading.test.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,27 +136,27 @@ describe("resolveReplyToMode", () => {
136136
});
137137

138138
it("applies canonical account policy before channel-wide threading defaults", () => {
139-
setActivePluginRegistry(createTestRegistry([]));
140-
const cfg = {
139+
setActivePluginRegistry(
140+
createTestRegistry([
141+
{ pluginId: "irc", source: "test", plugin: createChannelTestPluginBase({ id: "irc" }) },
142+
]),
143+
);
144+
const cfg: OpenClawConfig = {
141145
channels: {
142146
irc: {
143147
replyToMode: "off",
144-
replyToModeByChatType: { group: "first" },
145148
accounts: {
146-
"Ops Team": {
147-
replyToMode: "all",
148-
replyToModeByChatType: { group: "batched" },
149-
},
150-
support: { replyToMode: "all" },
149+
"Ops Team": { replyToMode: "all" },
150+
support: { replyToMode: "first" },
151151
},
152152
},
153153
},
154-
} as unknown as OpenClawConfig;
154+
};
155155

156-
expect(resolveReplyToMode(cfg, "irc", "ops-team", "group")).toBe("batched");
156+
expect(resolveReplyToMode(cfg, "irc", "ops-team", "group")).toBe("all");
157157
expect(resolveReplyToMode(cfg, "irc", "OPS TEAM", "direct")).toBe("all");
158-
expect(resolveReplyToMode(cfg, "irc", "support", "group")).toBe("all");
159-
expect(resolveReplyToMode(cfg, "irc", "unknown", "group")).toBe("first");
158+
expect(resolveReplyToMode(cfg, "irc", "support", "group")).toBe("first");
159+
expect(resolveReplyToMode(cfg, "irc", "unknown", "group")).toBe("off");
160160
expect(resolveReplyToMode(cfg, "irc", null, "direct")).toBe("off");
161161
});
162162
});

0 commit comments

Comments
 (0)