mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
test: refresh external channel catalog expectations
This commit is contained in:
@@ -66,6 +66,7 @@ Docs: https://docs.openclaw.ai
|
||||
- Docs: clarify that IRC uses raw TCP/TLS sockets outside operator-managed forward proxy routing, so direct IRC egress should be explicitly approved before enabling IRC. Thanks @jesse-merhi.
|
||||
- Dependencies: refresh runtime and provider packages including Pi 0.73.0, ACPX adapters, OpenAI, Anthropic, Slack, and TypeScript native preview, while keeping the Bedrock runtime installer override pinned below the Windows ARM Node 24 npm resolver failure.
|
||||
- Contributor PRs: require external pull requests to include after-fix real behavior proof from a real OpenClaw setup, with terminal screenshots, console output, redacted runtime logs, linked artifacts, and copied live output treated as valid evidence while unit tests, mocks, lint, typechecks, snapshots, and CI remain supplemental only.
|
||||
- Plugins/catalog: add an `@tencent-weixin/openclaw-weixin` external entry pinned to `2.4.1` so onboarding and `openclaw channels add` can install the Tencent Weixin (personal WeChat) channel by default. (#77269) Thanks @pumpkinxing1.
|
||||
|
||||
### Fixes
|
||||
|
||||
@@ -333,6 +334,7 @@ Docs: https://docs.openclaw.ai
|
||||
- Install/postinstall: skip noisy compile-cache prune warnings when `EACCES`/`EPERM` prevent removing shared `/tmp/node-compile-cache` entries owned by another user. Fixes #76353. (#76362) Thanks @RayWoo and @neeravmakwana.
|
||||
- Agents/messaging: surface CLI subprocess watchdog/turn timeout messages to chat users when verbose failures are off, instead of collapsing them into generic external-run failure copy. Fixes #77007. (#77015) Thanks @neeravmakwana.
|
||||
- Agents/sessions: after embedded Pi runs, append assistant-visible reply text to session JSONL only when Pi did not already persist an equivalent tail assistant entry, without re-mirroring the user prompt Pi owns. Fixes #77823. (#77839) Thanks @neeravmakwana.
|
||||
- Plugins/CLI: load the install-records ledger when listing channel-catalog entries, so npm-installed third-party channel plugins resolve through `openclaw channels login`/`channels add` instead of failing with `Unsupported channel`. (#77269) Thanks @pumpkinxing1.
|
||||
|
||||
## 2026.5.3-1
|
||||
|
||||
|
||||
@@ -200,14 +200,14 @@ describe("doctor stale plugin config helpers", () => {
|
||||
it("removes stale third-party channel config and dependent channel refs", () => {
|
||||
const result = maybeRepairStalePluginConfig({
|
||||
plugins: {
|
||||
allow: ["discord", "openclaw-weixin"],
|
||||
allow: ["discord", "missing-chat-plugin"],
|
||||
entries: {
|
||||
discord: { enabled: true },
|
||||
"openclaw-weixin": { enabled: true },
|
||||
"missing-chat-plugin": { enabled: true },
|
||||
},
|
||||
},
|
||||
channels: {
|
||||
"openclaw-weixin": {
|
||||
"missing-chat-plugin": {
|
||||
enabled: true,
|
||||
token: "stale",
|
||||
},
|
||||
@@ -216,7 +216,7 @@ describe("doctor stale plugin config helpers", () => {
|
||||
},
|
||||
modelByChannel: {
|
||||
openai: {
|
||||
"openclaw-weixin": "openai/gpt-5.4",
|
||||
"missing-chat-plugin": "openai/gpt-5.4",
|
||||
telegram: "openai/gpt-5.4",
|
||||
},
|
||||
},
|
||||
@@ -224,7 +224,7 @@ describe("doctor stale plugin config helpers", () => {
|
||||
agents: {
|
||||
defaults: {
|
||||
heartbeat: {
|
||||
target: "openclaw-weixin",
|
||||
target: "missing-chat-plugin",
|
||||
every: "30m",
|
||||
},
|
||||
},
|
||||
@@ -232,7 +232,7 @@ describe("doctor stale plugin config helpers", () => {
|
||||
{
|
||||
id: "pi",
|
||||
heartbeat: {
|
||||
target: "openclaw-weixin",
|
||||
target: "missing-chat-plugin",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -246,17 +246,17 @@ describe("doctor stale plugin config helpers", () => {
|
||||
} as OpenClawConfig);
|
||||
|
||||
expect(result.changes).toEqual([
|
||||
"- plugins.allow: removed 1 stale plugin id (openclaw-weixin)",
|
||||
"- plugins.entries: removed 1 stale plugin entry (openclaw-weixin)",
|
||||
"- channels: removed 1 stale channel config (openclaw-weixin)",
|
||||
"- agents heartbeat: removed 2 stale heartbeat targets (openclaw-weixin)",
|
||||
"- channels.modelByChannel: removed 1 stale channel model override (openclaw-weixin)",
|
||||
"- plugins.allow: removed 1 stale plugin id (missing-chat-plugin)",
|
||||
"- plugins.entries: removed 1 stale plugin entry (missing-chat-plugin)",
|
||||
"- channels: removed 1 stale channel config (missing-chat-plugin)",
|
||||
"- agents heartbeat: removed 2 stale heartbeat targets (missing-chat-plugin)",
|
||||
"- channels.modelByChannel: removed 1 stale channel model override (missing-chat-plugin)",
|
||||
]);
|
||||
expect(result.config.plugins?.allow).toEqual(["discord"]);
|
||||
expect(result.config.plugins?.entries).toEqual({
|
||||
discord: { enabled: true },
|
||||
});
|
||||
expect(result.config.channels?.["openclaw-weixin"]).toBeUndefined();
|
||||
expect(result.config.channels?.["missing-chat-plugin"]).toBeUndefined();
|
||||
expect(result.config.channels?.telegram).toEqual({ botToken: "keep" });
|
||||
expect(result.config.channels?.modelByChannel).toEqual({
|
||||
openai: {
|
||||
@@ -304,25 +304,25 @@ describe("doctor stale plugin config helpers", () => {
|
||||
|
||||
it("uses missing persisted install records as stale channel evidence", () => {
|
||||
installedPluginIndexMocks.loadInstalledPluginIndexInstallRecordsSync.mockReturnValue({
|
||||
"openclaw-weixin": {
|
||||
"missing-chat-plugin": {
|
||||
source: "npm",
|
||||
resolvedName: "@tencent-weixin/openclaw-weixin",
|
||||
resolvedName: "@example/missing-chat-plugin",
|
||||
installedAt: "2026-04-12T00:00:00.000Z",
|
||||
},
|
||||
});
|
||||
|
||||
const result = maybeRepairStalePluginConfig({
|
||||
channels: {
|
||||
"openclaw-weixin": {
|
||||
"missing-chat-plugin": {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
} as OpenClawConfig);
|
||||
|
||||
expect(result.changes).toEqual([
|
||||
"- channels: removed 1 stale channel config (openclaw-weixin)",
|
||||
"- channels: removed 1 stale channel config (missing-chat-plugin)",
|
||||
]);
|
||||
expect(result.config.channels?.["openclaw-weixin"]).toBeUndefined();
|
||||
expect(result.config.channels?.["missing-chat-plugin"]).toBeUndefined();
|
||||
});
|
||||
|
||||
it("does not auto-repair stale refs while plugin discovery has errors", () => {
|
||||
|
||||
@@ -51,6 +51,7 @@ const EXPECTED_EMPTY_CONFIG_GATEWAY_STARTUP_PLUGIN_IDS = [
|
||||
"acpx",
|
||||
"browser",
|
||||
"device-pair",
|
||||
"discord",
|
||||
"file-transfer",
|
||||
"memory-core",
|
||||
"phone-control",
|
||||
|
||||
Reference in New Issue
Block a user