Commit 5521643
Address Copilot review: explicit flags take priority, guard invalid values
- Use fs.Visit to detect whether -memory/-cpus were explicitly passed;
only seed from disk's saved values when the user did not provide them,
so an explicit flag always wins over the persisted default
- Guard persisted values with > 0 checks to prevent saving invalid
flag values (e.g. -memory 0) that bypass interactive review with --yes
Signed-off-by: Mauro Morales <mauro@example.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e3043cc commit 5521643
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
402 | 403 | | |
403 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
404 | 407 | | |
405 | 408 | | |
406 | | - | |
| 409 | + | |
407 | 410 | | |
408 | 411 | | |
409 | 412 | | |
| |||
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
573 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
574 | 579 | | |
575 | | - | |
576 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
577 | 586 | | |
578 | 587 | | |
579 | 588 | | |
| |||
0 commit comments