mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:44:33 +00:00
refactor(routing): normalize binding matching and harden qmd boot-update tests
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user