Commit d1d62a1
fix(doctor): address code review feedback on PR aaddrick#324
Address all three review issues from @aaddrick:
Issue 1 (severity mismatch): Implement _kvm_active/_kvm_issue pattern
to vary severity of KVM-specific tool checks (QEMU, socat, virtiofsd).
When KVM is not the active/intended backend, missing KVM tools show as
plain info lines instead of warnings. bubblewrap always warns since it
is an independent backend.
Issue 2 (duplicate reporting): Remove the separate Backend override
info line. Instead, make the Cowork isolation detection honor
COWORK_VM_BACKEND the same way the daemon does, appending [override]
to the label. Also warn on invalid override values.
Issue 3 (colon convention): Keep :- (with colon) as-is. Audited all
21 parameter expansions in production code: 100% use :- consistently.
The colon correctly treats empty string same as unset, matching the
JS side (process.env.COWORK_VM_BACKEND || null).
Also fix TROUBLESHOOTING.md to clarify that --doctor now detects
virtiofsd at /usr/libexec/ automatically, but the symlink is still
needed for the KVM backend at runtime (spawns by PATH only).
Co-Authored-By: Claude <claude@anthropic.com>1 parent 36ef3f8 commit d1d62a1
2 files changed
Lines changed: 62 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | | - | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | 486 | | |
492 | 487 | | |
493 | 488 | | |
| |||
510 | 505 | | |
511 | 506 | | |
512 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
513 | 521 | | |
514 | 522 | | |
515 | 523 | | |
| |||
525 | 533 | | |
526 | 534 | | |
527 | 535 | | |
528 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
529 | 541 | | |
530 | 542 | | |
531 | 543 | | |
532 | 544 | | |
533 | | - | |
534 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
535 | 558 | | |
536 | 559 | | |
537 | 560 | | |
538 | 561 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | 562 | | |
544 | 563 | | |
545 | 564 | | |
| |||
556 | 575 | | |
557 | 576 | | |
558 | 577 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
569 | 604 | | |
570 | 605 | | |
571 | 606 | | |
| |||
0 commit comments