Commit 55c0018
assembly live: exit cleanly on Ctrl-C during TUI setup
A Ctrl-C during the voice TUI's setup — opening the mic, building the deepagents
graph, loading --mcp-config servers — lands before Textual captures the keyboard,
so it surfaced as a raw KeyboardInterrupt (and, mid asyncio.run/threading
teardown, a noisy traceback). The line-renderer path already mapped this to a
clean exit 130; the TUI dispatch did not. Extract a _launch_tui helper that wraps
_run_live_tui and maps a setup-time KeyboardInterrupt to typer.Exit(130), matching
the assembly code TUI. (In-session Ctrl-C is already a Textual binding, so it never
reaches the graph as an exception.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent be20e9c commit 55c0018
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
250 | 264 | | |
251 | 265 | | |
252 | 266 | | |
| |||
290 | 304 | | |
291 | 305 | | |
292 | 306 | | |
293 | | - | |
| 307 | + | |
294 | 308 | | |
295 | 309 | | |
296 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
421 | 436 | | |
422 | 437 | | |
423 | 438 | | |
| |||
0 commit comments