fix(line): add ACP binding parity (#56700)

* fix(line): support ACP current-conversation binding

* fix(line): add ACP binding routing parity

* docs(changelog): note LINE ACP parity

* fix(line): accept canonical ACP binding targets
This commit is contained in:
Tak Hoffman
2026-03-28 20:52:31 -05:00
committed by GitHub
parent 9449e54f4f
commit 6f7ff545dd
12 changed files with 484 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ describe("thread binding spawn policy helpers", () => {
it("allows thread-here on threadless conversation channels without a native thread id", () => {
expect(requiresNativeThreadContextForThreadHere("telegram")).toBe(false);
expect(requiresNativeThreadContextForThreadHere("feishu")).toBe(false);
expect(requiresNativeThreadContextForThreadHere("line")).toBe(false);
expect(requiresNativeThreadContextForThreadHere("discord")).toBe(true);
});
@@ -35,5 +36,10 @@ describe("thread binding spawn policy helpers", () => {
channel: "telegram",
}),
).toBe("current");
expect(
resolveThreadBindingPlacementForCurrentContext({
channel: "line",
}),
).toBe("current");
});
});

View File

@@ -43,7 +43,7 @@ export function supportsAutomaticThreadBindingSpawn(channel: string): boolean {
export function requiresNativeThreadContextForThreadHere(channel: string): boolean {
const normalized = normalizeChannelId(channel);
return normalized !== "telegram" && normalized !== "feishu";
return normalized !== "telegram" && normalized !== "feishu" && normalized !== "line";
}
export function resolveThreadBindingPlacementForCurrentContext(params: {