nx icon indicating copy to clipboard operation
nx copied to clipboard

fix(core): ensure `terminalOutput` is always a string in task results

Open leosvelperez opened this issue 13 hours ago • 3 comments

Current Behavior

When some tasks fail during execution, it can result in a cryptic:

Failed to convert JavaScript value 'Undefined' into rust type 'String'

This happens because the reported terminalOutput for the errored tasks can be undefined, and it hides the actual error that occurred.

Expected Behavior

Error handling paths should always provide a valid string for terminalOutput, using the error stack/message, or an empty string as a fallback.

Related Issue(s)

Fixes #32675

leosvelperez avatar Dec 10 '25 14:12 leosvelperez