Skip to content

DIVE-1813: /restart + /model use _self_restart on standard boxes#13

Merged
lodar merged 1 commit into
mainfrom
dive-1813
Jul 23, 2026
Merged

DIVE-1813: /restart + /model use _self_restart on standard boxes#13
lodar merged 1 commit into
mainfrom
dive-1813

Conversation

@lodar

@lodar lodar commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

restartAgent in the codex/grok/agy telegram forks 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 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).

…(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
lodar merged commit be95aff into main Jul 23, 2026
2 checks passed
@lodar
lodar deleted the dive-1813 branch July 23, 2026 15:48
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant