Commit c6ab2eb
authored
fix: prevent spinner from interfering with 2FA prompt in heroku run and heroku console (#3545)
fix: prevent spinner from interfering with 2FA prompt in heroku run
Moved the "Running <command> on <app>" status message to display
after the dyno is successfully created, rather than before the API
call. This ensures the spinner doesn't interfere with inquirer's
readline interface when a 2FA prompt is displayed during the dyno
creation POST request.
Previously, the spinner would start before the API call, and if 2FA
was required, inquirer would try to prompt while the spinner was
still active, causing the prompt to be reprinted on every keystroke.1 parent a1a4ece commit c6ab2eb
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
0 commit comments