Revert "Merge branch 'revert-d8af6c8f' into 'master'"

This reverts merge request !158
This commit is contained in:
g zy committed 2026-06-29 09:19:17 +00:00
1 parent f22a6a9957
commit 80fce34c1a
3 files changed
+107 -56

No files matched your search

@@ -166,3 +166,25 @@ test("mapped domain overrides the user's manual selection for that incoming mess
},
);
});
test("unmapped incoming url resets auto-selected agent back to default when there is no manual selection", () => {
assert.deepEqual(
resolveIncomingIframeSelection({
pageUrl: "https://another-unknown.example.com/article",
mappings: [
{
id: "m1",
domain: "foo.example.com",
agentId: "agent-1",
enabled: true,
},
],
availableAgentIds: ["agent-1", "agent-2"],
manualSelectedAgentId: null,
}),
{
selectedAgentId: null,
forceDefaultAssistant: true,
},
);
});