Skip to content

fix(core): prevent TUI crash when task output arrives after completion#34785

Merged
AgentEnder merged 1 commit into
masterfrom
gh-34677
Mar 21, 2026
Merged

fix(core): prevent TUI crash when task output arrives after completion#34785
AgentEnder merged 1 commit into
masterfrom
gh-34677

Conversation

@leosvelperez
Copy link
Copy Markdown
Member

Current Behavior

nx run-many with TUI enabled crashes with TypeError: Cannot read properties of undefined (reading 'push') in tui-summary-life-cycle.ts when appendTaskOutput is called for a task whose output entry was already cleaned up by endTasks.

Expected Behavior

Late-arriving task output after endTasks has finalized the task is silently discarded instead of crashing. The output is redundant since it was already captured when the task completed.

Related Issue(s)

Fixes #34677

@leosvelperez leosvelperez requested a review from a team as a code owner March 11, 2026 13:00
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 11, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 618a997
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69b16776b490e70008847c1e
😎 Deploy Preview https://deploy-preview-34785--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 11, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 618a997
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69b16776d81e1a00081a8d30
😎 Deploy Preview https://deploy-preview-34785--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Mar 11, 2026

View your CI Pipeline Execution ↗ for commit 618a997

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 52m 42s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 27s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 7s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-11 13:59:38 UTC

@leosvelperez leosvelperez self-assigned this Mar 16, 2026
@AgentEnder AgentEnder merged commit 5e5184e into master Mar 21, 2026
24 checks passed
@AgentEnder AgentEnder deleted the gh-34677 branch March 21, 2026 02:19
FrozenPandaz pushed a commit that referenced this pull request Mar 26, 2026
#34785)

## Current Behavior

`nx run-many` with TUI enabled crashes with `TypeError: Cannot read
properties of undefined (reading 'push')` in `tui-summary-life-cycle.ts`
when `appendTaskOutput` is called for a task whose output entry was
already cleaned up by `endTasks`.

## Expected Behavior

Late-arriving task output after `endTasks` has finalized the task is
silently discarded instead of crashing. The output is redundant since it
was already captured when the task completed.

## Related Issue(s)

Fixes #34677

(cherry picked from commit 5e5184e)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run-many crashes when run with tui

2 participants