Skip to content

Commit 69c0bf5

Browse files
committed
fix: added wait till terminal prompt for bolt shell execution
1 parent 0ee3736 commit 69c0bf5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/commit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "commit": "1e72d52278730f7d22448be9d5cf2daf12559486", "version": "0.0.2" }
1+
{ "commit": "0ee373629789f01fb9f54f6747735b51a94a5562" }

app/utils/shell.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export class BoltShell {
105105
* this.#shellInputStream?.write('\x03');
106106
*/
107107
this.terminal.input('\x03');
108+
await this.waitTillOscCode('prompt');
108109

109110
if (state && state.executionPrms) {
110111
await state.executionPrms;
@@ -145,6 +146,10 @@ export class BoltShell {
145146
terminalOutput.pipeTo(
146147
new WritableStream({
147148
write(data) {
149+
/*
150+
* const [, osc] = data.match(/\x1b\]654;([^\x07]+)\x07/) || [];
151+
* console.log('terminal onData', { data,osc });
152+
*/
148153
if (!isInteractive) {
149154
const [, osc] = data.match(/\x1b\]654;([^\x07]+)\x07/) || [];
150155

0 commit comments

Comments
 (0)