refactor(codex): drop unused app-server helpers · openclaw/openclaw@10b8b32
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,26 +29,6 @@ const loadSharedClientModule = async () => {
|
29 | 29 | return await sharedClientModulePromise; |
30 | 30 | }; |
31 | 31 | |
32 | | -/** Returns the process-shared app-server client for normal attempt reuse. */ |
33 | | -export const defaultCodexAppServerClientFactory: CodexAppServerClientFactory = ( |
34 | | -startOptions, |
35 | | -authProfileId, |
36 | | -agentDir, |
37 | | -config, |
38 | | -options, |
39 | | -) => |
40 | | -loadSharedClientModule().then(({ getSharedCodexAppServerClient }) => |
41 | | -getSharedCodexAppServerClient({ |
42 | | - startOptions, |
43 | | - authProfileId, |
44 | | - agentDir, |
45 | | - config, |
46 | | -onStartedClient: options?.onStartedClient, |
47 | | -abandonSignal: options?.abandonSignal, |
48 | | -timeoutMs: options?.timeoutMs, |
49 | | -}), |
50 | | -); |
51 | | - |
52 | 32 | /** Returns a leased shared client so startup can release ownership explicitly. */ |
53 | 33 | export const defaultLeasedCodexAppServerClientFactory: CodexAppServerClientFactory = ( |
54 | 34 | startOptions, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,10 +80,6 @@ class CodexThreadStartRequestError extends Error {
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | | -export function isCodexThreadStartRequestError(error: unknown): boolean { |
84 | | -return error instanceof CodexThreadStartRequestError; |
85 | | -} |
86 | | - |
87 | 83 | export type CodexThreadFinalConfigPatchDecision = |
88 | 84 | | { action: "resume"; binding: CodexAppServerThreadBinding } |
89 | 85 | | { action: "start" }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。