{"record":{"id":"4dd41c8570388e0d","repo":"deepseek-ai/deepseek-harness","slug":"workflow-name-listener-rejected-renderliste","errorCode":null,"errorMessage":"workflow: ${name} listener rejected: ${renderListenerError(error)}","messagePattern":"workflow: (.+?) listener rejected: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/workflow/workflow/src/index.ts","lineNumber":180,"sourceCode":"  /**\n   * Parse and execute a workflow script.\n   * @param request - the script, its `args`, the parent agent, and an\n   *   optional cancel signal.\n   * @returns the live run; its `result` resolves when the script settles.\n   */\n  abstract start(request: WorkflowStartRequest): WorkflowRun\n\n  /**\n   * Emit a lifecycle event while containing and logging each listener failure.\n   * @param name - the `workflow/*` event to dispatch.\n   * @param args - the event's payload, matching its declared signature.\n   */\n  protected emitWorkflowEvent(name: WorkflowEventName, ...args: unknown[]): void {\n    for (const callback of this.ctx.events.dispatch('emit', [name, ...args])) {\n      try {\n        const returned: unknown = (callback as (...payload: unknown[]) => unknown)(...args)\n        void Promise.resolve(returned).catch((error: unknown) => {\n          this.ctx.logger.warn(`workflow: ${name} listener rejected: ${renderListenerError(error)}`)\n        })\n      } catch (error: unknown) {\n        this.ctx.logger.warn(`workflow: ${name} listener threw: ${renderListenerError(error)}`)\n      }\n    }\n  }\n}\n\n/**\n * Render any thrown value without violating listener containment.\n * @param error - any thrown value.\n * @returns `String(error)`, or a fixed label when even coercion throws.\n */\nfunction renderListenerError(error: unknown): string {\n  try {\n    return String(error)\n  } catch {\n    // String coercion itself may throw.","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/workflow/src/index.ts#L162-L198","documentation":"Error \"workflow: ${name} listener rejected: ${renderListenerError(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/workflow/src/index.ts:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the async workflow listener for the named event so its promise resolves."],"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"}