MCPcopy Create free account
hub / github.com/github/gh-aw / isMissingApiKeyError

Function isMissingApiKeyError

actions/setup/js/codex_harness.cjs:136–138  ·  view source on GitHub ↗

* Determines if the collected output indicates a missing API key at startup. * Codex exits before producing any agent output in this case, so retrying is futile. * @param {string} output - Collected stdout+stderr from the process * @returns {boolean}

(output)

Source from the content-addressed store, hash-verified

134 * @returns {boolean}
135 */
136function isMissingApiKeyError(output) {
137 return MISSING_API_KEY_PATTERN.test(output);
138}
139
140/**
141 * Determines if the collected output contains an OpenAI server error.

Callers 3

mainFunction · 0.85
shouldRetryFunction · 0.85

Calls

no outgoing calls

Tested by 1

shouldRetryFunction · 0.68