Terraspace in CI/CD pipelines

I want to use Terraspace in a GitLab CI/CD pipeline. I need to generate plan files which need to be reviewed before running terraspace up. So I run something like: TS_ENV=test terraspace plan stack --out stack.tfplan. After this I run: TS_ENV=test terraspace show stack --plan “stack.tfplan” --json. However I get the following message:

Error: Saved plan is stale

The given plan file can no longer be applied because the state was changed
by another operation after the plan was created.

Presumably because the state file is downloaded from my Azure container. How do I work around this? I can’t use Terraspace in CI/CD if this doesn’t work correctly.

For some reason the message disappeared. I have no idea why.