fix(matrix): load channel CLI metadata for discovery

This commit is contained in:
Gustavo Madeira Santana
2026-04-24 20:15:40 -04:00
parent af8a71c922
commit 45d6a2fccf
3 changed files with 23 additions and 1 deletions

View File

@@ -269,6 +269,12 @@ export async function createMatrixQaOpenClawCliRuntime(params: {
configPath,
`${JSON.stringify(
{
plugins: {
allow: ["matrix"],
entries: {
matrix: { enabled: true },
},
},
channels: {
matrix: {
defaultAccount: params.accountId,

View File

@@ -413,6 +413,12 @@ async function createMatrixQaCliSelfVerificationRuntime(params: {
configPath,
`${JSON.stringify(
{
plugins: {
allow: ["matrix"],
entries: {
matrix: { enabled: true },
},
},
channels: {
matrix: {
defaultAccount: params.accountId,

View File

@@ -3047,8 +3047,16 @@ describe("matrix live qa scenarios", () => {
accounts?: Record<string, Record<string, unknown>>;
};
};
plugins?: {
allow?: string[];
entries?: Record<string, { enabled?: boolean }>;
};
};
cliAccountConfigDuringRun = {
...cliConfig.channels?.matrix?.accounts?.cli,
pluginAllow: cliConfig.plugins?.allow,
pluginEnabled: cliConfig.plugins?.entries?.matrix?.enabled,
};
cliAccountConfigDuringRun = cliConfig.channels?.matrix?.accounts?.cli ?? null;
}
const joined = args.join(" ");
if (joined === "matrix verify status --account cli --json") {
@@ -3155,6 +3163,8 @@ describe("matrix live qa scenarios", () => {
deviceId: "CLIDEVICE",
encryption: true,
homeserver: "http://127.0.0.1:28008/",
pluginAllow: expect.arrayContaining(["matrix"]),
pluginEnabled: true,
startupVerification: "off",
userId: "@driver:matrix-qa.test",
});