refactor(routing): normalize binding matching and harden qmd boot-update tests

This commit is contained in:
Peter Steinberger
2026-02-14 03:40:19 +01:00
parent 89574f30cb
commit 2583de5305
3 changed files with 169 additions and 227 deletions

View File

@@ -376,7 +376,7 @@ test("dmScope=per-account-channel-peer uses default accountId when not provided"
describe("parentPeer binding inheritance (thread support)", () => {
test("thread inherits binding from parent channel when no direct match", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "adecco",
@@ -398,7 +398,7 @@ describe("parentPeer binding inheritance (thread support)", () => {
});
test("direct peer binding wins over parent peer binding", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "thread-agent",
@@ -427,7 +427,7 @@ describe("parentPeer binding inheritance (thread support)", () => {
});
test("parent peer binding wins over guild binding", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "parent-agent",
@@ -457,7 +457,7 @@ describe("parentPeer binding inheritance (thread support)", () => {
});
test("falls back to guild binding when no parent peer match", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "other-parent-agent",
@@ -487,7 +487,7 @@ describe("parentPeer binding inheritance (thread support)", () => {
});
test("parentPeer with empty id is ignored", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "parent-agent",
@@ -509,7 +509,7 @@ describe("parentPeer binding inheritance (thread support)", () => {
});
test("null parentPeer is handled gracefully", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "parent-agent",