fix(discord): pass config to subagent thread binding · openclaw/openclaw@84571e4
jai
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -193,6 +193,15 @@ describe("discord subagent hook handlers", () => {
|
193 | 193 | |
194 | 194 | expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); |
195 | 195 | expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledWith({ |
| 196 | +cfg: expect.objectContaining({ |
| 197 | +channels: expect.objectContaining({ |
| 198 | +discord: expect.objectContaining({ |
| 199 | +threadBindings: expect.objectContaining({ |
| 200 | +spawnSubagentSessions: true, |
| 201 | +}), |
| 202 | +}), |
| 203 | +}), |
| 204 | +}), |
196 | 205 | accountId: "work", |
197 | 206 | channel: "discord", |
198 | 207 | to: "channel:123", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -126,6 +126,7 @@ export async function handleDiscordSubagentSpawning(
|
126 | 126 | try { |
127 | 127 | const agentId = event.agentId?.trim() || "subagent"; |
128 | 128 | const binding = await autoBindSpawnedDiscordSubagent({ |
| 129 | +cfg: api.config, |
129 | 130 | accountId: event.requester?.accountId, |
130 | 131 | channel: event.requester?.channel, |
131 | 132 | to: event.requester?.to, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。