






















@@ -284,20 +284,20 @@ describe("resolveDiscordAutoThreadContext", () => {
284284name: "no created thread",
285285createdThreadId: undefined,
286286expectedNull: true,
287-inheritParent: undefined,
287+parentInheritanceEnabled: undefined,
288288},
289289{
290290name: "created thread without parent inheritance",
291291createdThreadId: "thread",
292292expectedNull: false,
293-inheritParent: false,
293+parentInheritanceEnabled: false,
294294expectedParentSessionKey: undefined,
295295},
296296{
297297name: "created thread with parent inheritance",
298298createdThreadId: "thread",
299299expectedNull: false,
300-inheritParent: true,
300+parentInheritanceEnabled: true,
301301expectedParentSessionKey: buildAgentSessionKey({
302302agentId: "agent",
303303channel: "discord",
@@ -312,7 +312,7 @@ describe("resolveDiscordAutoThreadContext", () => {
312312channel: "discord",
313313messageChannelId: "parent",
314314createdThreadId: testCase.createdThreadId,
315-inheritParent: testCase.inheritParent,
315+parentInheritanceEnabled: testCase.parentInheritanceEnabled,
316316});
317317318318if (testCase.expectedNull) {
@@ -472,7 +472,7 @@ describe("resolveDiscordAutoThreadReplyPlan", () => {
472472client?: Client;
473473channelConfig?: DiscordChannelConfigResolved;
474474threadChannel?: { id: string } | null;
475-threadInheritParent?: boolean;
475+threadParentInheritanceEnabled?: boolean;
476476}) {
477477return {
478478client:
@@ -492,7 +492,7 @@ describe("resolveDiscordAutoThreadReplyPlan", () => {
492492replyToMode: "all" as const,
493493agentId: "agent",
494494channel: "discord" as const,
495-threadInheritParent: overrides?.threadInheritParent,
495+threadParentInheritanceEnabled: overrides?.threadParentInheritanceEnabled,
496496};
497497}
498498@@ -513,7 +513,7 @@ describe("resolveDiscordAutoThreadReplyPlan", () => {
513513{
514514name: "created thread with parent inheritance",
515515params: {
516-threadInheritParent: true,
516+threadParentInheritanceEnabled: true,
517517},
518518expectedDeliverTarget: "channel:thread",
519519expectedReplyReference: undefined,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。