A new non-Claude VM agent can die at start: initialize sent before the boot preamble #65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during #55 (#59).
drive_vm (crates/daemon/src/agent/link.rs) forwarded queued frames to a new VM agent exec as soon as the pipe opened, but the environment preamble (KEY=value lines ending with a blank line, which GUEST_BOOT reads first) is only sent on the exec's session_info. For an agent with an empty preamble (acp, codex), initialize could arrive first: GUEST_BOOT's read loop took it as an env line,
exportfailed under set -e, and the agent exited 1 (export: {"id":1,...}: not a valid identifierin agent.err).Fixed on branch i59-mcp-vm: frames wait until the preamble is sent.
Fixed with #59: frames to a VM agent wait for the boot script's environment preamble.