The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 01:45 UTC
fix(mobile): Android terminal input no longer triggers password autofill (#20051)
Co-authored-by: Julius Marminge <julius0216@outlook.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
voida6 committed
Oct 19, 2026 at 16:53 UTC
bf2608a21794a3eec27d72288fe326cba9351725
1 file changed
+7
-1
apps/mobile/modules/t3-terminal/android/src/main/java/expo/modules/t3terminal/T3TerminalView.kt
+7
-1
@@ -7,6 +7,7 @@ import android.text.Editable
7
import android.text.InputType
8
import android.text.TextWatcher
9
import android.view.KeyEvent
10
+import android.view.View
11
import android.view.ViewGroup
12
import android.view.inputmethod.EditorInfo
13
import android.view.inputmethod.InputMethodManager
@@ -20,7 +21,12 @@ import kotlin.math.max
21
class T3TerminalView(context: Context, appContext: AppContext) : ExpoView(context, appContext) {
22
private val container = FrameLayout(context)
23
private val terminalCanvas = TerminalCanvasView(context)
23
- private val inputView = EditText(context)
24
+
25
+ // Newer Android can request autofill even with importantForAutofill=no.
26
+ // Reporting no autofill type keeps terminal input out of credential autofill.
27
+ private val inputView = object : EditText(context) {
28
+ override fun getAutofillType(): Int = View.AUTOFILL_TYPE_NONE
29
+ }
30
private val onInput by EventDispatcher()
31
private val onResize by EventDispatcher()
32
private val onCapture by EventDispatcher()