mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-11 13:21:03 +00:00
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
|
|
@ -147,6 +147,9 @@ export namespace Pty {
|
|||
log.info("session exited", { id, exitCode })
|
||||
session.info.status = "exited"
|
||||
Bus.publish(Event.Exited, { id, exitCode })
|
||||
for (const ws of session.subscribers) {
|
||||
ws.close()
|
||||
}
|
||||
state().delete(id)
|
||||
})
|
||||
Bus.publish(Event.Created, { info })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue