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

View File

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