{"record":{"id":"2206851ee7abe55c","repo":"deepseek-ai/deepseek-harness","slug":"subagent-codex-this-name-child-run-failed","errorCode":null,"errorMessage":"subagent-codex \"${this.name}\": child run failed (${stopReason}): ${error.message}","messagePattern":"subagent-codex \"(.+?)\": child run failed \\((.+?)\\): (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/subagent/subagent-codex/src/index.ts","lineNumber":99,"sourceCode":"        undefined,\n        parentCwd,\n      )\n    } catch (error: unknown) {\n      if (request.signal.aborted) {\n        throw new Error(\n          'subagent-codex: request was aborted before app-server startup',\n        )\n      }\n      throw codexStartupFailure(error)\n    }\n    const spec: CodexRunSpec = {\n      cwd,\n      permissionMode: this.config.permissionMode,\n      env: this.config.env,\n      disposeGraceMs: this.config.disposeGraceMs,\n      spawn: spawnSpec => this.ctx.subprocess.spawn(spawnSpec),\n      onError: (error, stopReason) => {\n        this.ctx.logger.warn(\n          `subagent-codex \"${this.name}\": child run failed (${stopReason}): ${error.message}`,\n        )\n      },\n    }\n    return startCodexRun(request, spec)\n  }\n}\n\n/**\n * Register one Profile-named Codex provider.\n * @param ctx - context carrying shared subagent and subprocess services.\n * @param config - registry name, permission mode, child environment, and disposal grace.\n */\nexport function apply(ctx: Context, config: Config): void {\n  const resolved: ResolvedConfig = {\n    providerName: config.providerName ?? DEFAULT_PROVIDER_NAME,\n    env: config.env as Record<string, string>,\n    permissionMode: config.permissionMode ?? DEFAULT_CODEX_PERMISSION_MODE,","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subagent/subagent-codex/src/index.ts#L81-L117","documentation":"Error \"subagent-codex \"${this.name}\": child run failed (${stopReason}): ${error.message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subagent/subagent-codex/src/index.ts:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Codex child logs for the stopReason and error message; fix the child configuration and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}