MCPcopy
hub / github.com/openclaw/clawsweeper / codexProcessErrorCode

Function codexProcessErrorCode

src/codex-process.ts:131–135  ·  view source on GitHub ↗
(error: Error | undefined)

Source from the content-addressed store, hash-verified

129}
130
131export function codexProcessErrorCode(error: Error | undefined): string | null {
132 if (!error || !("code" in error)) return null;
133 const code = (error as NodeJS.ErrnoException).code;
134 return typeof code === "string" ? code : null;
135}
136
137function normalizedTailBytes(value: number | undefined): number {
138 if (value === undefined) return DEFAULT_CODEX_OUTPUT_TAIL_BYTES;

Callers 3

runCodexFunction · 0.85
runReviewPassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected