Merge "[HostStubGen] Use buffered output" into main