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

推荐订阅源

G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
V
Visual Studio Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
I
InfoQ
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
P
Proofpoint News Feed
WordPress大学
WordPress大学
小众软件
小众软件
B
Blog
MongoDB | Blog
MongoDB | Blog
人人都是产品经理
人人都是产品经理
量子位
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客

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(codex): keep native hook relay config final · opencla...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -6414,6 +6414,85 @@ describe("runCodexAppServerAttempt", () => {

64146414

expect(binding?.pluginAppPolicyContext).toEqual(pluginAppPolicyContext);

64156415

});

641664166417+

it("keeps native hook relay config as the final thread config patch", async () => {

6418+

const sessionFile = path.join(tempDir, "session.jsonl");

6419+

const workspaceDir = path.join(tempDir, "workspace");

6420+

const params = createParams(sessionFile, workspaceDir);

6421+

const appServer = createThreadLifecycleAppServerOptions();

6422+

const request = vi.fn(async (method: string) => {

6423+

if (method === "thread/start" || method === "thread/resume") {

6424+

return threadStartResult("thread-hooks");

6425+

}

6426+

throw new Error(`unexpected method: ${method}`);

6427+

});

6428+

const pluginAppPolicyContext = createPluginAppPolicyContext();

6429+

const finalConfigPatch = {

6430+

"features.hooks": true,

6431+

"hooks.PreToolUse": [

6432+

{

6433+

hooks: [{ type: "command", command: "openclaw-native-hook-relay", timeout: 5 }],

6434+

},

6435+

],

6436+

};

6437+

const buildPluginThreadConfig = vi.fn(async () => ({

6438+

enabled: true,

6439+

configPatch: {

6440+

"features.hooks": false,

6441+

"hooks.PreToolUse": [],

6442+

...createPluginAppConfigPatch(),

6443+

},

6444+

fingerprint: "plugin-apps-config-1",

6445+

inputFingerprint: "plugin-apps-input-1",

6446+

policyContext: pluginAppPolicyContext,

6447+

diagnostics: [],

6448+

}));

6449+

const pluginThreadConfig = {

6450+

enabled: true,

6451+

inputFingerprint: "plugin-apps-input-1",

6452+

build: buildPluginThreadConfig,

6453+

};

6454+6455+

await startOrResumeThread({

6456+

client: { request } as never,

6457+

params,

6458+

cwd: workspaceDir,

6459+

dynamicTools: [],

6460+

appServer,

6461+

config: { "features.hooks": false },

6462+

finalConfigPatch,

6463+

pluginThreadConfig,

6464+

});

6465+

await startOrResumeThread({

6466+

client: { request } as never,

6467+

params,

6468+

cwd: workspaceDir,

6469+

dynamicTools: [],

6470+

appServer,

6471+

config: { "features.hooks": false },

6472+

finalConfigPatch,

6473+

pluginThreadConfig: {

6474+

...pluginThreadConfig,

6475+

enabledPluginConfigKeys: ["google-calendar"],

6476+

},

6477+

});

6478+6479+

const requestCalls = request.mock.calls as unknown as Array<[string, { config?: unknown }]>;

6480+

expect(requestCalls.map(([method]) => method)).toEqual(["thread/start", "thread/resume"]);

6481+

expect(requestCalls[0]?.[1].config).toMatchObject({

6482+

"features.hooks": true,

6483+

"features.code_mode": true,

6484+

"features.code_mode_only": true,

6485+

"hooks.PreToolUse": finalConfigPatch["hooks.PreToolUse"],

6486+

...createPluginAppConfigPatch(),

6487+

});

6488+

expect(requestCalls[1]?.[1].config).toMatchObject({

6489+

"features.hooks": true,

6490+

"features.code_mode": true,

6491+

"features.code_mode_only": true,

6492+

"hooks.PreToolUse": finalConfigPatch["hooks.PreToolUse"],

6493+

});

6494+

});

6495+64176496

it("revalidates compatible plugin app bindings without resending app config", async () => {

64186497

const sessionFile = path.join(tempDir, "session.jsonl");

64196498

const workspaceDir = path.join(tempDir, "workspace");