Commit 2337e35
tui: say so when a hand-off exits without running
"deepseek exited (code 0). back in the pit." is what the pit printed for a
CLI that never ran a single line, and it reads as a clean session — so the
bug looked like it was in the hand-off rather than in the engine.
It is a real failure mode, not a hypothetical: @serjm/deepseek-code 0.5.0
decides whether it is the entrypoint by comparing resolve(process.argv[1])
against import.meta.url, and npm installs every global bin as a symlink, so
the comparison never matches, the program falls off the end having done
nothing, and exits 0.
The child owns the terminal, so its output is not ours to read — but the
clock is enough. An exit of 0 in under a second and a half did not host a
session anybody used, and saying "this usually means a broken install"
points at the right program without claiming to know why.
Only for silent success: a non-zero exit already says something went wrong,
and the engine has usually printed why.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b1216fc commit 2337e35
2 files changed
Lines changed: 62 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
467 | 496 | | |
468 | 497 | | |
469 | 498 | | |
| |||
479 | 508 | | |
480 | 509 | | |
481 | 510 | | |
| 511 | + | |
482 | 512 | | |
| 513 | + | |
483 | 514 | | |
484 | 515 | | |
485 | 516 | | |
| |||
488 | 519 | | |
489 | 520 | | |
490 | 521 | | |
| 522 | + | |
| 523 | + | |
491 | 524 | | |
492 | 525 | | |
493 | 526 | | |
| |||
497 | 530 | | |
498 | 531 | | |
499 | 532 | | |
| 533 | + | |
500 | 534 | | |
| 535 | + | |
501 | 536 | | |
502 | 537 | | |
503 | 538 | | |
504 | 539 | | |
505 | 540 | | |
506 | 541 | | |
507 | 542 | | |
| 543 | + | |
| 544 | + | |
508 | 545 | | |
509 | 546 | | |
510 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 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 | + | |
0 commit comments