fix(app): terminal no longer hangs on exit or ctrl + D and closes the pane (#9506)
This commit is contained in:
parent
ac7e674a87
commit
01b12949e3
3 changed files with 31 additions and 0 deletions
|
|
@ -385,6 +385,19 @@ export default function Page() {
|
|||
terminal.new()
|
||||
})
|
||||
|
||||
createEffect(
|
||||
on(
|
||||
() => terminal.all().length,
|
||||
(count, prevCount) => {
|
||||
if (prevCount !== undefined && prevCount > 0 && count === 0) {
|
||||
if (view().terminal.opened()) {
|
||||
view().terminal.toggle()
|
||||
}
|
||||
}
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
createEffect(
|
||||
on(
|
||||
() => visibleUserMessages().at(-1)?.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue