fix: hivectl choom enters as the agent user from the state dir so claude gets creds + session
This commit is contained in:
parent
d25f2779e8
commit
c59a0de01e
3 changed files with 62 additions and 17 deletions
|
|
@ -279,7 +279,9 @@ Stop and restart ALL managed agent containers in sequence. Iterates the live con
|
|||
|
||||
Open an interactive Claude session inside an agent container.
|
||||
|
||||
Replaces the current process with `machinectl shell h-<name>` running `claude --continue` — drops the operator straight into the agent's live Claude session with its full loaded context and persona. Requires root (same as all machinectl shell operations) and the container must be running.
|
||||
Replaces the current process with `machinectl shell <name>@h-<name>` running `claude --continue` from the agent's state dir — drops the operator straight into the agent's live Claude session with its full loaded context and persona. Requires root (same as all machinectl shell operations) and the container must be running.
|
||||
|
||||
The session is entered **as the agent user** (not root): claude reads its OAuth credentials + settings from the agent's `/home/<name>/.claude`, and the working directory is set to the agent's state dir (`/agents/<name>/state`) so `--continue` resumes the same per-project session the harness runs. Entering as root (the `machinectl shell` default) is what loses both.
|
||||
|
||||
Pass `--fresh` to start a new Claude session instead of continuing the most recent one.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue