Conversation
…(DIVE-1813) restartAgent now calls 'sudo -n 5dive agent _self_restart' instead of 'sudo 5dive agent restart <name>'. On a standard-isolation (customer) box the scoped sudoers grants exactly the self-restart primitive and NOT 'agent restart <name>', so /restart and /model previously failed with 'sudo: a password is required'. _self_restart restarts only the caller's own unit (derived from SUDO_USER, never argv) and defers internally. grok is the generator base; agy/qwen regenerated (generate.ts --check byte-exact, parity 50/50). Paired with 5dive-cli _self_restart (DIVE-1813). HOLD: awaiting Marcus security sign-off before push/land. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
lodar
added a commit
that referenced
this pull request
Jul 24, 2026
…ndard boxes (DIVE-1822) (#14) Mirrors the fork fix (#13, DIVE-1813) for the base claude telegram plugin. All 7 self-restart sites (applyModel, applyEffort, /restart, /resume x2, ho:restart, /login restart-after-auth) replaced the inline 'sudo -n systemd-run ... systemctl restart 5dive-agent@${me}.service' with 'sudo -n 5dive agent _self_restart'. On a standard-isolation (customer) box the scoped sudoers grants exactly _self_restart and NOT systemd-run, so /model + /restart previously failed with 'sudo: a password is required'. _self_restart restarts ONLY the caller's own unit (derived from SUDO_USER, never argv) and defers internally, preserving ack-before-restart ordering. Works on admin boxes too (5dive * grant). Base is separate lineage from telegram-grok: generator --check byte-exact on all forks (no variant churn), base transpiles clean. Bump 0.5.32 -> 0.5.33. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
restartAgent in the codex/grok/agy telegram forks now calls
sudo -n 5dive agent _self_restartinstead ofsudo 5dive agent restart <name>. On a standard-isolation (customer) box the scoped sudoers grants exactly the self-restart primitive and NOTagent restart <name>, so /restart and /model previously failed with "sudo: a password is required". _self_restart restarts only the callers own unit (derived from SUDO_USER) and defers internally.grok is the generator base; agy/qwen regenerated (generate.ts --check byte-exact, parity 50/50). Pairs with 5dive-ai/5dive _self_restart (security-signed-off by main). Base telegram (claude) systemd-run sites handled separately (marketplace push).