ok its fixed, but now the scrollback restore at startup causes a biit of text to be missed

This commit is contained in:
neon443 committed 2025-07-04 17:01:52 +01:00
1 parent a495419348
commit 6ce6f5c823
1 file changed
+1 -1
@@ -25,7 +25,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
applySelectedTheme()
Task {
// await restoreScrollback()
await startFeedLoop()
}
}
@@ -34,6 +33,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
guard let scrollback = handler?.scrollback else { return }
guard !scrollback.isEmpty else { return }
try? await Task.sleep(nanoseconds: 10_000_000)
await MainActor.run {
self.getTerminal().resetToInitialState()
for line in scrollback {
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.