Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(mobile): avoid iOS terminal reset on clear (#5440)
Justyn Leunga17459e8a93a
diff --git a/apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift b/apps/mobile/modules/t3-terminal/ios/T3TerminalView.swiftindex 659837fc7..cee4d0427 100644--- a/apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift+++ b/apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift@@ -535,6 +535,12 @@ public final class T3TerminalView: ExpoView, UITextFieldDelegate {return}+ if buffer.isEmpty {+ feedData(Data("\u{1B}[3J\u{1B}[H\u{1B}[2J".utf8))+ lastAppliedBuffer = ""+ return+ }+if buffer.hasPrefix(lastAppliedBuffer) {let suffix = String(buffer.dropFirst(lastAppliedBuffer.count))feedData(Data(suffix.utf8))