Commit 9219ad1
fix render lifecycle race: await ink unmount before resolving
renderTasks and renderSingleTask resolved their promises via
onComplete={resolve}, which fires inside the React tree before
ink unmounts. This caused the caller to write to stdout while
ink was still tearing down, resulting in loading bars staying
visible and last lines of output being cut off.
Changed both functions to await render() (which awaits
waitUntilExit()) before returning, matching the pattern the
prompt functions already use.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 128f408 commit 9219ad1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
0 commit comments