Repository navigation
Commit 674e477
fix(tui): lift the key emitter listener cap and align the solid-js peer (#493)
#380 item 1: @opentui/solid's useKeyboard/usePaste mount one listener per component on the
shared renderer.keyInput emitter (core registers its own keypress listener there too), and
nothing in @opentui/[email protected] raises the cap, so Node's default of 10 per event is reached by
a couple of in-tree hooks plus ~8 plugin components. The resulting MaxListenersExceededWarning
is routed into opentui's console cache, so it is invisible and only makes the cap harder to
notice. Raise the cap on keyInput next to the existing renderer.setMaxListeners(0), and cover
it with an app-lifecycle test that fails without the fix with "Expected: 0 / Received: 10".
#380 item 3: the catalog pinned solid-js 1.9.10 while @opentui/[email protected] requires the exact
peer 1.9.12. Bumping to 1.9.12 means 4 of the 10 hunks in patches/[email protected] (the
anomalyco#2046 transition fix) are already upstream and no longer apply, so the patch is re-derived for
1.9.12 keeping only the 6 still-needed cleanNode capture hunks.
#380 item 2 (dead win32InstallCtrlCGuard) is already satisfied on this base: tui.ts:17 imports
it, :203 installs it and :346 uninstalls it, since 54a2ee5. 0.6.6 never touches
ENABLE_PROCESSED_INPUT/SetConsoleMode itself, so the guard is not obsolete and stays as is.
Fixes #380
Co-authored-by: agenteinstinct1-max <[email protected]>
Co-authored-by: arena-agent <[email protected]>1 parent 73ddbc6 commit 674e477
5 files changed
Lines changed: 79 additions & 51 deletions
File tree
- packages/tui
- src
- test
- patches
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
418 | 423 | | |
419 | 424 | | |
420 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 5 | + | |
15 | 6 | | |
16 | 7 | | |
17 | 8 | | |
| |||
37 | 28 | | |
38 | 29 | | |
39 | 30 | | |
40 | | - | |
| 31 | + | |
41 | 32 | | |
42 | 33 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 34 | + | |
53 | 35 | | |
54 | 36 | | |
55 | 37 | | |
| |||
117 | 99 | | |
118 | 100 | | |
119 | 101 | | |
120 | | - | |
| 102 | + | |
121 | 103 | | |
122 | 104 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 105 | + | |
133 | 106 | | |
134 | 107 | | |
135 | 108 | | |
| |||
155 | 128 | | |
156 | 129 | | |
157 | 130 | | |
158 | | - | |
| 131 | + | |
159 | 132 | | |
160 | 133 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 134 | + | |
171 | 135 | | |
172 | 136 | | |
173 | 137 | | |
| |||
0 commit comments