Gateway agent run startup failures should terminalize chat sessions and local bundle patches must be idempotent