Skip to content

fix(config): pause progress spinner during interactive editor spawn#9372

Merged
owlstronaut merged 1 commit into
npm:latestfrom
Zelys-DFKH:fix/pause-spinner-during-editor-spawn
May 21, 2026
Merged

fix(config): pause progress spinner during interactive editor spawn#9372
owlstronaut merged 1 commit into
npm:latestfrom
Zelys-DFKH:fix/pause-spinner-during-editor-spawn

Conversation

@Zelys-DFKH
Copy link
Copy Markdown
Contributor

Fixes #9142, Fixes #9184

When `npm config edit` or `npm edit` opens an interactive editor, the progress spinner keeps running and writes ANSI control codes into the buffer, garbling the display. Neither command called `input.start()` before opening the editor, though `help.js` and `open-url.js` already handle this correctly. Wrapping both editor spawns in `input.start()` lets the spinner step aside while the editor has control of the terminal, and closes both issues at once.

When npm config edit or npm edit opens an interactive editor, the progress
spinner kept running and wrote ANSI control codes into the editor buffer,
corrupting the display. Both commands now call input.start() before opening
the editor, which pauses the display layer while the editor has control of
the terminal. Closes npm#9142, Closes npm#9184.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Zelys-DFKH Zelys-DFKH requested review from a team as code owners May 20, 2026 01:52
@owlstronaut owlstronaut merged commit c0fc549 into npm:latest May 21, 2026
20 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #9388

owlstronaut pushed a commit that referenced this pull request May 21, 2026
…9388)

Backport of #9372 to `release/v11`.

Co-authored-by: Zelys <zelys@dfkhelper.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Broken editor when using "npm config edit --global" on Debian [BUG] npm spinner during npm config edit causes editing issues

2 participants