cant figure out why the wierd keyboard issue happens, disabled auto reconnect on accepting the key.

fix the ghost sessions
This commit is contained in:
neon443 committed 2025-08-05 11:39:51 +01:00
1 parent ca34d3eafb
commit 978e39cb3b
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -113,8 +113,8 @@ struct ConnectionView: View {
Button(role: .destructive) { Button(role: .destructive) {
handler.host.key = handler.getHostkey() handler.host.key = handler.getHostkey()
handler.disconnect() handler.disconnect()
handler.go() // handler.go()
showTerminal = checkShell(handler.state) // showTerminal = checkShell(handler.state)
} label: { } label: {
Text("Accept Hostkey") Text("Accept Hostkey")
} }
@@ -52,6 +52,7 @@ struct ShellTabView: View {
for session in container.sessions.values { for session in container.sessions.values {
session.handler.disconnect() session.handler.disconnect()
} }
container.sessions.removeAll()
dismiss() dismiss()
} label: { } label: {
TrafficLightRed() TrafficLightRed()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.