Merge pull request #789 from thecodacus/bolt-shell-race-condition

fix: added wait till terminal prompt for bolt shell execution
This commit is contained in:
Anirban Kar 2024-12-19 14:50:37 +05:30 committed by GitHub
commit 95dbcf1eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,6 +105,7 @@ export class BoltShell {
* this.#shellInputStream?.write('\x03');
*/
this.terminal.input('\x03');
await this.waitTillOscCode('prompt');
if (state && state.executionPrms) {
await state.executionPrms;