Skip to content

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

Open
Zelys-DFKH wants to merge 1 commit into
npm:latestfrom
Zelys-DFKH:fix/pause-spinner-during-editor-spawn
Open

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

Conversation

@Zelys-DFKH
Copy link
Copy Markdown

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

1 participant