test(codex): dedupe context engine binding helper · openclaw/openclaw@759b790
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -264,23 +264,6 @@ function createContextEngine(overrides: Partial<ContextEngine> = {}): ContextEng
|
264 | 264 | return engine; |
265 | 265 | } |
266 | 266 | |
267 | | -const DISABLED_CODEX_WEB_SEARCH_THREAD_CONFIG_FINGERPRINT = JSON.stringify({ |
268 | | -"features.standalone_web_search": false, |
269 | | -web_search: "disabled", |
270 | | -}); |
271 | | - |
272 | | -function writeCodexAppServerBinding(...args: Parameters<typeof writeRawCodexAppServerBinding>) { |
273 | | -const [sessionFile, binding, lookup] = args; |
274 | | -return writeRawCodexAppServerBinding( |
275 | | -sessionFile, |
276 | | -{ |
277 | | -webSearchThreadConfigFingerprint: DISABLED_CODEX_WEB_SEARCH_THREAD_CONFIG_FINGERPRINT, |
278 | | - ...binding, |
279 | | -}, |
280 | | -lookup, |
281 | | -); |
282 | | -} |
283 | | - |
284 | 267 | type MockCallReader = { mock: { calls: unknown[][] } }; |
285 | 268 | |
286 | 269 | function requireRecord(value: unknown, label: string): Record<string, unknown> { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。