Skip to content

Commit a0599c8

Browse files
gololdf1shclaude
andcommitted
fix(plugin): guard against undefined step.name in retryFailedStep
In `run-workers` mode, `event.step.started` can fire with a step object whose `name` property is undefined. The `ignoredSteps` loop then calls `.startsWith()` and `.match()` on `undefined`, crashing the worker with: TypeError: Cannot read properties of undefined (reading 'startsWith') Add an early return when `step.name` is falsy so the plugin skips the step instead of crashing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6ec6690 commit a0599c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/plugin/retryFailedStep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export default function (config) {
111111
}
112112

113113
event.dispatcher.on(event.step.started, step => {
114+
if (!step.name) return
114115
for (const ignored of config.ignoredSteps) {
115116
if (step.name === ignored) return
116117
if (ignored instanceof RegExp) {

0 commit comments

Comments
 (0)