A new non-Claude VM agent can die at start: initialize sent before the boot preamble #65

Closed
opened 2026-10-02 12:44:16 +00:00 by jhgaylor · 1 comment
Owner

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, export failed under set -e, and the agent exited 1 (export: {"id":1,...}: not a valid identifier in agent.err).

Fixed on branch i59-mcp-vm: frames wait until the preamble is sent.

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, `export` failed under set -e, and the agent exited 1 (`export: {"id":1,...}: not a valid identifier` in agent.err). Fixed on branch i59-mcp-vm: frames wait until the preamble is sent.
Author
Owner

Fixed with #59: frames to a VM agent wait for the boot script's environment preamble.

Fixed with #59: frames to a VM agent wait for the boot script's environment preamble.
jhgaylor referenced this issue from a commit 2026-10-02 15:54:55 +00:00
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#65
No description provided.