Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit bdd87ef

Browse files
committed
fix(plugins/plugin-bashlike): when an XtermResponse is not an error, it has no code field
Fixes #6177
1 parent 0691c4d commit bdd87ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/plugin-bash-like/src/pty/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ async function initOnMessage(
631631
respondToRepl({
632632
apiVersion: 'kui-shell/v1',
633633
kind: 'XtermResponse',
634-
rows: copy(terminal)
634+
rows: copy(terminal),
635+
code: 0 // to be over-written in the case of an error response
635636
})
636637
})
637638
}

0 commit comments

Comments
 (0)