Commit cfaf9c1
authored
refactor: Cut dead code paths (#438)
## Summary
- remove the legacy debug-only `/rollout` and `/test-approval` slash
commands from the TUI command surface and their dead handlers/tests
- trim compatibility-only `login_status` and `auth_manager` fields from
the Nori onboarding args so the Nori path only carries live data
- delete the orphaned top-level update modules and stale snapshot, and
refresh `codex-rs/tui/docs.md` so it documents the Nori update path that
actually ships in `nori`
## Why
This PR is a dead-code cleanup pass focused on the ACP-backed Nori CLI.
It removes compatibility baggage and uncompiled upstream leftovers from
`nori-tui`, which keeps the branch net-negative and reduces accidental
complexity in the code that matters for the `nori` binary.
## Validation
- `RUSTC_WRAPPER= cargo test -p nori-tui --manifest-path
codex-rs/Cargo.toml`
- `RUSTC_WRAPPER= cargo build --bin nori --manifest-path
codex-rs/Cargo.toml`
- `RUSTC_WRAPPER= cargo test -p tui-pty-e2e --manifest-path
codex-rs/Cargo.toml`
- `RUSTC_WRAPPER= just fix -p nori-tui`
- `just fmt`
- launched `./target/debug/nori --agent elizacp --skip-trust-directory`
in an isolated tmux session, submitted `hello`, observed an ElizACP
reply, and verified the prompt returned1 parent 1c9f96f commit cfaf9c1
10 files changed
Lines changed: 47 additions & 777 deletions
File tree
- codex-rs/tui
- src
- chatwidget
- tests
- nori/onboarding
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
| |||
843 | 841 | | |
844 | 842 | | |
845 | 843 | | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
850 | 848 | | |
851 | 849 | | |
852 | 850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 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 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | 224 | | |
273 | 225 | | |
274 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 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 | 34 | | |
71 | 35 | | |
72 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| 22 | + | |
26 | 23 | | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
56 | 52 | | |
57 | 53 | | |
58 | 54 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 55 | | |
66 | 56 | | |
67 | 57 | | |
| |||
90 | 80 | | |
91 | 81 | | |
92 | 82 | | |
93 | | - | |
94 | | - | |
95 | 83 | | |
96 | 84 | | |
97 | 85 | | |
| |||
375 | 363 | | |
376 | 364 | | |
377 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
378 | 369 | | |
379 | 370 | | |
380 | 371 | | |
381 | 372 | | |
382 | 373 | | |
383 | 374 | | |
384 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
385 | 392 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | | - | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
106 | | - | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
111 | 105 | | |
112 | | - | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| |||
290 | 283 | | |
291 | 284 | | |
292 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
293 | 308 | | |
294 | 309 | | |
295 | 310 | | |
| |||
Lines changed: 0 additions & 13 deletions
This file was deleted.
This file was deleted.
0 commit comments