I’ve noticed that when I use OpenTofu with ephemeral resources, the comment field is left empty.
After some analysis, I realised that ephemeral resources are present in the JSON output with OpenTofu but not in the human-readable output.
Consequently, when using OpenTofu, the error Resource '${name}' is modified but cannot be found in human-readable plan. is thrown. However, this is suppressed by a try-catch block in the renderPlan function and results in an empty comment.
I will prepare a PR to fix this behavior.
I’ve noticed that when I use OpenTofu with ephemeral resources, the comment field is left empty.
After some analysis, I realised that ephemeral resources are present in the JSON output with OpenTofu but not in the human-readable output.
Consequently, when using OpenTofu, the error
Resource '${name}' is modified but cannot be found in human-readable plan.is thrown. However, this is suppressed by a try-catch block in therenderPlanfunction and results in an empty comment.I will prepare a PR to fix this behavior.