惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
小众软件
小众软件
J
Java Code Geeks
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
L
LangChain Blog
博客园 - 司徒正美
量子位
Y
Y Combinator Blog
C
Check Point Blog
T
Tailwind CSS Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
V
V2EX
阮一峰的网络日志
阮一峰的网络日志

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(weixin): startAccount preserves session routing (#936...
zhangguiping · 2026-06-26 · via Recent Commits to openclaw:main

@@ -1075,6 +1075,81 @@ describe("listReadOnlyChannelPluginsForConfig", () => {

10751075

expect(inheritedAccount?.config?.token).not.toBe("prototype-token");

10761076

});

107710771078+

it("ignores manifest account keys that normalize to blocked object keys", () => {

1079+

const { pluginDir } = writeExternalSetupChannelPlugin({

1080+

setupEntry: false,

1081+

pluginId: "external-chat-plugin",

1082+

channelId: "external-chat",

1083+

manifestChannelConfig: true,

1084+

});

1085+

const cfg = {

1086+

channels: {

1087+

"external-chat": {

1088+

accounts: {

1089+

"constructor ": {

1090+

token: "blocked-token",

1091+

},

1092+

},

1093+

},

1094+

},

1095+

plugins: {

1096+

load: { paths: [pluginDir] },

1097+

allow: ["external-chat-plugin"],

1098+

},

1099+

} as never;

1100+

const plugin = listReadOnlyChannelPluginsForConfig(cfg, {

1101+

env: { ...process.env },

1102+

includePersistedAuthState: false,

1103+

}).find((entry) => entry.id === "external-chat");

1104+1105+

expect(plugin?.config.listAccountIds(cfg)).toEqual([]);

1106+

const account = plugin?.config.resolveAccount(cfg, "default");

1107+

const accountFields = expectRecordFields(account, {

1108+

accountId: "default",

1109+

});

1110+

const configFields = expectRecordFields(accountFields.config, {});

1111+

expect(configFields.token).toBeUndefined();

1112+

});

1113+1114+

it("resolves manifest channel account config from raw account keys with opaque provider ids", () => {

1115+

const { pluginDir } = writeExternalSetupChannelPlugin({

1116+

setupEntry: false,

1117+

pluginId: "external-chat-plugin",

1118+

channelId: "external-chat",

1119+

manifestChannelConfig: true,

1120+

});

1121+

const cfg = {

1122+

channels: {

1123+

"external-chat": {

1124+

accounts: {

1125+

"59000514e8ad@im.bot": {

1126+

enabled: true,

1127+

baseUrl: "https://ilinkai.weixin.qq.com",

1128+

},

1129+

},

1130+

},

1131+

},

1132+

plugins: {

1133+

load: { paths: [pluginDir] },

1134+

allow: ["external-chat-plugin"],

1135+

},

1136+

} as never;

1137+

const plugin = listReadOnlyChannelPluginsForConfig(cfg, {

1138+

env: { ...process.env },

1139+

includePersistedAuthState: false,

1140+

}).find((entry) => entry.id === "external-chat");

1141+1142+

expect(plugin?.config.listAccountIds(cfg)).toEqual(["59000514e8ad-im-bot"]);

1143+

const account = plugin?.config.resolveAccount(cfg, "59000514e8ad-im-bot");

1144+

const fields = expectRecordFields(account, {

1145+

accountId: "59000514e8ad-im-bot",

1146+

});

1147+

expectRecordFields(fields.config, {

1148+

enabled: true,

1149+

baseUrl: "https://ilinkai.weixin.qq.com",

1150+

});

1151+

});

1152+10781153

it("keeps setup-entry precedence when channel config descriptors are not runtime cutoffs", () => {

10791154

const { pluginDir, fullMarker, setupMarker } = writeExternalSetupChannelPlugin({

10801155

pluginId: "external-chat-plugin",