Commit a351552
committed
fix(onboard): reject sandbox names starting with a digit and allow retry
Names starting with a digit (e.g., '7racii') pass the current regex
but fail downstream in Kubernetes. The user is forced to delete
~/.nemoclaw to recover because the invalid name is persisted in the
session and reused on retry.
Tighten the regex from ^[a-z0-9] to ^[a-z] so digit-prefixed names
are caught at prompt time. Replace process.exit(1) with a retry loop
(up to 3 attempts) so users can correct the name without restarting.
Non-interactive mode still exits immediately on invalid input.
Signed-off-by: latenighthackathon <latenighthackathon@users.noreply.github.com>1 parent 711b98e commit a351552
2 files changed
Lines changed: 47 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1795 | 1803 | | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | 1804 | | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1803 | 1819 | | |
1804 | 1820 | | |
1805 | | - | |
| 1821 | + | |
| 1822 | + | |
1806 | 1823 | | |
1807 | 1824 | | |
1808 | 1825 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
443 | 461 | | |
444 | 462 | | |
445 | 463 | | |
| |||
0 commit comments