feat(cli): dimos restart command (DIM-683)#1445
feat(cli): dimos restart command (DIM-683)#1445spomichter wants to merge 1 commit intofeat/dim-681-daemon-modefrom
Conversation
stops the running instance, then re-launches with the same blueprint args and config overrides. supports --daemon and --force. uses os.execvp to replace the process cleanly. Closes DIM-683
Greptile SummaryThis PR adds a
Confidence Score: 4/5
Last reviewed commit: c52d320 |
| if isinstance(value, bool): | ||
| if value: | ||
| cmd.append(flag) |
There was a problem hiding this comment.
False boolean overrides are silently lost during restart.
When a boolean config override is False (e.g., user originally ran dimos --no-some-flag run blueprint), the reconstruction loop at lines 289–291 only emits a flag for True values. Since the CLI uses a --flag/--no-flag pattern (line 70), False values need to emit --no-<flag> to be restored correctly.
| if isinstance(value, bool): | |
| if value: | |
| cmd.append(flag) | |
| if isinstance(value, bool): | |
| if value: | |
| cmd.append(flag) | |
| else: | |
| cmd.append(f"--no-{key.replace('_', '-')}") |
adds
dimos restart— stops running instance and re-launches with same blueprint args and config overrides.--force/-ffor SIGKILL before restart--daemon/-dto restart in backgroundos.execvpto replace process cleanlycli_argsandconfig_overridesfrom registry entryCloses DIM-683