mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 13:31:43 +00:00
chore: merge origin/main into main
This commit is contained in:
@@ -363,6 +363,16 @@ describe("legacy config detection", () => {
|
||||
expectedValue: "work",
|
||||
});
|
||||
});
|
||||
it("accepts bindings[].comment on load", () => {
|
||||
expectValidConfigValue({
|
||||
config: {
|
||||
bindings: [{ agentId: "main", comment: "primary route", match: { channel: "telegram" } }],
|
||||
},
|
||||
readValue: (config) =>
|
||||
(config as { bindings?: Array<{ comment?: string }> }).bindings?.[0]?.comment,
|
||||
expectedValue: "primary route",
|
||||
});
|
||||
});
|
||||
it("rejects session.sendPolicy.rules[].match.provider on load", async () => {
|
||||
await withTempHome(async (home) => {
|
||||
const configPath = path.join(home, ".openclaw", "openclaw.json");
|
||||
|
||||
Reference in New Issue
Block a user