Commit 7b618d3
committed
feat(mobile): terminal toolbar + native vi + auto-install Alpine tools
- feat(terminal): mobile toolbar sends raw bytes via new onSend prop on
<Terminal>. Toolbar exposes Esc, Tab, arrows, Home/End, PgUp/PgDn, Del,
F1-F12, `:`, `|`, `/`, `~`, and sticky Ctrl/Alt modifier toggles. Fixes
Vim/less/htop/... which failed because the previous synthetic
KeyboardEvent dispatch sent code:"c" where ghostty-web's mapKeyCode
expects USB-HID "KeyC".
- fix(mobile-runtime): route vi/vim/less/more/top/sed and ~80 other
interactive applets to /system/bin/toybox (dynamic-bionic, seccomp-
safe) instead of libbusybox_exec.so. Busybox is static-linked and
uses modern syscalls blocked by Android zygote seccomp, so vi hit
SIGSYS ("bad system call"). Also symlink runtime/bin/ to system
/system/bin/curl|strace|wget|awk when present.
- feat(mobile-runtime): install_extended_env now auto-installs ~30
developer tools (nano, git, tmux, screen, openssh-client, rsync,
python3, nodejs, npm, jq, tree, htop, fzf, fd, bat, exa, ripgrep,
make, patch, vim, ...) via apk add after the Alpine rootfs is
extracted, then creates proot-run wrappers in runtime/bin/ so each
tool is callable by name without any user-visible setup step.
- feat(mobile-boot): ExtractionProgress (first-launch screen) now
chains extractRuntime then installExtendedEnv, so new users get the
full toolchain automatically — no hidden menu, no manual command.
Progress bar and "~3 min, ~90MB download" hint updated accordingly.
- ship diagnostic shim libsigsys_trace.so (dormant; LD_PRELOAD-able
for future bionic-target syscall tracing — no effect on static
busybox where it was first tested).
Remaining: first-prompt-invisible-in-portrait bug is still open. Four
hypotheses tested and reverted (no effect observed). Synthesis with
device-captured observations and five pistes is in
MOBILE_TERMINAL_STATE.md for the human taking over.1 parent 86e4a99 commit 7b618d3
8 files changed
Lines changed: 655 additions & 66 deletions
File tree
- packages
- app/src
- components
- pages/session
- mobile
- src-tauri
- gen/android/app/src/main/jni
- src
- src
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
261 | | - | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
812 | 813 | | |
813 | 814 | | |
814 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
815 | 822 | | |
816 | 823 | | |
817 | 824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 28 | + | |
| 29 | + | |
41 | 30 | | |
42 | 31 | | |
43 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
44 | 36 | | |
| 37 | + | |
45 | 38 | | |
46 | | - | |
| 39 | + | |
47 | 40 | | |
48 | 41 | | |
49 | | - | |
50 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
63 | 106 | | |
64 | 107 | | |
65 | 108 | | |
| |||
70 | 113 | | |
71 | 114 | | |
72 | 115 | | |
73 | | - | |
| 116 | + | |
74 | 117 | | |
75 | | - | |
76 | | - | |
| 118 | + | |
| 119 | + | |
77 | 120 | | |
78 | 121 | | |
79 | 122 | | |
| |||
82 | 125 | | |
83 | 126 | | |
84 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
85 | 142 | | |
86 | 143 | | |
87 | 144 | | |
88 | 145 | | |
89 | | - | |
| 146 | + | |
90 | 147 | | |
91 | 148 | | |
92 | 149 | | |
| |||
115 | 172 | | |
116 | 173 | | |
117 | 174 | | |
| 175 | + | |
118 | 176 | | |
119 | 177 | | |
120 | 178 | | |
| |||
365 | 423 | | |
366 | 424 | | |
367 | 425 | | |
368 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
369 | 430 | | |
370 | 431 | | |
371 | 432 | | |
| |||
387 | 448 | | |
388 | 449 | | |
389 | 450 | | |
| 451 | + | |
390 | 452 | | |
391 | 453 | | |
392 | 454 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| |||
0 commit comments