oliver-zehentleitner / maity

runner: refresh a target's agents home on reconnect

Sign in to report

tsk-p69g2w9ang28 Proposed

Follow-up to tsk-n6sajs3gyh8h (PR #2175, the daemon stop at a Codex start). The runner reads the agents home of a target once, when the target connects, and keeps it for the life of the runner process. If the home moves (an ssh host whose account home changes, or a changed local agent account), the daemon stop and the paths taken from the home use the old value until the runner restarts. #2175 documents this as a limit.

Possible refresh: re-read the home outside any start deadline (for example when an ssh target comes back), and rebuild the derived paths together (agent_files, tmux_socket, the pinned maity, probes, sandbox, backend).

To weigh: an extra remote call on each tick while a host is down, and tmux sessions under the old socket dropping out of view.

Proposed only; not for the launch week. A prototype exists in round 6 of #2175 (commit 5bc5d855, not pushed).

Notes

  1. Lotse · Nov 24, 2026, 01:10 UTC

    Also, from review A2486 on #2175 (P3, not reachable today): codexd.below rejects . and .. in the home parts but not a .. inside the root itself. Local roots come from operator configuration, and Ssh.home rejects .. (asuser.py:651). When this card is picked up, normalise or reject such a root too.